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: 
Not applicable

Non Ordered Running Sum

Hey everyone.  I need some help.

I need to sum all of the values in my chart that are larger then the current value.  This is kind of like a running sum, but the values are not in order so i cant do a running sum.  I was trying something like this, but it does work: sum(total aggr(if(sum([New Policy Count])>[New Policy Count], sum([New Policy Count]),0),MainProducer)).

Here is an example of what i am looking for:

IDNewCountDesired ResultCalculation
001IL5625+12+18+27
002IL125712+18+27
001IN1641+1+5+12+18+27
002IN1641+1+5+12+18+27
001OH272727
002OH184518+27
2 Replies
Not applicable
Author

Hey Micah,

Please check out the attached file. I did the calculation on the back-end and created a field called NewValue which would give you the values you are looking for.

Hope it helps you

Thanks

AJ

Not applicable
Author

There are a few ways that i can pre-calculate this, what i am looking for is a way to do it in an expression in my chart.