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
January 20, 2010, 01:44 PM
Francis Mariani
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
January 20, 2010, 03:41 PM
MacLonghorn
aha. I used exactly the same approach but was missing "TOTAL". Let me try it.
Thanks.
Mark WF 7.6 Windows
January 20, 2010, 04:02 PM
MacLonghorn
That's got it. Thanks!
Thanks.
Mark WF 7.6 Windows
January 20, 2010, 04:26 PM
MacLonghorn
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
January 20, 2010, 04:35 PM
Francis Mariani
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
January 20, 2010, 04:51 PM
MacLonghorn
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
January 26, 2010, 08:36 AM
MacLonghorn
Still no success with this, but it works with the CAR file, so the problem must be something else. SOLVED.