Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
chinnu123
Creator
Creator

Need help on converting sql syntax to qlik

Hi Team,

case when PLN33 ='GEC'

then 'GEC - ' ||  DEPARTMENT else  PLN33 end DEPARTMENT.


please any one help on this to change in to qlik syntax

Thanks,

Chinnu.

1 Solution

Accepted Solutions
sergio0592
Specialist III
Specialist III

Try with:

LOAD

If(PLN33 ='GEC','GEC - ' & DEPARTMENT,PLN33) ,

xxx,

...

View solution in original post

5 Replies
kenphamvn
Creator III
Creator III

Hi

you can using if statement or Pick/match function

Please refer

Pick and Match example

chinnu123
Creator
Creator
Author

Hi An Pham,

Thanks for your quick reply. I tried by using pick and if conditions but its not worked.

Thanks,

Chinnu

sergio0592
Specialist III
Specialist III

Try with:

LOAD

If(PLN33 ='GEC','GEC - ' & DEPARTMENT,PLN33) ,

xxx,

...

chinnu123
Creator
Creator
Author

Thanks Jean For your time its working fine now.

sergio0592
Specialist III
Specialist III

So, if you want to use Pick/Match you try with:

LOAD

pick(match(PLN33,'GEC')+1, PLN33, 'GEC - ' & DEPARTMENT),

xxx,