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.
Subbu, as Waz said you can try with FML. It will give some more control over the calculation.
TABLE FILE CAR
SUM
DEALER_COST AS '<b>Dealer Cost</b>'
RETAIL_COST AS '<b>Retail Cost</b>'
COMPUTE TOTAL_COST/D20=DEALER_COST+RETAIL_COST; AS '<b>Row Total</b>'
COMPUTE HEADER_TEXT/A50='<center><b>Pivot Report Using FML</b></center>'; NOPRINT
FOR COUNTRY
'ENGLAND' AS '<b>England</b>' OVER
'FRANCE' AS '<b>France</b>' OVER
'ITALY' AS '<b>Italy</b>' OVER
" " OVER
RECAP COLTOT(1,2)/D20=R1+R2+R3; AS '<b>Column Total</b>' OVER
RECAP COLTOT(3)/D20.2=R3/R1;
ON TABLE SET PAGE NOLEAD
HEADING
"</1 <HEADER_TEXT </1"
END
The solution Which u gave is fine. I want to have a little change in that. Now as per your existing code, the country values will come as Rows and the dealer cost and retail cost will come as columns.
I want to make coury as columns and dealer and retails cost as rows. Adding to this Now I want to acheive the row total and col to total.
but the last bottom calculated value should be the division of G/A which I specified in the first posting.
What I mean to say is COLA,COLB should be country names as the columns and Dealer, Retail cost should be as (A,D) rows as per my first post. And I want to that last row last cell calculation.This message has been edited. Last edited by: subbu,