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.
TABLE FILE xxx SUM FELD1 AND COMPUTE SH/A1= IF FELD1 GE 0 THEN 'H' ELSE 'S'; AS '' BY FELD2 SUMMARIZE END
Like this, FELD1 is summarized correctly. Additionaly we want to create a 'H' or 'S' behind this sum, regarding whether the value is positive or negative. But SUM won't sum up alphanumeric fields. Is there a possibility to manage this? We also tried the RECAP-Command, but then the letter 'H' or 'S' is positioned in the next line.
I think the report is correct and must give a good answer.
The computed field SH will be evaluated only 1 time for each value of FELD2 (due to SUM and BY), and referring to the previously summarized value of FELD1.
Example:
TABLE FILE CAR SUM COMPUTE VENTAS/I10 = SALES - 20000 ; COMPUTE SH/A1= IF VENTAS GE 0 THEN 'H' ELSE 'D'; AS '' BY COUNTRY END
Regards, MikelThis message has been edited. Last edited by: <Mabel>,
Hi Mikel, the report body is correct, but what is missing is the letter "H" or "S" in the summary line when by sequenzer "FELD2" changes. Alphanumeric fields are not summarized and produce a blank. We want to add the letter "H" or "S" according to value of the summarized value. Regards Stahl
Try this: TABLE FILE CAR SUM COUNTRY CAR SALES IN 30 COMPUTE SH/A1= IF SALES GT 0 THEN 'H' ELSE 'S'; IN +0 AS '' BY COUNTRY NOPRINT BY CAR NOPRINT ON COUNTRY RECAP SSH/A1= IF SALES GT 0 THEN 'H' ELSE 'S'; NOPRINT ON COUNTRY SUBFOOT " " "TOTAL COUNTRY " " END
Regards
Posts: 2 | Location: Germany | Registered: June 04, 2003
GUNTER is right. You can use RECAP, but also, you must use the calculated field in subfoot in order to avoid automatic FOCUS positioning.
TABLE FILE CAR SUM COMPUTE TESTSALES/I9 = SALES - 20000 ; COMPUTE SH/A1= IF TESTSALES GE 0 THEN 'H' ELSE 'S'; AS '' IN +1 BY COUNTRY BY CAR ON COUNTRY RECAP SSH/A1= IF TESTSALES GE 0 THEN 'H' ELSE 'S'; ON COUNTRY UNDER-LINE SUBFOOT " " "TOTAL <31>" END Regards, MikelThis message has been edited. Last edited by: <Mabel>,