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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Using an expression to add text to a chart title

I am using the following expression to add dynamic text to a chart title -

='Full breakdown of the number of entrants from,  ' & region

I would like to alter the expression to show the 'region' OR the 'institution' if a specific institution is selected.

I'm not very good with IF statements or programming in general.  Is there an easy way to do this?

Thanks

Greg

1 Solution

Accepted Solutions
marcus_sommer

You could try something like this:

='Full breakdown of the number of entrants from,  ' & if(getselectedcount(institution) = 1, institution, region)

- Marcus

View solution in original post

3 Replies
marcus_sommer

You could try something like this:

='Full breakdown of the number of entrants from,  ' & if(getselectedcount(institution) = 1, institution, region)

- Marcus

Anonymous
Not applicable
Author

Thanks Marcus.  I'm very grateful.

Greg

maxgro
MVP
MVP

this is to show the institution if one instititution is selected (getselectedcount), else the regions


='Full breakdown of the number of entrants from,  ' & if(GetSelectedCount(institution)=1, institution, concat(distinct region, ', '))