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

Sql logic in Qlik

Hi All, 

Can you please help me with the SQL logic below, I am trying to migrate App based on SQL to Qlik. 

If ( ([abc Description] = 'A', 'B', 'C', 'D'),

(IF[Re Type]='Ind')
THEN ('Re')

ELSE IF([Re Type] in ('Loan'))
THEN ('Demo')

ELSE IF([Re Type] in ('Comp Purchase', 'Comp Purchase via Finance Company'))
THEN ('Corporate'))

ELSE ('Other')

Else [abc Description])

What would be the equivalent qlik script for the above part. 

Thanks.

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

If( wildmatch( [abc Description], 'A', 'B', 'C', 'D')

,Pick(Wildmatch ([Re Type],'Ind','Loan','Comp Purchase', 'Comp Purchase via Finance Company')+1,'Other','Re','Demo','Corporate','Corporate'),[abc Description])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
vinieme12
Champion III
Champion III

If( wildmatch( [abc Description], 'A', 'B', 'C', 'D')

,Pick(Wildmatch ([Re Type],'Ind','Loan','Comp Purchase', 'Comp Purchase via Finance Company')+1,'Other','Re','Demo','Corporate','Corporate'),[abc Description])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
AjjuSid
Contributor III
Contributor III
Author

Thank you for your help.