Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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!
@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 maye be like
load *,
if(Model='abc123','Apple',if(Model='def456','Android','Other')) as SmartPhones
;
sql select * from Phones..
@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
Thanks for this one - this has worked for me!