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) Selective Subtotal
Go
New
Search
Notify
Tools
Reply
  
(Solved) Selective Subtotal
 Login/Join
 
Platinum Member
posted
I have a requirement to show all the weights in the report, but not show the two-seater's weights in the subtotal or grand total.

TABLE FILE CAR
SUM
     WEIGHT
BY  COUNTRY
BY  CAR
BY  LOWEST SEATS
ON COUNTRY SUB-TOTAL WEIGHT
END


Thanks for your help.

This message has been edited. Last edited by: Michael L Meagher,


WebFOCUS 8.2.03 - Production
WebFOCUS 8.2.04 - Sand Box
Windows 2012 R2 Server
HTML, PDF, Excel
In FOCUS since 1980
 
Posts: 116 | Location: Seattle, WA | Registered: April 07, 2015Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Hi Michael,

You can try this:
DEFINE FILE CAR
WEIGHT_SUBTOT/D6 = IF SEATS GT 2 THEN WEIGHT ELSE 0;
END
 
TABLE FILE CAR
SUM
     WEIGHT
     WEIGHT_SUBTOT NOPRINT
BY  COUNTRY
BY  CAR
BY  LOWEST SEATS
ON COUNTRY SUBFOOT
"*TOTAL COUNTRY <COUNTRY  <ST.WEIGHT_SUBTOT "
END

With spot markers <+0> you can arrange the positioning to align with the weight column

Martin.


WebFocus 8203M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
 
Posts: 153 | Registered: March 29, 2013Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Or just like this using the SUBTOTAL

DEFINE FILE CAR
WEIGHT/D6 = IF SEATS GT 2 THEN WEIGHT ELSE 0;
END
TABLE FILE CAR
SUM WEIGHT
BY  COUNTRY
BY  CAR
BY  LOWEST SEATS
ON COUNTRY SUBTOTAL WEIGHT
END


WF versions : Prod 8.2.0.1M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2191 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Platinum Member
posted Hide Post
I think the requirement was to show all the weights in the details of the report, just not in the subtotal. Your solution does not show the weight details of the two-seaters.


WebFocus 8203M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
 
Posts: 153 | Registered: March 29, 2013Reply With QuoteReport This Post
Virtuoso
posted Hide Post
My misunderdstanding


WF versions : Prod 8.2.0.1M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2191 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Thanks folks. You have me pointed the right direction.


WebFOCUS 8.2.03 - Production
WebFOCUS 8.2.04 - Sand Box
Windows 2012 R2 Server
HTML, PDF, Excel
In FOCUS since 1980
 
Posts: 116 | Location: Seattle, WA | Registered: April 07, 2015Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     (Solved) Selective Subtotal

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