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 have multiple SUBTOTAL breaks where I want to have some displayed all time and some only when multilines occurs. I thought that having something like that will works:
TABLE FILE CAR
SUM DEALER_COST
BY COUNTRY
BY CAR
BY MODEL
BY SEATS
ON COUNTRY SUBTOTAL MULTILINES
ON CAR SUBTOTAL
ON MODEL SUBTOTAL MULTILINES
END
The problem is that using MULTILINES it's applied to all sort break as specified in doc.
quote:
MULTILINES Suppresses the printing of a subtotal line for every sort break that has only one detail line, since the subtotal value is equal to this one value. Note that MULTI-LINES is a synonym for MULTILINES. MULTILINES is not supported with horizontal (ACROSS) sort fields.
SUMMARIZE Recomputes values at every sort break.
RECOMPUTE Recalculates values only at the specified sort break.
I'm wondering if it is possible to have MULTILINES react the same way as RECOMPUTE does : at specified sort break only ? So I will always have SUBTOTAL for CAR, but only on MULTILINES for COUNTRY and MODEL.
All this without having to create the subtotals myself in a previous step and merging them to the detailed data where detail's row id will be 1 and subtotal will be 2 for then adding a sort on the row id after the BY SEATS (and the SUBTOTAL lines removed).
Is there another key word that I may not know yet ?This message has been edited. Last edited by: MartinY,
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
SET LINES = 9999
DEFINE FILE CAR
MODEL_NEW/A50 = IF MODEL EQ '2002 2 DOOR AUTO' THEN '2002 2 DOOR' ELSE MODEL;
END
TABLE FILE CAR
SUM
COMPUTE CNTRY_CNT/I2=CNT.MODEL_NEW; NOPRINT
BY COUNTRY
SUM
COMPUTE MODEL_CNT/I2=CNT.SEATS; NOPRINT
BY COUNTRY
BY CAR
BY MODEL_NEW
SUM
DEALER_COST
BY COUNTRY
BY CAR
BY MODEL_NEW
BY SEATS
ON COUNTRY SUBTOTAL
WHEN CNTRY_CNT GT 1;
ON CAR SUBTOTAL
ON MODEL_NEW SUBTOTAL
WHEN MODEL_CNT GT 1;
ON TABLE SET STYLE *
TYPE=TITLE, BACKCOLOR=GREY, $
TYPE=SUBTOTAL, BY=COUNTRY, BACKCOLOR=BLUE, $
TYPE=SUBTOTAL, BY=CAR, BACKCOLOR=YELLOW, $
TYPE=SUBTOTAL, BY=MODEL, BACKCOLOR=RED, $
TYPE=GRANDTOTAL, BACKCOLOR=GREEN, $
ENDSTYLE
END
There is no keyword to achieve what you want, and Ram has one solution. I tend to use:
TABLE FILE CAR
SUM DEALER_COST
COMPUTE L_COUNTRY/A10 = LAST COUNTRY; NOPRINT
COMPUTE L_MODEL/A24 = LAST MODEL; NOPRINT
BY COUNTRY
BY CAR
BY MODEL
BY SEATS
ON COUNTRY SUBTOTAL WHEN COUNTRY EQ L_COUNTRY;
ON CAR SUBTOTAL
ON MODEL SUBTOTAL WHEN MODEL EQ L_MODEL;
END
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007