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

Pick - match with 2 columns

Hi Community,

is there any way to compare 2 columns with pick - match function for below expression for ex

if(Dim1='A' or Dim2= 'B','X') as Test

-Priya

1 Solution

Accepted Solutions
sunny_talwar

May be this

Pick(WildMatch(Dim1&'|'&Dim2, 'A|*', '*|B') + 1, 0, 1, 1) as Test

So, the above will assign 1 when Dim1 = 'A' or Dim2 = 'B', for rest other the Test = 0

View solution in original post

1 Reply
sunny_talwar

May be this

Pick(WildMatch(Dim1&'|'&Dim2, 'A|*', '*|B') + 1, 0, 1, 1) as Test

So, the above will assign 1 when Dim1 = 'A' or Dim2 = 'B', for rest other the Test = 0