Focal Point
[WebFOCUS 8.1.05M] : Where vs Where Totals & Subtotals:Simple vs Subtotals:Recomputed

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/1461084022/m/2707022196

April 05, 2019, 08:37 AM
I ML
[WebFOCUS 8.1.05M] : Where vs Where Totals & Subtotals:Simple vs Subtotals:Recomputed
Hello!

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,
April 07, 2019, 05:24 PM
Waz
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


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

April 08, 2019, 05:21 AM
Addy
Hi ML,
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.


WF 8.2.04
Windows/Unix
All Formats
In Focus since 2006