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

Rename a data in column via load editor - Qlik Sense

Hi guys,

Not sure if you can use Case function on Qlik sense but anyone know how I can translate this to QlikSense:

select

case

when Model like 'abc123'  then Apple

when Model like 'def456' then Android

Else Other

End as SmartPhones

from Phones

 

Thanks!

 

1 Solution

Accepted Solutions
Kushal_Chawda

@BeauP  you can use case but best way to do it is using pick and wildmatch

=pick(wildmatch(Model,'*abcd*' ,'*pqrs*'),'Apple','Android') as SmartPhones

View solution in original post

3 Replies
Taoufiq_Zarra

@BeauP  maye  be like

load *,
if(Model='abc123','Apple',if(Model='def456','Android','Other')) as SmartPhones
;

sql select * from Phones..
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Kushal_Chawda

@BeauP  you can use case but best way to do it is using pick and wildmatch

=pick(wildmatch(Model,'*abcd*' ,'*pqrs*'),'Apple','Android') as SmartPhones

BeauP
Contributor
Contributor
Author

Thanks for this one - this has worked for me!