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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

% calculation

I have following Pivot table in my data model. I want calculate the % (highlighted in  red). Pls help me

GROSS_PREMIUM
BUSINESS_TYPENEW_BUSI.RENEWALS
DEPTBUSINESS_SOURCES%%
HEADA7,855,43218%11,920,41722%
HEADB2,559,2256%3,450,2506%
HEADC2,251,5195%1,744,4953%
HEADD29,875,70270%37,314,17869%
HEADTotal42,541,878100%54,429,339100%
CITYA10,018,21012%13,816,52115%
CITYB3,760,7135%9,376,75210%
CITYC1,084,4721%444,0170%
CITYD68,240,49782%68,232,06074%
CITYTotal83,103,892100%91,869,351100%

My present set expression is as follows

SUM({$<POL_TYPE={'N','R','A'}>}PREMIUM)

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

Sum( {$<POL_TYPE={'N','R','A'}>} PREMIUM) / Sum( {$<POL_TYPE={'N','R','A'}>} TOTAL <DEPT,BUSINESS_TYPE> PREMIUM)

2015-09-20 #1.png

View solution in original post

3 Replies
maxgro
MVP
MVP

SUM({$<POL_TYPE={'N','R','A'}>}PREMIUM)

/

SUM({$<POL_TYPE={'N','R','A'}>} total <DEPT> PREMIUM)

upaliwije
Creator II
Creator II
Author

That is not working

petter
Partner - Champion III
Partner - Champion III

Sum( {$<POL_TYPE={'N','R','A'}>} PREMIUM) / Sum( {$<POL_TYPE={'N','R','A'}>} TOTAL <DEPT,BUSINESS_TYPE> PREMIUM)

2015-09-20 #1.png