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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Ekke
Contributor II
Contributor II

Dimension total is wrong

Hey guys,

i got the problem that the total from qlik sense calculates wrong.

I got 3 Dimensions
1. area Manager
2. district Manager and
3. stores

So now i got two Values, which need to be the same result. The first one i called '1' sums up our plan for the stores on day level and the second called '2' is on month level.

If i show up the result for the stores the values are the same but in the dimension area manager or district manager the values are different. Including null values are all activated....

 

Here a little scrrenshot:

 

Thanks for your help..

Labels (1)
1 Reply
marcus_sommer

A total is only the sum of the rows if a simple sum(Field) is used. As far as there are multiple fields included, for example by applying conditions and/or calculating any kind of rates their evaluation on the total-level could be different to the more granular dimension-level.

To enforce the above mentioned row-level summing you may wrap the calculation with an aggr() which might then be looking like:

sum(aggr(YourExpression, Dim1, Dim2))

whereby Dim1 & Dim2 are just a placeholder for the needed dimensionality context which are most often the dimensions from the object.