Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
bhavvibudagam
Creator II
Creator II

If logic

Hi Experts,

Can any one please help me to convert the below SQL Case Statement into Qlik.

case when tp.Isuueflag = 'P' then th.direction

        when tp.Isuueflag = 'T' then ld.direction

        end Direction,

Thanks in advance

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

IF(tp.Isuueflag = 'P', th.direction,

IF(tp.Isuueflag = 'T', ld.direction,

LegDirection)) as YourFieldName


View solution in original post

2 Replies
MK_QSL
MVP
MVP

IF(tp.Isuueflag = 'P', th.direction,

IF(tp.Isuueflag = 'T', ld.direction,

LegDirection)) as YourFieldName


Qrishna
Master
Master

PICK(MATCH( tp.Isuueflag, 'P' , 'T' ),th.direction, ld.direction)


IF() expression Also  works as suggested by Manish above