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.
I've never used this graph before, but I think this is right.
Just a guess though.
DEFINE FILE CAR
MAXCOST/I9 = RETAIL_COST ;
END
TABLE FILE CAR
SUM MAXCOST
BY COUNTRY
SUM COMPUTE PRICEPCT/P6.2 = RETAIL_COST / MAXCOST ;
COMPUTE CONVERTIBLE/P6.2 = IF BODY EQ 'CONVERTIBLE' THEN PRICEPCT ELSE 0 ;
COMPUTE HARDTOP /P6.2 = IF BODY EQ 'HARDTOP ' THEN PRICEPCT ELSE 0 ;
COMPUTE SEDAN /P6.2 = IF BODY EQ 'SEDAN ' THEN PRICEPCT ELSE 0 ;
COMPUTE COUPE /P6.2 = IF BODY EQ 'COUPE ' THEN PRICEPCT ELSE 0 ;
COMPUTE ROADSTER /P6.2 = IF BODY EQ 'ROADSTER ' THEN PRICEPCT ELSE 0 ;
BY COUNTRY
BY BODY
ON TABLE HOLD AS TMP_GRPH
END
GRAPH FILE TMP_GRPH
SUM CONVERTIBLE
HARDTOP
SEDAN
COUPE
ROADSTER
ACROSS COUNTRY
ON GRAPH SET LOOKGRAPH VLNSTKPC
ON GRAPH SET GRAPHEDIT OFF
END
TABLE FILE MY_TABLE
SUM PCT.CNT.APPLICATION AS PCT
BY LOWEST RECEIVETIME AS TIME IN-GROUPS-OF 1
WHERE (YEAR EQ &year) AND (D_TIME.MONTH EQ &month);
WHERE RECEIVETIME IS NOT MISSING;
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS GRAPH_IN_TIME FORMAT FOCUS
END
-RUN
GRAPH FILE GRAPH_IN_TIME
SUM COMPUTE CUME_PCT/D12 = CUME_PCT + PCT;
BY TIME IN-GROUPS-OF 1
ON GRAPH SET LOOKGRAPH VLNSTKPC
ON GRAPH SET GRAPHEDIT OFF
END
When I use the VLNSTKPC the values always appear at 100%.
Your example works fine. The trick is the way you calculate the percentage? Or using the ACROSS?This message has been edited. Last edited by: Carlos Dias,
WebFOCUS version: 7.6 Linux/Windows HTML, Excel
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011
I think the difference between my case and the example of Waz is that the SUM only have one column. If in the example of Waz we use only one column the behavior is the same.
I am currently considering the graph as the type VLINE and works, but appears in the values of the YYs axis 120%, although there is no number in this series. How can I limit to just stay at 100%?
Thanks in advanced, Carlos Dias
WebFOCUS version: 7.6 Linux/Windows HTML, Excel
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011
TABLE FILE CAR
SUM PCT.CNT.DEALER_COST AS PCT
BY LOWEST SEATS AS TIME
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS GRAPH_IN_TIME FORMAT FOCUS
END
-RUN
GRAPH FILE GRAPH_IN_TIME
SUM
COMPUTE CUME_PCT/D12 = LAST CUME_PCT + PCT;
BY TIME
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRAPHSTYLE *
setScaleMax(getY1Axis(),100.0);
setY1ScaleMaxAuto(false);
ENDSTYLE
END