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.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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