Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     REPEAT with Multiple graphs

Read-Only Read-Only Topic
Go
Search
Notify
Tools
REPEAT with Multiple graphs
 Login/Join
 
Platinum Member
posted
I have a REPEAT going on here, I am trying to display multiple graphs, however it only displays the first table data, and the first graph, but not the 2nd graph. Can anyone tell me how I get the second graph to display? Thanks


ENGINE SQLMSS SET DEFAULT_CONNECTION ohcolwap0179
SQL SQLMSS PREPARE SQLOUT FOR
SELECT J1.AGENT,J1.TeamID,J1.Total_Hours,J1.Aux0,J1.Aux0PER,J1.AUX5,
J1.AUX5PER,J1.AUX6,J1.AUX6PER,J1.AUX7,J1.AUX7PER,J2.AUX0DEPTAVG,
J2.AUX5DEPTAVG,J2.AUX6DEPTAVG,J2.AUX7DEPTAVG
FROM
(SELECT
'INBOUND' AS "TYPE",
AGENT,
TeamID,
SUM(TotStaff) AS "Total_Hours",
SUM(AUX0) AS "Aux0",
+SUM(AUX0)/SUM(TotStaff) AS "Aux0PER",
SUM(AUX5 +AuxOver5) AS "AUX5",
+SUM(AUX5 + AuxOver5)/SUM(TotStaff) AS "AUX5PER",
SUM(AUX6 + AuxOver6) AS "AUX6",
+SUM(AUX6 + AuxOver6)/SUM(TotStaff) AS "AUX6PER",
SUM(AUX7 + AuxOver7) AS "AUX7",
+SUM(AUX7 + AuxOver7)/SUM(TotStaff) AS "AUX7PER"
FROM
tblDataAvailability
WHERE
DATE BETWEEN '2006-05-01' AND '2006-05-31'
AND TeamID like 'Inbound%'
GROUP BY TeamID, AGENT) AS J1
inner join
(
SELECT
'INBOUND' AS "TYPE",
+SUM(AUX0)/SUM(TotStaff) AS "AUX0DEPTAVG",
+SUM(AUX5)/SUM(TotStaff) AS "AUX5DEPTAVG",
+SUM(AUX6)/SUM(TotStaff) AS "AUX6DEPTAVG",
+SUM(AUX7)/SUM(TotStaff) AS "AUX7DEPTAVG"
FROM
tblDataAvailability
WHERE
DATE BETWEEN '2006-05-01' AND '2006-05-31'
AND TeamID like 'Inbound%'
) AS J2
on (J1.TYPE = J2.TYPE)
ORDER BY J1.TeamID, J1.AGENT
;
END
TABLE FILE SQLOUT
SUM
Total_Hours/D20.18
Aux0/D20.18
Aux0PER/D20.18
AUX5/D20.18
AUX5PER/D20.18
AUX6/D20.18
AUX6PER/D20.18
AUX7/D20.18
AUX7PER/D20.18
AUX0DEPTAVG/D20.18
AUX5DEPTAVG/D20.18
AUX6DEPTAVG/D20.18
AUX7DEPTAVG/D20.18
BY TeamID
BY AGENT
ON TABLE HOLD AS SR2 FORMAT FOCUS
END
SQL SQLMSS PREPARE SQLOUT1 FOR
SELECT J1.AGENT,J1.TeamID,J1.Total_Hours,J1.Aux0,J1.Aux0PER,J1.AUX5,J1.AUX5PER,J1.AUX6,J1.AUX6PER,J1.AUX7,J1.AUX7PER,J2.DEPTAVG
FROM
(SELECT
'INBOUND' AS "TYPE",
AGENT,
TeamID,
SUM(TotStaff) AS "Total_Hours",
SUM(AUX0) AS "Aux0",
+SUM(AUX0)/SUM(TotStaff) AS "Aux0PER",
SUM(AUX5 +AuxOver5) AS "AUX5",
+SUM(AUX5 + AuxOver5)/SUM(TotStaff) AS "AUX5PER",
SUM(AUX6 + AuxOver6) AS "AUX6",
+SUM(AUX6 + AuxOver6)/SUM(TotStaff) AS "AUX6PER",
SUM(AUX7 + AuxOver7) AS "AUX7",
+SUM(AUX7 + AuxOver7)/SUM(TotStaff) AS "AUX7PER"
FROM
tblDataAvailability
WHERE
DATE BETWEEN '2006-03-01' AND '2006-03-31'
AND TeamID like 'Inbound%'
GROUP BY TeamID, AGENT) AS J1
inner join
(
SELECT
'INBOUND' AS "TYPE",
+SUM(AUX0)/SUM(TotStaff) AS "DEPTAVG"
FROM
tblDataAvailability
WHERE
DATE BETWEEN '2006-03-01' AND '2006-03-31'
AND TeamID like 'Inbound%'
) AS J2
on (J1.TYPE = J2.TYPE)
;
END
SQL SQLMSS PREPARE SQLOUT1 FOR
SELECT DISTINCT(TeamId)
FROM tblDataAvailability
WHERE DATE BETWEEN '2006-03-01' AND '2006-03-31'
AND TeamId like 'Inbound%'
;
END
DEFINE FILE SQLOUT1
TEAMIDS/A255= '''' | TeamId | '''';
END
TABLE FILE SQLOUT1
PRINT TEAMIDS
ON TABLE HOLD AS TEAMS FORMAT ALPHA
END
-RUN
-SET &LOOPS=&LINES;
-REPEAT ENDREPEAT &LOOPS TIMES
-READ TEAMS NOCLOSE &TEAMIDS.A255
TABLE FILE SR2
PRINT AGENT
BY TeamID
WHERE TeamID = &TEAMIDS
END
GRAPH FILE SR2
SUM SR2.SEG01.AUX0DEPTAVG/D20.18 AS 'Inbound Average' SR2.SEG01.Aux0PER/D20.18 AS 'AUX0'
BY SR2.SEG01.TeamID
BY SR2.SEG01.AGENT AS 'Employee'
WHERE TeamID = &TEAMIDS
HEADING
"ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET GRWIDTH 0
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setMarkerDisplay(true);
setConnectLineMarkers(true);
setConnectScatterMarkers(true);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setAxisAssignment(1,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),4);
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setTitleString("Aux 0 - Default");
setFontSizeAbsolute(getTitle(),true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setTextJustHoriz(getO1Title(),1);
setFontSizeAbsolute(getO1Title(),true);
setFontSize(getO1Title(),12);
setTextRotation(getO1Title(),0);
setTextWrap(getO1Title(),false);
setTextJustHoriz(getO1Label(),2);
setFontSizeAbsolute(getO1Label(),true);
setFontSize(getO1Label(),12);
setFontStyle(getO1Label(),2);
setTextRotation(getO1Label(),3);
setTextWrap(getO1Label(),false);
setPlaceResize(getO1Title(),0);
setPlaceRotate(getO1Title(),0);
setPlaceAlign(getO1Title(),0);
setPlaceWordWrap(getO1Title(),0);
setPlaceResize(getO1Label(),0);
setPlaceRotate(getO1Label(),0);
setPlaceAlign(getO1Label(),0);
setPlaceWordWrap(getO1Label(),0);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
TITLETEXT='Aux 0 - Default',
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=10,
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=DATA,
COLUMN=N4,
COLOR='NAVY',
$
TYPE=DATA,
COLUMN=N3,
COLOR=RGB(255 102 0),
$
TYPE=DATA,
ACROSSCOLUMN=N1,
COLOR=RGB(255 102 0),
$
TYPE=DATA,
ACROSSCOLUMN=N2,
COLOR='NAVY',
$
TYPE=HEADING,
LINE=1,
OBJECT=FIELD,
ITEM=1,
COLOR='BLACK',
$
ENDSTYLE
END
-RUN
GRAPH FILE SR2
SUM SR2.SEG01.AUX5DEPTAVG/D20.18 AS 'Inbound Average' SR2.SEG01.Aux5PER/D20.18 AS 'AUX5'
BY SR2.SEG01.TeamID
BY SR2.SEG01.AGENT AS 'Employee'
WHERE TeamID = &TEAMIDS
HEADING
"ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET GRWIDTH 0
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setMarkerDisplay(true);
setConnectLineMarkers(true);
setConnectScatterMarkers(true);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setAxisAssignment(1,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),4);
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setTitleString("Aux 5");
setFontSizeAbsolute(getTitle(),true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setTextJustHoriz(getO1Title(),1);
setFontSizeAbsolute(getO1Title(),true);
setFontSize(getO1Title(),12);
setTextRotation(getO1Title(),0);
setTextWrap(getO1Title(),false);
setTextJustHoriz(getO1Label(),2);
setFontSizeAbsolute(getO1Label(),true);
setFontSize(getO1Label(),12);
setFontStyle(getO1Label(),2);
setTextRotation(getO1Label(),3);
setTextWrap(getO1Label(),false);
setPlaceResize(getO1Title(),0);
setPlaceRotate(getO1Title(),0);
setPlaceAlign(getO1Title(),0);
setPlaceWordWrap(getO1Title(),0);
setPlaceResize(getO1Label(),0);
setPlaceRotate(getO1Label(),0);
setPlaceAlign(getO1Label(),0);
setPlaceWordWrap(getO1Label(),0);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
TITLETEXT='Aux 5',
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=10,
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=DATA,
COLUMN=N4,
COLOR='NAVY',
$
TYPE=DATA,
COLUMN=N3,
COLOR=RGB(255 102 0),
$
TYPE=DATA,
ACROSSCOLUMN=N1,
COLOR=RGB(255 102 0),
$
TYPE=DATA,
ACROSSCOLUMN=N2,
COLOR='NAVY',
$
TYPE=HEADING,
LINE=1,
OBJECT=FIELD,
ITEM=1,
COLOR='BLACK',
$
ENDSTYLE
END
-RUN
-ENDREPEAT



Currenly working @ Learning Circle Education Services
Previously worked @ Nationwide Insurance
Prod: WebFOCUS 7.6.11


Test: WebFOCUS 7.6.11


Dev: WebFOCUS 7.6.11
 
Posts: 125 | Location: Columbus, Ohio | Registered: March 31, 2006Report This Post
Platinum Member
posted Hide Post
RESOLVED, myself, NM!! THX ANYWAYS!


Currenly working @ Learning Circle Education Services
Previously worked @ Nationwide Insurance
Prod: WebFOCUS 7.6.11


Test: WebFOCUS 7.6.11


Dev: WebFOCUS 7.6.11
 
Posts: 125 | Location: Columbus, Ohio | Registered: March 31, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     REPEAT with Multiple graphs

Copyright © 1996-2020 Information Builders