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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
mike_spada
Contributor III
Contributor III

Rangesum/accumulation issue

Hi all,

I have this issue: I have a line chart with two dimensions - year and month - and an expression (count(night)) because in my data in night column I have a 'x' to mark if a person works by night.

In my original chart I used "Full accumulation" to see the progression of the nights, and I'm happy.

Tring to port my chat in Sense I see that there is not a "Full accumulation", so I read in community that - even in QlikView, not only in Sense - the situation can be solved using rangesum function. But I can't make it work! 😞

Anyone can tell me where am I doing wrong?

I attached a sample.

Thanks!

Mike

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this:

Aggr(RangeSum(Above(count(Notte),0,RowNo())), (Anno, (NUMERIC)), ([Mese breve], (NUMERIC)))

This will work in Qlik Sense and QlikView 12 and above

The sortable Aggr function is finally here!

Capture.PNG

View solution in original post

4 Replies
sunny_talwar
MVP
MVP

Try this:

Aggr(RangeSum(Above(count(Notte),0,RowNo())), (Anno, (NUMERIC)), ([Mese breve], (NUMERIC)))

This will work in Qlik Sense and QlikView 12 and above

The sortable Aggr function is finally here!

Capture.PNG

mike_spada
Contributor III
Contributor III
Author

It works!

Thank you,

S. Mike

agigliotti
MVP
MVP

I need to have the column total with rangesum being calculated, not 0 like above.

Is it possible ?

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
Anil_Babu_Samineni
MVP
MVP

Sunny, What was the intend in you expression for this, NUMERIC to add. Please describe if you are free

Aggr(RangeSum(Above(count(Notte),0,RowNo())), Anno, [Mese breve])

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful