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] Sort on Sub Total

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Sort on Sub Total
 Login/Join
 
Member
posted
I need to sort on a Sub total field. Eg We have a shortage column and after doing Sub total i am getting Total potential Shortage. Sorting needs to be done on the Total Potentail shortage Amount.

This message has been edited. Last edited by: Kerry,
 
Posts: 4 | Registered: January 18, 2008Report This Post
Virtuoso
posted Hide Post
It will all becomes so much clearer to us if you provide us with an example of what you're looking for, along with the code you already have developed to get there. The description you provided is not really clear enough.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
Thanks GamP... I couldn't have said it better myself...

Wasi: Can you examplify it with the CAR file?




   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
Member
posted Hide Post
I want the sub total(total car) to be sorted by highest.

Eg: CAR BMW has the highest Total Sales by CAR and this needs to be first.

TABLE FILE CAR
PRINT
SALES
SEATS
BY CAR
ON CAR SUB-TOTAL SALES SEATS AS 'TOTAL CAR'
END
 
Posts: 4 | Registered: January 18, 2008Report This Post
Virtuoso
posted Hide Post
Add
BY HIGHEST TOTAL SALES NOPRINT


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
Prarie: How simple was that!
Wasi: Anything else? Is this Closed?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Virtuoso
posted Hide Post
Prarie, Doug;

Not so fast. Adding the BY TOTAL HIGHEST statement only will sort the report based on the individual values of SALES, not the SUBTOTAL value of SALES. You need to do a bit more work.

Try this example:

TABLE FILE CAR
SUM SALES NOPRINT
BY TOTAL HIGHEST SALES NOPRINT
BY CAR
PRINT SALES SEATS
BY TOTAL HIGHEST SALES NOPRINT
BY CAR
BY MODEL
BY BODYTYPE
ON CAR SUBTOTAL SALES SEATS AS 'TOTAL CAR'
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, SQUEEZE=ON,$
TYPE=SUBTOTAL, BACKCOLOR=ORANGE,$
ENDSTYLE
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
Here's another interesting approach to the issue:

TABLE FILE CAR
PRINT SUM.SALES WITHIN CAR NOPRINT SALES SEATS
COMPUTE SUMSALES/D12=C1; NOPRINT
BY TOTAL HIGHEST SUMSALES NOPRINT
BY CAR
BY MODEL
BY BODYTYPE
ON CAR SUBTOTAL SALES SEATS AS 'TOTAL CAR'
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, SQUEEZE=ON,$
TYPE=SUBTOTAL, BACKCOLOR=ORANGE,$
ENDSTYLE
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
Thanks Mickey!
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Member
posted Hide Post
Thanks it worked,
 
Posts: 4 | Registered: January 18, 2008Report This Post
Member
posted Hide Post
SOLVED
 
Posts: 4 | Registered: January 18, 2008Report This Post
Virtuoso
posted Hide Post
Wasi,

Here is a link to the post that explains how to change the thread description to have [SOLVED] in the description.

http://forums.informationbuild...1057331/m/8871069592

"To add this keyword to the subject title the member who began the thread should go to the very first post that they started the thread with and then edit it. The subject title may only be changed by editing the very first post in the thread."


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report 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] Sort on Sub Total

Copyright © 1996-2020 Information Builders