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: 
nboccassini
Partner - Creator
Partner - Creator

Concat for only possible value

Hi,

I have 2 fields not connected cointain same data (B is a field of a large table )

A
1
2
BC
1x
2y
3z
4q

I need a concat function to show values from A that are in possible value in B.

For ex. I select y and z in field C, the possible values of B are 2 and 3 --> The concat function will be retrieve 2

Thanks

Gabriele

1 Solution

Accepted Solutions
nboccassini
Partner - Creator
Partner - Creator
Author

It doesn't works if a make a seleciton on A.

I've tried this and now works:

=Concat({$*$<A=p({<B=>}B)>}Distinct A,'"|"')

View solution in original post

4 Replies
pradosh_thakur
Master II
Master II

=concat({<A=P(B)>}A,',')

Learning never stops.
nboccassini
Partner - Creator
Partner - Creator
Author

It doesn't works if a make a seleciton on A.

I've tried this and now works:

=Concat({$*$<A=p({<B=>}B)>}Distinct A,'"|"')

pradosh_thakur
Master II
Master II

great!! I thought you only want selection in B which is the only thing you mentioned in the question. Cheers.. :):)

Learning never stops.
evandroaps
Contributor
Contributor

perfect! thanks