Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

100% stacked bar chart

I can't figure out how to use the TOTAL function with this formula to give a 100% stacked bar chart

COUNT(DISTINCT {$<UserName-={'*test*','loadbalance*'},TestAccount={'false'}}>}UserName)

I have a primary time-based dimension called 'Week' and a secondary dimension called 'Type'.

I tried the following formula but it didn't seem to work

COUNT(DISTINCT {$<UserName-={'*test*','loadbalance*'},TestAccount={'false'}}>}UserName)

/

COUNT(DISTINCT TOTAL {$<UserName-={'*test*','loadbalance*'},TestAccount={'false'}}>}UserName)

2 Replies
Gysbert_Wassenaar

Try:

COUNT(DISTINCT {$<UserName-={'*test*','loadbalance*'},TestAccount={'false'}}>}UserName)

/

COUNT(DISTINCT TOTAL <Type> {$<UserName-={'*test*','loadbalance*'},TestAccount={'false'}}>}UserName)


talk is cheap, supply exceeds demand
Not applicable
Author

Strange, the percentages seem to be adding up to over 100%