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 add colum-total to a field and 2 computed fields. Easy right?
This is my code:
TABLE FILE H_HOLD
SUM QTD AS 'QTD_TOTAL' NOPRINT
BY SRSD02_REGIONAL_C AS 'ER'
BY SRSD02_REGIONAL_N AS 'ESCRITORIO REGIONAL'
SUM QTD/D8 AS ''
BY SRSD02_REGIONAL_C
BY SRSD02_REGIONAL_N
BY OBJETIVO AS 'OBJ.MES'
BY OBJ_MTD/D8.1 AS 'OBJ.MTD'
ACROSS DIA AS ''
COMPUTE TOTX/D8 MISSING ON = C1; AS 'TOTAL'
COMPUTE MP/D8 = TOT-OBJ_MTD; AS 'M/(P)'
COMPUTE PCT/D8.1 = (TOT/OBJ_MTD)*100; AS '%'
HEADING CENTER
"Acompanhamento Renavam Diário"
""
"NATIONAL"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE COLUMN-TOTAL/C AS 'TOTAL' QTD
-*ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
ENDSTYLE
END
It is adding TOTAL to other columns like TOTX, MP and PCT. When I add ON TABLE COLUMN-TOTAL/C AS 'TOTAL' QTD TOTX MP I got error: (FOC002) A WORD IS NOT RECOGNIZED: TOTX
How do I solve this? I don't want a COLUMN-TOTAL at column PCT.
ThanksThis message has been edited. Last edited by: Ricardo Augusto,
WebFOCUS 8.1.05 / APP Studio
Posts: 272 | Location: Brazil | Registered: October 31, 2006
TABLE FILE CAR
SUM SALES NOPRINT
BY COUNTRY
SUM SALES
DEALER_COST NOPRINT
RETAIL_COST NOPRINT
BY COUNTRY
ACROSS MODEL
COMPUTE TOT/D8 = C1;
COMPUTE DC/D8 = DEALER_COST;
COMPUTE RC/D8 = RETAIL_COST;
ON TABLE COLUMN-TOTAL
END
Thanks
WebFOCUS 8.1.05 / APP Studio
Posts: 272 | Location: Brazil | Registered: October 31, 2006
TABLE FILE CAR SUM SALES NOPRINT BY COUNTRY SUM SALES DEALER_COST NOPRINT RETAIL_COST NOPRINT BY COUNTRY ACROSS MODEL COMPUTE TOT/D8 = C1; COMPUTE DC/D8 = DEALER_COST; COMPUTE RC/D8 = RETAIL_COST; ON TABLE HOLD END TABLE FILE HOLD PRINT * ON TABLE COLUMN-TOTAL 'TOT' 'DC' END
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015