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
Ranking on Subtotal
 Login/Join
 
<Umm>
posted
Can any buddy tell me that how to do ranking on Subtotal.I mean Subtotal is not a field so how can I pass the value of Subtotal to the last parameter of Ranking.
 
Report This Post
<JG>
posted
try the following

SET ASNAMES=ON
TABLE FILE CAR
SUM RETAIL_COST AS 'SUBTOT'
BY COUNTRY
ON TABLE HOLD AS CARHOLD FORMAT FOCUS INDEX COUNTRY
END
JOIN COUNTRY IN CAR TO COUNTRY IN CARHOLD

TABLE FILE CAR
SUM RETAIL_COST DEALER_COST
RANKED BY HIGHEST SUBTOT NOPRINT
BY COUNTRY SUBTOTAL
BY CAR
ON TABLE PCHOLD FORMAT PDF
END
 
Report This Post
Virtuoso
posted Hide Post
Do you want to 'rank' the countries, or just order them?

Ranked, in a single table request:

DEFINE FILE CAR
TRCOST/D6=RETAIL_COST;
END
TABLE FILE CAR
SUM TRCOST WITHIN COUNTRY NOPRINT
RETAIL_COST
RANKED BY HIGHEST TOTAL TRCOST NOPRINT
BY COUNTRY SUBTOTAL PAGE-BREAK
BY CAR
BY MODEL
END

This message has been edited. Last edited by: <Mabel>,
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
<JG>
posted
Jack, That does not work because Although WebFocus calculates the TRCOST correctly, the BY's on CAR and Model cause a problem.
 
Report This Post
<Umm>
posted
Hi JG,

Actually I have three fields categoryname, country and lineitemtotal, So I want to subtotal by Categoryname and pass the subtotal's value to the ranking,
which display the report like category wise all the countries and LineItemTotal and at end of each category it will show subtotal.
 
Report This Post
<JG>
posted
Sumit, using the join method as in the example should give you what you need.
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders