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: 
Anonymous
Not applicable

Select in Field based on possible values of another Field

Dear Community,

i need that possible values of one Field will be selected in another Field

I used therefore two Document Even Triggers "OnAnySelect" :

1) Select all possible values of Field A (MONTH_N)

2) Select in Field B (MONTH_F) all selected values of Field A (MONTH_N)  = '(' & getfieldselections(A,'|') & ')'

Its working only on select MONTH_N but it should work on any select. Example on select YEAR_N.


See example attached

I will be thankful for any help!

1 Solution

Accepted Solutions
sunny_talwar

Although not required, wouldn't it make it somewhat efficient to use Distinct with Concat?

='(' & Concat(Distinct MONTH_N, '|') & ')'

View solution in original post

5 Replies
maxgro
MVP
MVP

try with

- remove select possible

- and use = '(' & concat(MONTH_N,'|') & ')'

sunny_talwar

Although not required, wouldn't it make it somewhat efficient to use Distinct with Concat?

='(' & Concat(Distinct MONTH_N, '|') & ')'

maxgro
MVP
MVP

of course Sunny

and congrat, now you're Legend (25000)

sunny_talwar

Hahahaha thank you for making me one .

Without your and other expert's guidance, I won't have been able to achieve this.

laacib
Contributor III
Contributor III

Hi,

 

I have similar requirement.  I want get the value of field based on selection of another field value.

Could you please explain the above solution? Thanks!