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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out 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

Labels (1)
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