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 have a graph created that I would like to add a "total" line to. It seems like something relatively simple and I'm sure I'm just not thinking of the right compute or something. Hoping someone can help.
Here's my example:
GRAPH FILE CAR
SUM RETAIL_COST AS ''
ACROSS BODYTYPE
BY COUNTRY
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET 3D OFF
ON GRAPH SET GRMERGE ON
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setPlace(true);
ENDSTYLE
END
As you can see, the graph produces 1 line for each country -- which is what I want. But in addition, I'd like to have another line on the graph that represents the sum-total for all countries for each bodytype (BODYTYPE still remaining the ACROSS).
Any help is appreciated!
Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio Testing: <none> Using MRE & BID.  Connected to MS SQL Server 2005 Output Types: HTML, Excel, PDF
The short answer is that you would have to manufacture the data row, something like this example:
TABLE FILE CAR
SUM RETAIL_COST
COMPUTE COUNTRY/A10 = '_TOTAL';
BY BODYTYPE
ON TABLE HOLD AS HTOT
END
GRAPH FILE CAR
SUM RETAIL_COST AS ''
ACROSS BODYTYPE
BY COUNTRY
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET 3D OFF
ON GRAPH SET GRMERGE ON
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setPlace(true);
ENDSTYLE
MORE
FILE HTOT
END
I wish there was an easier way to generate total lines AS PART OF THE DATA. You could use FRL (Financial Reporting Language), but that can get fairly complicated (in my humble opinion) and I don't know if it will work for GRAPH.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Aside from the extra pass, that's really not that bad. I made it work on my graph and I think the result is what the user is after.
Thanks for the quick response!
Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio Testing: <none> Using MRE & BID.  Connected to MS SQL Server 2005 Output Types: HTML, Excel, PDF
i totally second Francis's method; that's exactly what we do, we build a total IFF the group has a multilines; so if a COUNTRY had only 1 bodytype , we don't do a TOTAL. I take 2 passes: 1: to create the granular detail, then 2: define against the granular and read to create a total set, IFF the cnt.dst.bodytype GT 1. Then (be sure to clear the defines against the granular) glue together with a MORE.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003