Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: 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


krishna_2644
Specialist III
Specialist III

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


IF() expression Also  works as suggested by Manish above