Focal Point
[SOLVED] TOTALS ON BOTH BY AND ACROSS FIELDS WITHOUT REPEATING THE BY

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

November 25, 2010, 10:48 AM
pwoods
[SOLVED] TOTALS ON BOTH BY AND ACROSS FIELDS WITHOUT REPEATING THE BY
I am trying to add a grand total line to a report which includes both ACROSS and BY phrases (a CAR example is below)

I want the second BY field (seats in the example below) to be summed and included in the total, but not to repeat for each across grouping.

Could somebody point me in the right direction?

TABLE FILE CAR
SUM
LENGTH
WIDTH
ACROSS
BODYTYPE
BY COUNTRY
BY SEATS
ON TABLE COLUMN-TOTAL
ON TABLE PCHOLD FORMAT HTML
END

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


AIX Server
WebFocus 7.6.11
November 25, 2010, 11:19 AM
PBax
Do you actually want to sum the number of seats? Or is my interpretation being clouded by the use of the car file??

Does multi verb not do what you need?

TABLE FILE CAR

SUM SEATS
BY COUNTRY

SUM LENGTH WIDTH
ACROSS BODYTYPE
BY COUNTRY
ON TABLE COLUMN-TOTAL
ON TABLE PCHOLD FORMAT HTML
END


Or slightly differently :

TABLE FILE CAR
SUM LENGTH
WIDTH
BY COUNTRY
BY BODYTYPE
BY SEATS
ON TABLE HOLD AS HOLD1
END


TABLE FILE HOLD1
SUM E03
BY COUNTRY
SUM LENGTH WIDTH
ACROSS BODYTYPE
BY COUNTRY
ON TABLE COLUMN-TOTAL
ON TABLE PCHOLD FORMAT HTML
END

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


81.05 All formats
November 25, 2010, 11:36 AM
pwoods
This isnt quite what I'm after.

I want to total the number of seats for the whole report, but I still want the rows split out by number of seats.

So:
FRANCE|5
ITALY|2
ITALY|4
JAPAN|4
etc


AIX Server
WebFocus 7.6.11
November 25, 2010, 12:08 PM
Tony A
Does this do what you require?

TABLE FILE CAR
   SUM MAX.SEATS AS SEATS
    BY COUNTRY 
    BY SEATS NOPRINT
   SUM LENGTH
       WIDTH
ACROSS BODYTYPE
    BY COUNTRY 
    BY SEATS NOPRINT
ON TABLE COLUMN-TOTAL
ON TABLE PCHOLD FORMAT HTML
END

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
December 01, 2010, 04:18 AM
pwoods
Thanks Tony, this does what I'm after -when I tried this previously I was missing the max.seats selection.


AIX Server
WebFocus 7.6.11