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     [SOLVED] Sort by first across column

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Sort by first across column
 Login/Join
 
Platinum Member
posted
Trying to sort by the first column in Across values. For example:
TABLE FILE CAR
SUM
     SALES
BY CAR
ACROSS HIGHEST COUNTRY
END

Try to sort that list by ascending values of W Germany Sales, not by Car.

This message has been edited. Last edited by: Kerry,


Thanks.

Mark
WF 7.6 Windows
 
Posts: 150 | Registered: July 26, 2007Report This Post
Expert
posted Hide Post
Perhaps this will work:

DEFINE FILE CAR
SALES_WG/D10 = IF COUNTRY EQ 'W GERMANY' THEN SALES ELSE 0;
END

TABLE FILE CAR
SUM
SALES
BY TOTAL SALES_WG NOPRINT
BY CAR
ACROSS HIGHEST COUNTRY
END

The TOTAL is important as that is the value shown on the report, without TOTAL you'd get multiple lines per CAR because there are multiple models per CAR.

(Don't have a clue why "SALES" shows up as a column title for each ACROSS column)


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
aha. I used exactly the same approach but was missing "TOTAL". Let me try it.


Thanks.

Mark
WF 7.6 Windows
 
Posts: 150 | Registered: July 26, 2007Report This Post
Platinum Member
posted Hide Post
That's got it. Thanks!


Thanks.

Mark
WF 7.6 Windows
 
Posts: 150 | Registered: July 26, 2007Report This Post
Platinum Member
posted Hide Post
Well, dang. In my specific case the value being summarized is a text value. BY TOTAL TXTVALUE gives me blanks.


Thanks.

Mark
WF 7.6 Windows
 
Posts: 150 | Registered: July 26, 2007Report This Post
Expert
posted Hide Post
let's work with an alpha field then:

DEFINE FILE CAR
RPMX/A5 = EDIT(RPM);
RPMX_WG/A5 = IF COUNTRY EQ 'W GERMANY' THEN RPMX ELSE '';
END

TABLE FILE CAR
SUM
RPMX
BY TOTAL RPMX_WG NOPRINT
BY CAR
ACROSS HIGHEST COUNTRY
END

What's wrong with this picture?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
well, not sure. it works with CAR file, but not my datasource. guess the problem is on my end somewhere.


Thanks.

Mark
WF 7.6 Windows
 
Posts: 150 | Registered: July 26, 2007Report This Post
Platinum Member
posted Hide Post
Still no success with this, but it works with the CAR file, so the problem must be something else.
SOLVED.


Thanks.

Mark
WF 7.6 Windows
 
Posts: 150 | Registered: July 26, 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     [SOLVED] Sort by first across column

Copyright © 1996-2020 Information Builders