Focal Point
How to sort this?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4551020072

February 05, 2008, 02:57 PM
Kamesh
How to sort this?
Hi,

I have to sort the following data.

Region City Car Count
East NY BMW 10
LEXUS 15
MERCEDES 5
MI BMW 3
CHEVY 14
SubTotal BMW 13
LEXUS 15
MERCEDES 5
CHEVY 14

west CA BMW 12
LEXUS 7
MERCEDES 8
WA BMW 3
CHEVY 4
SubTotal BMW 15
LEXUS 7
MERCEDES 8
CHEVY 4

The problem I have is when I sort by Region, Subtotal for WEST shows first and then WEST is showing.

Subtotal and Region value are coming from database Stored Procedure. We are not doing anything from our side to get the subtotal.

Please suggest me a way to get this,

Thanks


WFConsultant

WF 8105M on Win7/Tomcat
February 05, 2008, 03:17 PM
Leah
Can you supply the code please and thank you. Need to see your 'BY' statements.


Leah
February 05, 2008, 04:29 PM
GinnyJakes
Try SET PRINTPLUS=ON. This fixes a whole host of problems including where subtotals show up.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
February 06, 2008, 09:36 AM
PBrightwell
Try:
TABLE FILE yourfilename
PRINT
CAR
COUNT
BY REGION
BY CITY
ON REGION SUBTOTAL
WHERE CITY NE 'Subtotal'
END


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes