Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Handling percentage when drilling down

Hello,

Plz find attached I have an issue with calculating percentage while drilling down and drilling up.

10 Replies
MK_QSL
MVP
MVP

Change Expression as

Sum(Actual)/SUM(TOTAL Actual)

Not applicable
Author

Hello Manish,

See result i got which is very wrong

Where do i go from here?

MK_QSL
MVP
MVP

I don't think anything wrong in your chart...

Total is also 100%..

let me know what you think is wrong !

if you make the straight table for the same dimension and expressions, you will get below

MonthActualTarget
100%100%
Apr11%8%
Aug9%8%
Dec6%8%
Feb6%8%
Jan16%8%
Jul6%8%
Jun15%8%
Mar4%8%
May17%8%
Nov4%8%
Oct2%8%
Sep4%8%
Not applicable
Author

See this. I doubt the formula. Because 2013 Target should b greater than Actual

MK_QSL
MVP
MVP

It is...

but as you have year as dimension and both year 2012 and 2013 are having same target, it is divided by 2 so they are showing as 50%- 50% as ratio.

Not applicable
Author

i want to use IF statement to calculate; if Dimension = to Year it should divide by 100 and when Dimension equal month does normal. i need assistance in implementing this..

MK_QSL
MVP
MVP

Elaborate little more please.. I am unable to catch your requirements.

Not applicable
Author

this is what i want

IF (dimension = Year)

     sum(Actual)/12

else

     (dimension = Month)

     sum(Actual)

This is what i want to achieve. because i already have created a drill-down field

MK_QSL
MVP
MVP

=IF($(=GetCurrentField(mYear))='Year',SUM(Actual)/12,SUM(Actual))