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

Match

Hi,

I have this:

   

1234
50093627371385ABIAL
50093627371389ORDAL
50093627371405BUFFS
50093627371415ORDFS
50093627371437ORDFS
50093627371469ORDAL
50093627371494ORDAL
50093627371499ORDPK
50093627371512ORDPK
50093627371514ORDPK
50093627371552FLAPK

Ok, i just wanna have one box that showing if column 1 (order) just contains from column 3 FLA or /and ABI

I have this in my box:

=if (not match(Column 3, 'ORD','BUF'),Column 1)

This not working, if there is both ABI and FLA on the same order (Column 1) it will not show it just showing FLA OR ABI not the both if there is. What can i do?

Br

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Yes. I am sorry, the expression needs to be corrected. Try:

Concat(DISTINCT {<[Column1]=P({<[Column3]={'FLA','ABI'}>})>-<[Column1]=p({<[Column3]={'ORD','BUF'}>})>}[Column1], ',')


PFA



View solution in original post

14 Replies
tresesco
MVP
MVP

Which object are you trying with? For multiple values try like:

=Concat ( Distinct (if (not match([Column 3], 'ORD','BUF'), [Column 1])) , ',')

johnan
Creator III
Creator III
Author

Just a straight table in diagram.

prma7799
Master III
Master III

if(not match(col3,'ORD','BUF'),col1) it is perfect please check your column spelling

johnan
Creator III
Creator III
Author

Hi, i'ts not because it wont show if column 3 have both ABI and FLA on same number from Column 1

Br

prma7799
Master III
Master III

Like this you want or please share expected output ..

tresesco
MVP
MVP

Have you tried with concat() as I showed above?

johnan
Creator III
Creator III
Author

Sorry, i was not clear

   

1234
50093627371385ORDAL
50093627371389ORDAL
50093627371405BUFFS
50093627371415ORDFS
50093627371437ORDFS
50093627371469ORDAL
50093627371494ORDAL
50093627371499ORDPK
50093627371512ORDPK
50093627371514ORDPK
50093627371552FLAPK
50095627371567FLAPK
50095627371568FLAPK
50095627371569ABIPK

I just wanna se order 500956 because it's just contains FLA and ABI

The order 500936 can be ignored i'ts contains ORD and it's not relevant for me.

Just when a Order only contains FLA or and ABI

Br

johnan
Creator III
Creator III
Author

Sorry, i was not clear

   

1234
50093627371385ORDAL
50093627371389ORDAL
50093627371405BUFFS
50093627371415ORDFS
50093627371437ORDFS
50093627371469ORDAL
50093627371494ORDAL
50093627371499ORDPK
50093627371512ORDPK
50093627371514ORDPK
50093627371552FLAPK
50095627371567FLAPK
50095627371568FLAPK
50095627371569ABIPK

I just wanna se order 500956 because it's just contains FLA and ABI

The order 500936 can be ignored i'ts contains ORD and it's not relevant for me.

Just when a Order only contains FLA or and ABI

Br

tresesco
MVP
MVP

Try:

=Concat ( Distinct {<[Column 3]={'FLA','ABI'}>} [Column 1]) , ',')