Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
pepe2209
Creator
Creator

Match with dynamic values from field

Hello

I was trying to create a match function where the values to match with are dynamic by a field. I thought of something like this but it's not working:

=match( 'D', concat(distinct(FIELD), ', '))

and FIELD is something like this

FIELD
A
B
C
D
E
F

so if 'D' is present within FIELD it should give a number >0 (in this case 4). does anyone know if this is possible?

your help would be much appreciated

regard,

Peter

1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

You'll need to do something similar to this:

match('D', $(=concat(distinct chr(39) & FIELD & chr(39), ','))

Hope this helps!

View solution in original post

5 Replies
SunilChauhan
Champion II
Champion II

Try this


=match( concat(distinct(FIELD), ', '), 'D')

Sunil Chauhan
jerem1234
Specialist II
Specialist II

You'll need to do something similar to this:

match('D', $(=concat(distinct chr(39) & FIELD & chr(39), ','))

Hope this helps!

Not applicable

try this:

max(Match(FIELD,'D'))>0

if this = 1 so 'D' is present within FIELD

Hope this helps

MC

maxgro
MVP
MVP

define a variable

v     =chr(39) & GetFieldSelections(FIELD, chr(39) & ',' & chr(39)) & chr(39)

expression should be

=match('D', $(v))

see attachment

FIELD.png

pepe2209
Creator
Creator
Author

This is exactly what i need thanks!