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: 
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)

Labels (1)
2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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%