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

Expression in Title

I have th folowing expression in title:

='Asia Pacific (' & if( GetFieldSelections([Demise Year])='','All Years',GetFieldSelections([Demise Year])) &')'

When Demise Year is selected (2011 for instance) I am having Asia Pacific (2011) which is correct. When i clear all selection I expect to see

Asia Pacific(All Year) but I only have Asia Pacific()

Any help will be appreciated. Thanks

1 Solution

Accepted Solutions
erichshiino
Partner - Master
Partner - Master

Try to make it like this:

='Asia Pacific (' & if( len(trim( GetFieldSelections([Demise Year]) ))=0,'All Years',GetFieldSelections([Demise Year])) &')'

maybe the result is not blank in this case, but a NULL which is different from blank (NULL <> NULL too)

Regards,

Erich

View solution in original post

2 Replies
erichshiino
Partner - Master
Partner - Master

Try to make it like this:

='Asia Pacific (' & if( len(trim( GetFieldSelections([Demise Year]) ))=0,'All Years',GetFieldSelections([Demise Year])) &')'

maybe the result is not blank in this case, but a NULL which is different from blank (NULL <> NULL too)

Regards,

Erich

Not applicable
Author

Thanks a lot Erich