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     [CLOSED] Graphing multiple series

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Graphing multiple series
 Login/Join
 
Gold member
posted
Hopefully this is an easy one for someone. I have a graph that currently contains 1 line for a rolling-12 month trend. I need to add a 2nd line for the previous rolling 12-months. I tried adding defines to identify the begin and end dates for the previous rolling 12, but then got stuck on what to do next.

Thank you!!

Here is the current code:
-INCLUDE app/cust_dash_defines_fy2013.fex
-SET &MEASR3 = IF &MEASURE EQ 'UNITS' THEN 'DASHBOARD.SEG01.NET_UNITS/D10C' ELSE IF &MEASURE EQ 'PURCHASES' THEN 'DASHBOARD.SEG01.NET_PURCHASES/P14CM' ELSE 'DASHBOARD.SEG01.GP_DOLLARS/P14CM' ;

GRAPH FILE DASHBOARD
-* Created by Advanced Graph Assistant
SUM &MEASR3 AS ''
BY DASHBOARD.SEG01.YR_MO
WHERE SHIP2REP EQ '&SALESREP.(FIND SHIP2REP IN DASHBOARD).Sales Rep.';
WHERE DASHBOARD.SEG01.CUST_NAME EQ '&CUSTOMER.(FIND CUST_NAME IN CUSTNAME).Customer-Bill To.';
WHERE DASHBOARD.SEG01.SHIP2NAME EQ '&SHIPTO.(FIND SHIP2NAME IN SHIP2NAME).Ship to.' OR (SELL_ALL_ST EQ 'Y');
WHERE ( DASHBOARD.SEG01.YR_MO GT 12MNTH_YRMO ) AND ( DASHBOARD.SEG01.YR_MO LE TODAY_YRMO );
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/Hercules.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getSeries(2),true);
setTransparentBorderColor(getSeries(3),true);
setTransparentBorderColor(getSeries(4),true);
setTransparentBorderColor(getSeries(5),true);
setTransparentBorderColor(getSeries(6),true);
setTransparentBorderColor(getSeries(7),true);
setTransparentBorderColor(getSeries(8),true);
setTransparentBorderColor(getSeries(9),true);
setTransparentBorderColor(getSeries(10),true);
setDepthRadius(0);
setUseSeriesShapes(true);
setMarkerSizeDefault(50);
setTransparentBorderColor(getChartBackground(),true);
setPlace(true);
setFontName(getO1Label(),"Times New Roman");
setFontSizeAbsolute(getO1Label(), true);
setFontSizeInPoints(getO1Label(), 7);
setPlaceResize(getO1Label(), 0);
setDepthRadius(0);
setDepthAngle(0);
setTextString(getO1Title(),"");
setFillColor(getChartBackground(),new Color(210,180,140));
setMarkerSize(getSeries(0),50);
setLineWidth(getSeries(0),3);
setLineBasicStrokeType(getSeries(0),0);
setDisplay(getY1MajorGridColorBand1(),true);
setFillColor(getY1MajorGridColorBand1(),new Color(221,221,221));
setDisplay(getY1MajorTick(),true);setTickStyle(getY1MajorTick(),3);
ENDSTYLE
END
-IF &RECORDS GT 0 THEN GOTO GPHPAS3;
-HTMLFORM NO_DATA
-GPHPAS3
-EXIT  

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


WebFOCUS 7.7.03
Linux / Universe Db
HTML/PDF/EXCEL/HTML Active
 
Posts: 90 | Registered: November 03, 2009Report This Post
Master
posted Hide Post
its just as simple as putting another field in your sum statement.

So something like

SUM &MEASR3 AS '1st measure'
    &MEASR2 AS '2nd measure'
BY DASHBOARD.SEG01.YR_MO
  


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
Gold member
posted Hide Post
Hi Eric,

Thank you for the reply. I'm not sure I follow though. I'm summing the same measurement, just different date ranges. Months 1-12, then months 13-24. Will this still work?


WebFOCUS 7.7.03
Linux / Universe Db
HTML/PDF/EXCEL/HTML Active
 
Posts: 90 | Registered: November 03, 2009Report This Post
Expert
posted Hide Post
I think you will need to do some preprocessing before doing the graph.


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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Graphing multiple series

Copyright © 1996-2020 Information Builders