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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

Sum divide by sum Total

Hi there ,

Please kindly suggest with the set analysis expression :

Expression :

%Death by /Death in whole 

Dimension : =[$(vDisplayedBy)]

Expression :

Sum({$<Mode_Desc={'Death'}>}Measure)/Sum({$<[Mode_Desc]={'Death'},[$(vDisplayedBy)]=>} Measure)

Sum(Measure)/Sum(Total <[$(vDisplayedBy)]>Measure) , I need to put the condition Mode_Desc={'Death'}

 

But my expression not working

Variable details:

set vDisplayedBy='Facility';

Labels (1)
2 Replies
abhijith28
Creator II
Creator II

Can you attach the sample app.

MayilVahanan
MVP
MVP

Hi @ashmitp869 

Try like below

Sum({<Mode_Desc={'Death'}>}Measure)/Sum(Total <[$(vDisplayedBy)]> {<Mode_Desc={'Death'}>}Measure) 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.