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: 
Anonymous
Not applicable

List Box - Displaying both frequency and percentage

Hi,

I need to display both the count (frequency) and the percentage for the field in a list box object.  I know that in properties you select 'show frequency' to show the count and 'In Percent' to show the count in a percentage format.  I need to display both for the field for example:

Type:

A     20 (20%)

B     50 (50%)

C     30 (30%)

Any suggestions would be greatly appreciated.

Thanks...

Labels (1)
6 Replies
sunny_talwar

You can use the expression tab within the list box properties tab:

Capture.PNG

and write a expression like this:

=Count(Type) & ' (' & Num(Count(Type)/Count(TOTAL Type), '#.0%') & ')'

HTH

Best,

Sunny

sunny_talwar

Or use this expression if you don't want the count and % to change based on a selection of type:

=Count({<Type = >}Type) & ' (' & Num(Count({<Type = >}Type)/Count({<Type = >}TOTAL Type), '#.0%') & ')'

HTH

Best,

Sunny

buzzy996
Master II
Master II

see tis,

val with per.PNG

Anonymous
Not applicable
Author

Thank you Sunindia..That worked...

sunny_talwar

Awesome

I am glad it worked

b_garside
Partner - Specialist
Partner - Specialist

Mark it as Answered....