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.
My report has 3 subtotals - I am trying to show difference of 1st two subtotal amounts as 3rd subtotal.. I have a computed field to do that but I can't get the difference in the 3rd subtotal.. I just get the sum ..
Can anyone help me out here?
Thanks in advance!This message has been edited. Last edited by: FP Mod Chuck,
This doesn't work for me since I do not want to display my computed field. Also, I have 2 defined fields (which I do not display) and my computed fields is difference between these 2 defined fields.
For example:
DEFINE FILE SQLOUT
CR_AMOUNT/D20.2 = IF T_TYPE EQ 'CR' THEN AMOUNT;
DB_AMOUNT/D20.2 = IF T_TYPE EQ 'DB' THEN AMOUNT;
END
TABLE FILE SQLOUT
PRINT
...
.....
COMPUTE DIFF/D20.2 = CR_AMOUNT - DB_AMOUNT; NOPRINT
.....
BY SORTFIELD1 NOPRINT
BY SORTFIELD2 NOPRINT
BY SORTFIELD3 NOPRINT
ON SORTFIELD1 SUBTOTAL DIFF AS 'Total: '
.........
........
So I can't get the subtotal to display the difference.
TABLE FILE CAR
SUM RETAIL DEALER
COMPUTE DIFF/D12.2=RETAIL-DEALER; NOPRINT
BY COUNTRY
BY CAR
ON COUNTRY SUBHEAD
"SUBTOTAL FOR THE DIFFERENCE FOR <COUNTRY IS: <ST.DIFF"
END
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
Anyway I don't have to use SUBHEAD? I would really like it to be as a SUBTOTAL line.. Using SUBHEAD changes the report formatting and display and unfortunately that won't be accepted by the report users...
TABLE FILE CAR
SUM
DEALER_COST
RETAIL_COST
COMPUTE DIFF/D12.2 = RETAIL_COST- DEALER_COST;
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL AS 'Subtotal and the difference'
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=DATA,
COLUMN=N5,
COLOR='WHITE',
$
TYPE=TITLE,
COLUMN=N5,
COLOR='WHITE',
$
ENDSTYLE
END
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
Nova, If I understand correctly, you want to show the difference only at the SUBTOTAL level. The problem is that if you NOPRINT the difference, the SUBTOTAL does not appear, which is logical. Here is a workaround...
-* File Nova27_02.fex
TABLE FILE CAR
SUM RCOST DCOST
COMPUTE DIFF/D6=RCOST - DCOST;
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL
ON TABLE SET STYLE *
INCLUDE=ENDEFLT, $
TYPE=DATA, COLUMN=DIFF, SIZE=1,$
ENDSTYLE
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006