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.
Is there a way to sort a tabular report vertically for a specific ACROSS value?
Consider the following code: TABLE FILE CAR SUM DEALER_COST BY COUNTRY ACROSS MODEL END
I need the final report output to be grouped vertically by country but sorted vertically by DEALER_COST for a specific MODEL. If you put the result from above in Excel, then manually sorted for the column named '2000 GT VELOCE'. That's what I need my output to look like.
In my real report, the ACROSS column is YEAR, and the quantity of distinct YEAR values will change. Otherwise I would just DEFINE or COMPUTE a set number of YEAR columns.
The following code doesn't work, but it may give you an idea of what I want the end result to be:
TABLE FILE CAR SUM DEALER_COST BY HIGHEST DEALER_COST WHEN = MODEL EQ '2000 GT VELOCE' BY COUNTRY ACROSS MODEL END
Thanks for any advice!This message has been edited. Last edited by: <Kathryn Henning>,
DEFINE FILE CAR
RCOST4/D6=IF SEATS EQ 4 THEN RCOST ELSE 0;
END
TABLE FILE CAR
SUM RCOST4 NOPRINT
BY TOTAL HIGHEST RCOST4 NOPRINT
BY COUNTRY
SUM RCOST
BY TOTAL HIGHEST RCOST4 NOPRINT
BY COUNTRY
ACROSS SEATS
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
Thanks but the values in the ACROSS column are going to change, so I cannot hard-code a specific value in a DEFINE.
Sorry but this is a tough one to explain. Maybe a better question is if I were to run the following code, when I use the result hold file is there a way to refer to one specific ACROSS column? They all appear to have the same name.
TABLE FILE CAR SUM DEALER_COST RETAIL_COST BY COUNTRY ACROSS MODEL ON TABLE HOLD END
Pn and Nn only seem to work in the style sheet, I'm unable to use them for sorting.This message has been edited. Last edited by: Tim Easley,
Or use the asnames feature for the across columns. See this example:
SET ASNAMES=ON
DEFINE FILE GGSALES
YM/YYM = DATE;
END
TABLE FILE GGSALES
SUM DOLLARS
BY REGION
BY CATEGORY
ACROSS YM
ON TABLE HOLD AS XYZZY FORMAT ALPHA
END
TABLE FILE XYZZY
PRINT *
BY DOL199611 NOPRINT
END
Now the only thing to decide upon is which across value to sort on.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007