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     [SOLVED] VLNSTKPC Example

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] VLNSTKPC Example
 Login/Join
 
Platinum Member
posted
Hello,

I'm trying to create a VLNSTKPC (stacked vertical connected point plot graph showing
percentages) graph type but without success.

Can anybody post an example?

Thanks in advanced,
Carlos Dias

This message has been edited. Last edited by: Kerry,


WebFOCUS version: 7.6
Linux/Windows
HTML, Excel
 
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011Report This Post
Expert
posted Hide Post
quote:
graph type but without success


What did you try ?

Did you get errors ?

Did you get something out ?

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


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Here's my case:

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, 2011Report This Post
Virtuoso
posted Hide Post
Carlos

What does your result look like if you report it in a table instead in a graph?




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Expert
posted Hide Post
Repro-ing with one of the sample tables would help us.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
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, 2011Report This Post
<FreSte>
posted
Carlos,

See below,

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
 
Report This Post
Platinum Member
posted Hide Post
Thank you FreSte. You tip solve my problem.

But I can't understand how the VLNSTKPC works.


WebFOCUS version: 7.6
Linux/Windows
HTML, Excel
 
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011Report 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     [SOLVED] VLNSTKPC Example

Copyright © 1996-2020 Information Builders