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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
zwyne
Creator
Creator

Chart Title Expression

Hi All,

PFA,

Please assist with my expression for the chart title,

=if(GetCurrentSelections(Country)=0 and  GetCurrentSelections(BU)=0,'Evidence CA','Evidence CA'&'('&GetFieldSelections(BU)&')')  . 

So for example when I select BU='CIB' , the chart title is displayed as  Evidence CA(CIB), but when I select for Country ='Kenya', the chart displays Evidence CA(). How can write the expression which will cater for either Country or BU?

Thanks

 

 

 

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this

=If(GetSelectedCount(Country) = 0,
	If(GetSelectedCount(BU) = 0, 'Evidence CA', 'Evidence CA('& GetFieldSelections(BU) &')'),
	If(GetSelectedCount(BU) = 0, 'Evidence CA('& GetFieldSelections(Country) &')'))

View solution in original post

5 Replies
agigliotti
MVP
MVP

what does your expected result for Country = Kenya is ?
The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
zwyne
Creator
Creator
Author

So I expect when I select Country ='Kenya'  in the listbox for example and my chart title displays Evidence CA(Kenya) and similarly if I select BU='CIB' in the listbox then my chart title displays Evidence CA (CIB). Same thing for  the IR Charts

 

agigliotti
MVP
MVP

maybe this:
='Evidence CA' & '('&GetFieldSelections(Country)&GetFieldSelections(BU)&')'
The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
sunny_talwar
MVP
MVP

Try this

=If(GetSelectedCount(Country) = 0,
	If(GetSelectedCount(BU) = 0, 'Evidence CA', 'Evidence CA('& GetFieldSelections(BU) &')'),
	If(GetSelectedCount(BU) = 0, 'Evidence CA('& GetFieldSelections(Country) &')'))
zwyne
Creator
Creator
Author

Thank you very much  Sunny, always a life saver