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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to calculate a cummulative %

Hi I'd like to calculate a cummulative % as shown by the value and the formula in the two right columns below -

MonthAppointments MadeNo of Jobs
1101283.33%=10/1283.33%=10/12
2202290.91%=20/2288.24%=(10+20)/(12+22)
3507071.43%=50/7089.89%=(10+20+50)/(12+22+70)

The first % column is fine; it's just the Appointments Made/No of Jobs. However the second % column, which is like the rolling average % is difficult to get in QlikView. I can't use the Full Accumulation tickbox; that doesn't seem to work, although it will accumulate the Appointments Made and the No of Jobs inidivdually, just not when they are a %.

Any suggestions would be great. Thanks in advance

Charlotte

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Charlotte,

try something like

=rangesum(above(sum([Appointments Made]),0,rowno() )) / rangesum( above(sum([No of Jobs]),0,rowno() ))

Hope this helps,

Stefan

View solution in original post

3 Replies
swuehl
MVP
MVP

Charlotte,

try something like

=rangesum(above(sum([Appointments Made]),0,rowno() )) / rangesum( above(sum([No of Jobs]),0,rowno() ))

Hope this helps,

Stefan

Not applicable
Author

Thanks very much. it's not giving me exactly the answer I want on row 3 but going to investigate and will let you know. thx again

Not applicable
Author

Thanks very much, my mistake, your answer was absolutely spot on! I just needed a bit of spare time to look at it and work out how it works. Thx again, much appreciated, Charlotte