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.
I need to use the subtotal values calculated in the subfoot for some further calculations. Can the subtotal values be stored in a temporary variable to be used further.
Sample Code:
TABLE FILE CAR
PRINT
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
ON CAR.ORIGIN.COUNTRY SUBFOOT
"Subtotal DC: <ST.CAR.BODY.DEALER_COST "
ON CAR.ORIGIN.COUNTRY SUBFOOT
"Subtotal RC: <ST.CAR.BODY.RETAIL_COST "
ON TABLE NOTOTAL
END
I need the subtotal values of Dealer_cost and Retail_cost to calculate some other values, and display in the subfoot.
Thanks,This message has been edited. Last edited by: Kerry,
WebFOCUS 7.7.02Windows Output Formats: Excel, HTML, PDF
I assume that If all of the subtotal values along with the ones you want to calculate happen at the same "break level" as you have 2 SUBFOOT on the same field (COUNTRY) then RECAP may come in handy:
TABLE FILE CAR
PRINT
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
ON CAR.ORIGIN.COUNTRY RECAP
ST_DC_RC/D20.2 = CAR.BODY.DEALER_COST + CAR.BODY.RETAIL_COST;
ON CAR.ORIGIN.COUNTRY SUBFOOT
"Subtotal DC: <ST.CAR.BODY.DEALER_COST "
ON CAR.ORIGIN.COUNTRY SUBFOOT
"Subtotal RC: <ST.CAR.BODY.RETAIL_COST "
ON CAR.ORIGIN.COUNTRY SUBFOOT
"Subtotal All: <ST_DC_RC"
ON TABLE NOTOTAL
END
Or a bit simpler:
TABLE FILE CAR
PRINT
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
ON CAR.ORIGIN.COUNTRY RECAP
ST_DC_RC/D20.2 = CAR.BODY.DEALER_COST + CAR.BODY.RETAIL_COST;
ON CAR.ORIGIN.COUNTRY SUBFOOT
"Subtotal DC: <ST.CAR.BODY.DEALER_COST "
"Subtotal RC: <ST.CAR.BODY.RETAIL_COST "
"Subtotal All: <ST_DC_RC"
ON TABLE NOTOTAL
END
It would be helpful if you please edited the title of your original post prefixing it with [SOLVED] so we know it's done and that no extra support is needed on that one.