[SOLVED] Don't print specific row without effecting summarized total
hello,
Hope someone can help met with the following problem. I don't want a specific row to be printed.
TABLE FILE CAR SUM LICENSEPLATE AS 'Number of cars' BY BRAND ON TABLE SUMMARIZE LICENSEPLATE END
How can I get rid of the row 'AUDI' without effecting the summarized total?
Thanks for your help!
RichardThis message has been edited. Last edited by: Kathleen Butler,
WebFOCUS 7.6 Windows, All Outputs
March 15, 2016, 07:47 AM
MartinY
Could be one way
TABLE FILE CAR
SUM SEATS
BY TOTAL COMPUTE ROWID /I1 = 1;
BY CAR
WHERE CAR NE 'AUDI';
ON TABLE HOLD AS TMPDET FORMAT FOCUS
END
-RUN
TABLE FILE CAR
SUM SEATS
BY TOTAL COMPUTE ROWID /I1 = 2;
BY TOTAL COMPUTE CAR /A16 = 'TOTAL';
ON TABLE HOLD AS TMPTOT FORMAT FOCUS
END
-RUN
TABLE FILE TMPDET
PRINT SEATS
BY ROWID NOPRINT
BY CAR
MORE
FILE TMPTOT
END
-RUN
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
March 15, 2016, 07:48 AM
Ricardo Augusto
WebFOCUS 8.1.05 / APP Studio
March 15, 2016, 12:11 PM
Richard Sterkenburg
Thanx! I will try this.
WebFOCUS 7.6 Windows, All Outputs
March 16, 2016, 03:43 AM
Dave
Richard,
pretty cool, having a "CAR" sample file in your line of business ;-)