Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
ajaymehtaece
Contributor
Contributor

running total is not working for multiple dimension

Hi All,

I am trying to calculate the running total in qlik using  formula

 

RangeSum (above(TOTAL Sum({<Monthnum={">=$(=Max(Monthnum) -11) <=$(=Max(Monthnum))"}>}absDiff),0,RowNo()))

this formula is working fine for single dimension lets say country,however its not working for multiple dimensions.

kindly help me by providing the solution.

Thanks in advance.Working for one dimensionWorking for one dimensionnot working for multiple dimensionnot working for multiple dimension

 

4 Replies
ramasaisaksoft

Hi Ajay,

 

in your below table you divided into country twice.so i hope if you remove 2 country field hope you will get the expected solution i mean both up and down tables will show same number.

please find the attachment 

let me show correct way,if i miss understood your requirement.

ajaymehtaece
Contributor
Contributor
Author

1st column is Cluster and second is Country.

sunny_talwar

Can you try this

RangeSum(Above(TOTAL 
Sum({<Monthnum = {">=$(=Max(Monthnum) -11) <=$(=Max(Monthnum))"}>} absDiff)
, 0, RowNo(TOTAL)))
Donicc
Contributor II
Contributor II

Looks like your running totals are working as expected:

 

runningtotals.png

 

I think the problem is you asked Qlikview to show a sum of the running totals. IMO, a running total over a non sequential dimension is not any more useful than the partial sums for the Cluster.