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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
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