Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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!


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.