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.
This is a follow-up to earlier questions on conditional drill downs. Consider the following program:
TABLE FILE CAR SUM DCOST ACROSS COUNTRY BY MODEL END
(Please ignore the fact that the request makes no business sense.) I want to create a conditional drill down on the DCOST values when the cell value is greater than 5,000 but less than 15,000. I assume I have to create a computed field to get around the fact that WHEN cannot handle compound logical statements; for example,
TABLE FILE CAR SUM DCOST COMPUTE SELIND/A1 = IF DCOST GT 5000 AND DCOST LT 15000 THEN ‘Y’ ELSE ‘N’; NOPRINT ACROSS COUNTRY BY MODEL END
There is a clear solution if the number of across columns is known and fixed. However, in my real life example the number of columns is unknown and may be large.
Suggestions are welcome.This message has been edited. Last edited by: Dennis Smid,
WebFOCUS 7.6.2 AIX Output: HTML, AHTML, Excel, and PDF
Posts: 18 | Location: Omaha, NE | Registered: November 04, 2007
I ran the following code, with and without the WHERE statement, as an example of different numbers of columns, and I get good / expected results, i.e: drilldowns work either way when SELIND EQ 'Y'.
-SET &MinVal = 5000 ;
-SET &MaxVal = 15000 ;
TABLE FILE CAR
SUM DCOST AS 'Dealer Cost'
COMPUTE SELIND/A1 = IF DCOST GT &MinVal AND DCOST LT &MaxVal THEN 'Y' ELSE 'N'; NOPRINT
ACROSS COUNTRY
BY MODEL
-*WHERE COUNTRY EQ 'ENGLAND' OR 'FRANCE' OR 'ITALY'
HEADING
"Drilldown on Dealer Costs GT &MinVal and LT &MaxVal"
ON TABLE SET PAGE NOPAGE
ON TABLE SET STYLE *
TYPE=DATA, ACROSSCOLUMN=N1, WHEN=SELIND EQ 'Y', FOCEXEC=FEX2, $
ENDSTYLE
END
Do you need more?
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005