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: 
seahyanzheng
Contributor III
Contributor III

Selecting multiple values using concat function

Hi,

May i ask how do i select multiple values on field event trigger?

For example, on "_metricNo" selections, i like "_metrics" to be selected.

Im able to get "_metrics" values:

='(' & concat(''& _metrics & '','|') & ')' which returns these values

Capture.PNG


and i put in get field selection for "_metrics" but it doesnt get selected. The values above are delimited by '|'.

May i ask how do i proceed?

Thanks!


Labels (1)
2 Replies
ashwinisondkar
Contributor
Contributor

Could you please try below expression

='('&Concat(_Metrics,'|')&')'

seahyanzheng
Contributor III
Contributor III
Author

Manage to get the answer:

='(' & Concat(DISTINCT chr(34) & _metrics & chr(34), '|') & ')' instead of

='(' & concat(''& _metrics & '','|') & ')'

Thanks.