Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
embruqlikview
Contributor II
Contributor II

Select in field - Multiple Values

I use two time axis, when i select a year, a month, a week, then my app should select the correct item in the second time axis (XZ1_year, XZ1_month, etc.)

This works fine, when the user selects one value, but not, when more than one value was selected.

The function "GetFieldSelections(year)" returns all selected values (2020,2021) but the action "select in field" does nothing.

embruqlikview_0-1616059464621.png

embruqlikview_1-1616059631802.png

 

embruqlikview_2-1616059658968.png

 

 

How can i use this trigger, using multiple values?

 

Thanks

Rolf

 

Labels (3)
1 Solution

Accepted Solutions
edwin
Master II
Master II

to clarify, the format you should use is :  (xxxx|xxxx|xxxx)

one way to arrive at this is ='(' & concat(distinct Jahr,'|') & ')'

hope that helps

View solution in original post

3 Replies
edwin
Master II
Master II

 pipe instead of comma
(xxxx|xxxx|xxxx)

embruqlikview
Contributor II
Contributor II
Author

I added the separator in GetFieldSelections()

 

=GetFieldSelections(Jahr,'|')

But it does not work, when selecting multiples values....

In a text field, i'm getting the values, separated through pipe:

embruqlikview_0-1616138774877.png

 

 

Is something missing?

edwin
Master II
Master II

to clarify, the format you should use is :  (xxxx|xxxx|xxxx)

one way to arrive at this is ='(' & concat(distinct Jahr,'|') & ')'

hope that helps