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

Calculated Title in the Charts - Qlik Sense

Hi,

I have a bar chart that shows total number of Sales by Sales Rep Names

I want to show total number of sales reps on the title so the users would know exactly how many sales reps are there.


I am using following expression as the title of that chart

='Total Sales by ' &count(Distinct(RepName)) &' Sales Reps'

What is the best way to write above expression to manage Singular & Plural?

Example : If there is only 1 Rep selected then the title should say 'Sales Rep' instead of 'Sales Reps'

Thank you.

1 Solution

Accepted Solutions
sunny_talwar

Or even this

='Total Sales by ' & count(Distinct(RepName)) & 'Sales Rep' & If(Count(DISTINCT RepName) = 1, '' , 's')

View solution in original post

3 Replies
sunny_talwar

May be like this:

='Total Sales by ' &count(Distinct(RepName)) & If(Count(DISTINCT RepName) = 1, ' Sales Rep', ' Sales Reps')

or just this may be

='Total Sales by ' &count(Distinct(RepName)) &' Sales Rep/s'

sunny_talwar

Or even this

='Total Sales by ' & count(Distinct(RepName)) & 'Sales Rep' & If(Count(DISTINCT RepName) = 1, '' , 's')

Not applicable
Author

Thank you once again