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     [CLOSED] How To Summarise ROW TOTALS

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How To Summarise ROW TOTALS
 Login/Join
 
Gold member
posted
I have row totals and columns totals.
I am computing a new field and it is ratio of two existing fields.
Down below the result is fine as I changed it to summarize but row totals are giving me sum(A/B) of the ratios but I need sum(A)/sum(B).

Please Help.

Thanks & Regards,
Gaurav Tyagi

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 58 | Registered: November 19, 2014Report This Post
Master
posted Hide Post
You need to use another COMPUTE to get this instead of ROW-TOTAL. Check below code.
APP PATH IBISAMP
TABLE FILE CAR
SUM
COMPUTE RC_BY_S/D12.2=RETAIL_COST/SALES;
COMPUTE DC_BY_S/D12.2=DEALER_COST/SALES;
COMPUTE ROW_TOTAL/D12.2=(DEALER_COST+RETAIL_COST)/(SALES+SALES);
BY COUNTRY
ON TABLE SUMMARIZE
END

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Gold member
posted Hide Post
Thanks for reply Ram,

I have one more Across PERIOD along side with By COUNTRY field too when I apply this method I get the result according to first value of the accross field.
I need a method which does this

(sum(Dealer_Cost)+sum(Retail_Cost))/(sum(Sales)+sum(Sales))

Thanks & Regards,
Gaurav Tyagi


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 58 | Registered: November 19, 2014Report 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     [CLOSED] How To Summarise ROW TOTALS

Copyright © 1996-2020 Information Builders