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     Sort on the subtotal

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Sort on the subtotal
 Login/Join
 
Platinum Member
posted
I have a report that has a subtotal for each vendors various expenses. How can I sort on that subtotal so I can view the vendor with the highest expenses to the vendor with the lowest expenses but yet keep the various expense (dont want to aggregate) categories for each vendor?


IBM Main Frame: MVS, FIX, VSAM

Windows SQL

WF 7.7
 
Posts: 147 | Registered: June 24, 2006Report This Post
Expert
posted Hide Post
Just off the top of my head, how about a multi-verb request, the first one being the summarization sorting BY HIGHEST and the second being the detail?


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
Virtuoso
posted Hide Post
And to add to Ginny's comment, you can do a NOPRINT on the output of the first verb so it doesn't show on the report, just the detail you want.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
This is the code where I have tried to take your suggestions. I am still not able to get the detail on the last three fields.


TABLE FILE LRDRAFT
SUM
DRAFTAMT
SSEMPIDNO

print EXPTYP
PAYCODE
DraftAMT
BY HIGHEST DRAFTAMT NOPRINT
BY PAYEENAME

ON PAYEENAME SKIP-LINE
HEADING
"Total Payee Expenses Paid in the CASRS system Between 01/01/07 to 12/31/07"
" "
FOOTING
" "
"&DATE <+0>


IBM Main Frame: MVS, FIX, VSAM

Windows SQL

WF 7.7
 
Posts: 147 | Registered: June 24, 2006Report This Post
Expert
posted Hide Post
Try something like this (the keyword TOTAL should solve the problem):

TABLE FILE CAR
SUM
RETAIL_COST NOPRINT
BY HIGHEST TOTAL RETAIL_COST NOPRINT
BY COUNTRY 

SUM
RETAIL_COST
BY HIGHEST TOTAL RETAIL_COST NOPRINT
BY COUNTRY
BY CAR

ON COUNTRY SUBTOTAL AS 'TOTAL'

END


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
Expert
posted Hide Post
You need to sort the sales in the summary section of your report. Use this as an example:
 TABLE FILE CAR
SUM SALES
BY HIGHEST TOTAL SALES NOPRINT
BY COUNTRY
PRINT SALES
BY HIGHEST TOTAL SALES NOPRINT
BY COUNTRY 
BY CAR
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
Expert
posted Hide Post
Great minds think alike, Francis. Smiler


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
Expert
posted Hide Post
Yup!


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

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Sort on the subtotal

Copyright © 1996-2020 Information Builders