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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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, 2008Report 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, 2006Report 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, 2008Report 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.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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, 2008Report 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] TOTALS ON BOTH BY AND ACROSS FIELDS WITHOUT REPEATING THE BY

Copyright © 1996-2020 Information Builders