I am new in WebFOCUS and I am looking for a meaningful example where the results or outputs by Where vs Where Totals on one hand, and Subtotals: Simple vs Subtotals: Recomputed on the other hand are not the same.
Would you be so kind in pointing out an example, description, functionality, and limits of each of those instructions? I found that the techsupport is a little limited on this.
Thank you so much,
Hi I ML,
Welcome to the forum,
I would suggest checking the documentation on WHERE V WHERE TOTAL and SUBTOTAL.
But simply WHERE is used to filter records and SUBTOTAL is used to create summary records in the report.
Selection Based on Aggregate Values
As Waz suggested documentaion on any topic is quite good for WF so do check that:
WHERE is filter
WHERE TOTAL is HAVING clause in SQL
SUBTOTAL - Summary based on a column or field e.g if you want to know the SALES for each country when using CAR master file you will use SUBTOTAL.
RECOMPUTE- When you have computed columns and want to recalculate the total lines. Eg when you have percentage calculations then if you just take the total then it will be more than 100 but if you use recompute it will recalculate you percentage on the total line.
In Focus since 2006
|Powered by Social Strata|