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

How to have only selected fields in a text Title

Thought of posting this in a new thread. Micheal had answered this one on how to construt titles with all fields.As shown below.

Use concat function:

='My Company Name' & chr(10) & concat(distinct fieldName, ' & ')

The above expression in a text object gives all available fields. How do we get only the green (selected fields only) to be concatenated. 

Thanks,

Rodrigues

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Sorry, didn't cover that 🙂

It is even simpler:

... & replace(GetFieldSelections(fieldName), ', ', ' & ')

Need replace() to remove "natural separator (comma and space) with the desired "&"

Regards,

Michael

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Sorry, didn't cover that 🙂

It is even simpler:

... & replace(GetFieldSelections(fieldName), ', ', ' & ')

Need replace() to remove "natural separator (comma and space) with the desired "&"

Regards,

Michael

Not applicable
Author

This one works too.. I got an e-mail from Kiran, Wanted to post the alternative.

Thanks Michael & Kiran.

='My Company Name' & chr(10) & if(getSelectedCount(fieldName)>0,concat(distinct fieldName, ' & '),'')