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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

expression help

Hi ,

I was kindly provided the following expression which helps count certain records:

=Count( {<[SMT]={"Yes"}>} [Sex])

however, we also need to show this as a %. I have the following expression which works fine in a straight table; however we want it in a list box. Qlikview says is ok but isn't producing the correct %. Can anyone please help?

=Count( {<[SMT]={"Yes"}>} [Sex])/Count(TOTAL [SMT])

Chris

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try that expression in a text box. You'll see that without a dimension it will return a single value. For a listbox you need a list of values. You can try using an expression with the Aggr function: =aggr(Count( {<[SMT]={"Yes"}>} [Sex])/Count(TOTAL [SMT]), MyDimensionHere)


talk is cheap, supply exceeds demand