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: 
upaliwije
Creator II
Creator II

Cumulative Value

Dear Friends

In my following Pivot table monthly figures are shown with growth rate

Screenshot_1.png

I want to calculate cumulative monthly figures in the same format as shown below ( That month of Feb should show Jan+Feb Figures)

Screenshot_2.png

My expression use for the above are as follows

Actual 2016    sum(PREMIUM)

Budget 2017   Sum(BUDGET)

GROWTH      SUM(BUDGET-PREMIUM)/SUM(PREMIUM)

Pls help me to to the above.

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi Upali,

try

RangeSum(Above(Sum(PREMIUM),0,RowNo()))

RangeSum(Above(Sum(BUDGET),0,RowNo()))

(RangeSum(Above(Sum(BUDGET),0,RowNo()))-RangeSum(Above(Sum(PREMIUM),0,RowNo())))/RangeSum(Above(Sum(PREMIUM),0,RowNo()))

View solution in original post

6 Replies
effinty2112
Master
Master

Hi Upali,

You try this as your expression:

Pick(

Match(MONM,'Actual-2016','Budget-2016','Growth'),

Sum(PREMIUM)

Sum(BUDGET)

Num(SUM(BUDGET-PREMIUM)/SUM(PREMIUM),'0%')

Good luck

Andrew

techvarun
Specialist II
Specialist II

share sample data/qvw to work on this

upaliwije
Creator II
Creator II
Author

Thanks Andrew

I tried but It does not work

Kushal_Chawda

please share the sample file

antoniotiman
Master III
Master III

Hi Upali,

try

RangeSum(Above(Sum(PREMIUM),0,RowNo()))

RangeSum(Above(Sum(BUDGET),0,RowNo()))

(RangeSum(Above(Sum(BUDGET),0,RowNo()))-RangeSum(Above(Sum(PREMIUM),0,RowNo())))/RangeSum(Above(Sum(PREMIUM),0,RowNo()))

effinty2112
Master
Master

Hi Upali,

The images you posted look like they came from Excel. I guess then your QV data model does not have the dimension MONM. If not you can add a calculated dimension:

MONM :

ValueList('Actual-2016','Budget-2016','Growth')

and use expression:

Pick(

Match(ValueList('Actual-2016','Budget-2016','Growth'),'Actual-2016','Budget-2016','Growth'),

sum(PREMIUM)

Sum(BUDGET)

SUM(BUDGET-PREMIUM)/SUM(PREMIUM))

Good luck

Andrew