Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to show percentage of Count?


Hi,

I have dimension Week  as =IF(FiscalWeekSerial>=$(curFiscalWeekSeq)-4,FiscalWeek) and expression Count as Count(DISTINCT {$<Chore={'Soaps'},Flag={2}>}ID)

it is working in Bar chart. But I need to show another expression as % of Count as another expression. I used below one but it is not working and showing error in expression.

Count(DISTINCT {$<Chore={'Soaps'},Flag={2}>} ID,'#,##0.00%')

Can anyone help me how to write correct expression to show percentage of count.

Thanks.

12 Replies
Not applicable
Author

Thanks Perfect.

Not applicable
Author

try

num(Count(DISTINCT {$<Chore={'Soaps'},Flag={2}>} ID)/Count(all {$<Chore={'Soaps'},Flag={2}>} ID), '##%')

JL1996
Contributor III
Contributor III

thank you so much for sharing this! it also works on my current problem. btw is it also possible to add the value as well as the percentage? apart from that, can I add the individual name inside the stack too? many thanks for your help