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 a situation similar to that in the following sample procedure. I have a calculated field '%total'. It does not always have data for all ACROSS values. For instance, it has no data for the "CONVERTIBLE" and "HARDTOP" in the output of the sample procedure. I want to hide the display of the column title "%total" in those cases. Can it be done?
TABLE FILE CAR SUM SALES AS 'Total' BY LOWEST COUNTRY
SUM SALES COMPUTE %total/D3%S = SALES*100/C1; AS ' %total' BY LOWEST COUNTRY ACROSS BODYTYPE ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = endeflt, $ ENDSTYLE ENDThis message has been edited. Last edited by: Kerry,
Coulmn header is made before all of the data is known. That means that you can't decide to not print the column title depending on some criterium that is not yet clear.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
But to make it work, it appears that all of the fields in the across group (both SALESX and %total, in this case) must have MISSING turned on:
SET HIDENULLACRS = ON
SET NODATA = ''
-*
DEFINE FILE CAR
SALESX/D8 MISSING ON = IF (SALES EQ 0) THEN MISSING ELSE SALES ;
END
-*
TABLE FILE CAR
SUM SALES AS 'Total'
BY LOWEST COUNTRY
SUM SALESX AS 'Sales'
COMPUTE %total/D3%S MISSING ON = SALESX*100/C1; AS ' %total'
BY LOWEST COUNTRY
ACROSS BODYTYPE
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt, $
ENDSTYLE
ON TABLE PCHOLD FORMAT HTML
END
This message has been edited. Last edited by: Dan Satchell,
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007