Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] TOTALS ON BOTH BY AND ACROSS FIELDS WITHOUT REPEATING THE BY
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] TOTALS ON BOTH BY AND ACROSS FIELDS WITHOUT REPEATING THE BY
 Login/Join
 
Member
posted
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
 
Posts: 10 | Location: Nottingham, UK | Registered: November 20, 2008Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 56 | Location: Manchester | Registered: November 21, 2006Reply With QuoteReport This Post
Member
posted Hide Post
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
 
Posts: 10 | Location: Nottingham, UK | Registered: November 20, 2008Reply With QuoteReport This Post
Expert
posted Hide Post
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.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5601 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Member
posted Hide Post
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
 
Posts: 10 | Location: Nottingham, UK | Registered: November 20, 2008Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] TOTALS ON BOTH BY AND ACROSS FIELDS WITHOUT REPEATING THE BY

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.