Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
jblomqvist
Specialist
Specialist

What's the difference between TOTAL and ALL options in expressions?

Hi all,

What's the difference between TOTAL and ALL options in expressions?

Has anyone got some illustrated examples?

4 Replies
swuehl
MVP
MVP

As far as I remember, ALL is a depricated keyword (still working, but should not be used in new developments) and equivalent to

TOTAL {1}

i.e. disregard all user selections, all dimensions within the aggregation.

sunny_talwar

Although All might still be working, but I have heard that it may be discontinued from future versions.

All -> TOTAL and {1}

Total -> TOTAL

So basically if you wanted to create an expression where it was Total and also doesn't change based on selection, you can use All

Sum(ALL Sales) = Sum(TOTAL {1} Sales)

mayankraoka
Specialist
Specialist

Hi John,

Total & ALLs

sum(All Sales) returns aggregated sales irrespective of any dimension and any selection

sum(Sales)/sum(total Sales) returns the share within the selection

sum(Sales)/sum(total <Month> Sales) returns the share within the selection for each

Month

sum(Sales)/sum(total <Month,Grp> Sales) returns the share within the selection for

each Month and Grp

sum(Sales)/sum(total <Qtr,Month,Week> Sales) possible syntax for use with a time

drill-down group

sum({1} total Sales) returns sales within the entire document


Regards,

Mayank

MarcoWedel