Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Sort for a specific ACROSS value

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Sort for a specific ACROSS value
 Login/Join
 
Member
posted
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>,
 
Posts: 29 | Registered: July 17, 2007Report This Post
Virtuoso
posted Hide Post
This maybe:

  
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, 2006Report This Post
Member
posted Hide Post
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,
 
Posts: 29 | Registered: July 17, 2007Report This Post
Member
posted Hide Post
use the "E" value name, ex.- E01,E02, ect.
Set them equal to to names that you can use...


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 5 | Registered: February 12, 2013Report This Post
Virtuoso
posted Hide Post
How do you determine which across column will be used for sorting?


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Virtuoso
posted Hide Post
First create a defined field bases on the specific model dealer cost
Use that field for sorting




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Virtuoso
posted Hide Post
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, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Sort for a specific ACROSS value

Copyright © 1996-2020 Information Builders