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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Ratio issue

I have following Pivot table in my documnet

 

SITUATION 1
DESCRIPTIONACTUALACT_RATIO
INCOME2,665,244,812100
EXPENSES256,525,52410
SITUATION 2
LOCATIONDEPT 1DEPT 2DEPT 3
DESCRIPTIONACTUALACT_RATIOACTUALACT_RATIOACTUALACT_RATIO
INCOME1,278,071,01448866,770,07933520,403,71920
EXPENSES108,549,183472,843,841375,132,5003

Under situation 1  when I divide the expenses from income i get the correct ratio of 10%

but under situation 2 when I do the same after adding Dept dimension I get a incorrect ratio

Ratio result I am expecting should as give below

       

SITUATION 2
LOCATIONDEPT 1DEPT 2DEPT 3
DESCRIPTIONACTUALACT_RATIOACTUALACT_RATIOACTUALACT_RATIO
INCONME1,278,071,014100866,770,079100520,403,719100
EXPENSES108,549,183872,843,841875,132,50014

My expression is =fabs((Sum(ACTUAL)/$(=$(=vActual))*100))

pls help me get correct results from Oivot table

Labels (1)
13 Replies
upaliwije
Creator II
Creator II
Author

LOCATIONCITYCITYCOLOMBO_&_SUBURBSCOLOMBO_&_SUBURBSOTHER_CITIESOTHER_CITIES
DESCRIPTIONACTUALACT_RATIOACTUALACT_RATIOACTUALACT_RATIO
GROSS_PREMIUM164,678,92710034,421,366100102,631,879100
SRCC_PREMIUM11,812,85771,748,52854,990,0165
FOREIGN_PREMIUM80,082,876497,380,4672116,143,07516
CEDED_PREMIUM91,895,732569,128,9952721,133,09021
upaliwije
Creator II
Creator II
Author

Dear Manish

Pls help me

MK_QSL
MVP
MVP

Sorry after your last reply, I was outside and not having computer..

Use below expression...

=fabs((Sum(ACTUAL)/SUM(TOTAL <LOCATION> {<DESCRIPTION = {'GROSS_PREMIUM'}>}ACTUAL)*100))

upaliwije
Creator II
Creator II
Author

Thanks Manish for your help