Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sibijoseph
Contributor II
Contributor II

RANGESUM - ABOVE - Not working when a new dimension added to chart

Hello All,

I'm using the following expression to obtain a cumulative chart: 

RangeSum(Above(num(Count({<ORDER_STATUS = {'COMPLETED'}>}ORDER_NUMBER)/(Count(total ORDER_NUMBER))),
0, RowNo(total)))

This is created as Measure (Height).

Under dimensions I have one dimension which is basically - NUMBER OF DAYS. Please find below screenshots. This is working as expected, no issues.

WorkingAsExpectedWorkingAsExpected

--------------------------

But now I want to add another dimension CREATION_WEEK, so that I can select multiple weeks and do the comparison.

So I went ahead with the same expression as above - 

RangeSum(Above(num(Count({<ORDER_STATUS = {'COMPLETED'}>}ORDER_NUMBER)/(Count(total ORDER_NUMBER))),
0, RowNo(total)))

And added one more dimension - CREATION_WEEK in addition to NUMBER OF DAYS, but now the chart is not displayed as expected. Please find below screenshots.

QlikQuery2.PNG

 

I tried using Aggr() function but not successful. (I'm not sure on how to use it)

So I'm looking forward for suggestions to do this cumulative  sum as done in the first chart but on a weekly basis so that I could select required weeks and do comparison. 

Let me know if something is not clear!

2 Solutions

Accepted Solutions
tresesco
MVP
MVP

Try putting Total in above(), like:

RangeSum(Above(Total num(........

View solution in original post

sibijoseph
Contributor II
Contributor II
Author

That's cool! Worked.

SolvedSolved

View solution in original post

2 Replies
tresesco
MVP
MVP

Try putting Total in above(), like:

RangeSum(Above(Total num(........
sibijoseph
Contributor II
Contributor II
Author

That's cool! Worked.

SolvedSolved