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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Total vs {1} Total

hi,

I used following statements.

1. Sum({1} TOTAL Sales) - Take sum of sales & doesn't change if you select any filter ( city, region, year etc)

2. Sum({1} Sales) - Take sum of sales & doesn't change if you select any filter ( city, region, year etc)

if both works same then what is use of TOTAL here?

could anyone explain me in what scenario we should use it?

Labels (1)
8 Replies
sunny_talwar
MVP
MVP

I think this would be the best place to look

The Aggregation Scope

Not applicable
Author

Nice article but my question still remains. if both works same then what is use of TOTAL here?

swuehl
Champion III
Champion III

The article should explain that there is a difference when you are using the expression in a chart with dimensions.

sunny_talwar
MVP
MVP

If they both are getting used in a text box, then having a total doesn't make any difference, but in a straight table or pivot table, the two expression will give different results..... Sample to follow...

sunny_talwar
MVP
MVP

Check out how Sum({1} TOTAL Sales) gives me 30 for both rows, whereas Sum({1} Sales) give 10 and 20

Capture.PNG

swuehl
Champion III
Champion III

You are too kind, Sunny. It's explained quite well in the blog post you linked to... Including sample.

sunny_talwar
MVP
MVP

I guess you are right

Not applicable
Author

Thank you Sunny, stefan