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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
alvinford
Contributor III
Contributor III

How to Calculate

Hi I have the following issue

I am calculating the G% value as (TY-LY) / LY using the below data.NO issues in calculating the G%

I want to Calculate the P% using the cummulative values Row wise i.e

TY

LYG %P%P derived using TY and LY
654.6490.133.533.5(654.6 -490.1) / 490.1
514.1404.127.230.7((654.6+514.1) - (490.1+404.1))/(490.1+404.1)
550.7597-7.715.3((654.6+514.1+550.7) - (490.1+404.1+597.0))/(490.1+404.1+597.0)
569.81,017.60-44-8.8((654.6+514.1+550.7+569.8) - (490.1+404.1+597.0+1,017.6))/(490.1+404.1+597.0+1,017.6)
908.7806.812.6-3.5((654.6+514.1+550.7+569.8+908.7) - (490.1+404.1+597.0+1,017.6+908.7))/(490.1+404.1+597.0+1,017.6+908.7)

In the above example I have calculated manually . How can I achieve this in QlikView.

Thanks in Advance,

Regards,

Alvin.

3 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

hi,

I hope attach application helps you out.

alvinford
Contributor III
Contributor III
Author

Thanks Deepak,

Regards,

Alvin.

Not applicable

Hi,

one of solutions, P%;

(RangeSum(above(sum(TY),0,NoOfRows()))-RangeSum(above(sum(LY),0,NoOfRows())))
/RangeSum(above(sum(LY),0,NoOfRows()))

regards,

kaz