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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Expression for growth %

I have in Qv Do the follwing Pivot Table

Screenshot_1.png

for the last column I do not get the results expected by me. I want to show % of Cum Increase against based year . That is 2013. and Final table should show following result. Pls help me to modify the expression for the last column.

Screenshot_2.png

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

If you want to compare and get % based on top row i.e. 2013 then use as below..

(

RangeSum(Above(SUM({<CLA_CODE={'SS'}>}PREMIUM)/SUM(TOTAL_MEMBERS) - Above(SUM({<CLA_CODE={'SS'}>}PREMIUM)/SUM(TOTAL_MEMBERS)),0,RowNo()))

/

TOP(SUM({<CLA_CODE={'SS'},FROM_YEAR={'2013'}>}PREMIUM)/SUM({<FROM_YEAR={'2013'}>}TOTAL_MEMBERS))

)*100

View solution in original post

8 Replies
MK_QSL
MVP
MVP

You have to provide sample data or sample app, otherwise it's difficult to work on this. Hope to get sample data at least

upaliwije
Creator II
Creator II
Author

Thanks Manish

I gave attched the sampale file Kindly help me

niclaz79
Partner - Creator III
Partner - Creator III

Would this work?

Column(3)/(Sum({<CLA_CODE = {'SS'}, FROM_YEAR = {2013}>}PREMIUM)/Sum({<FROM_YEAR = {2013}>}TOTAL_MEMBERS)*100)

upaliwije
Creator II
Creator II
Author

It does not work

MK_QSL
MVP
MVP

How 0, 2, 4 etc..can you explain?

MK_QSL
MVP
MVP

If you want to compare and get % based on top row i.e. 2013 then use as below..

(

RangeSum(Above(SUM({<CLA_CODE={'SS'}>}PREMIUM)/SUM(TOTAL_MEMBERS) - Above(SUM({<CLA_CODE={'SS'}>}PREMIUM)/SUM(TOTAL_MEMBERS)),0,RowNo()))

/

TOP(SUM({<CLA_CODE={'SS'},FROM_YEAR={'2013'}>}PREMIUM)/SUM({<FROM_YEAR={'2013'}>}TOTAL_MEMBERS))

)*100

upaliwije
Creator II
Creator II
Author

Thanks Manish. It works. What does TOP command means ? Pls explain