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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Visualize Row Total
 Login/Join
 
Silver Member
posted
I want to visualize ROW-TOTAL in the example below, is it possible?

TABLE FILE CAR
SUM CNT.SALES AS 'Count'
BY COUNTRY AS ''
ACROSS CAR AS ''
ON TABLE ROW-TOTAL AS 'TOTAL'
ON TABLE SUB-TOTAL AS 'TOTAL'
END

Any help is appreciated.


WebFOCUS 8.2.05
Windows 2003
Excel, HTML, PDF
 
Posts: 47 | Registered: April 22, 2009Report This Post
Expert
posted Hide Post
Hi JJ,

Can you please explain what you mean by "visualize"? Our expert ran the code and it works just fine. Can you please be a little more specific about what you want/need?

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Expert
posted Hide Post
I think JJ means "Formatting Data Visualization Bar Graphs" but I don't think it can be done with row totals. If those row totals were real columns then perhaps it could be done.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Silver Member
posted Hide Post
Yes, I meant Data Visualization Bar Graphs for row totals. Row totals were not real columns. Thanks to both of you.


WebFOCUS 8.2.05
Windows 2003
Excel, HTML, PDF
 
Posts: 47 | Registered: April 22, 2009Report This Post
Expert
posted Hide Post
JJ, is THIS what you're looking to achieve? If so, based on the CAR file, you can do it by calculating a "xx_SALES" field for each "COUNTRY", i.e.: EN_SALES for ENGLAND SALES, etc... and a TotalSales field which is a TOTAL of all the others. Then SUM those fields and VISUALIZE the TotalSales field...
Yes WebFOCUS can do that!




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Something like this maybe?
SET ASNAMES=ON
DEFINE FILE CAR
SORTFLD/I1=1;
END
TABLE FILE CAR
SUM SALES 
BY SORTFLD
BY COUNTRY
ON TABLE HOLD AS DTLHOLD FORMAT ALPHA
END
DEFINE FILE CAR
SORTFLD/I1=2;
DCOUNTRY/A10='TOTAL';
END
TABLE FILE CAR
SUM SALES
BY SORTFLD
BY DCOUNTRY AS COUNTRY
ON TABLE HOLD AS SUMHOLD FORMAT ALPHA
END
TABLE FILE DTLHOLD
SUM SALES
BY SORTFLD SKIP-LINE 
BY COUNTRY
ON TABLE SET STYLE *
     GRAPHTYPE=DATA,
     COLUMN=N3,
     GRAPHLOOK=BAR,
$
ENDSTYLE
MORE 
FILE SUMHOLD
END


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Platinum Member
posted Hide Post
The easier way out would be what Ginny is suggesting.

Build Hold-file-1 with data.
Build Hold-file-2 with the total row.
Concatenate the 2 with MORE, making the total row a part of the data file.
Visualize on this combo hold-file.

We have done this a few times and works well.

Sandeep Mamidenna


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
 
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders