Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

if condition in qlikview

if(x<=y) then output is a

if(x=y)                         b

>                                 c

where a,b c will be used as flag

3 Replies
rahulpawarb
Specialist III
Specialist III

Please try below:

If(x<=y, a, If(x=y, b, c)) or If(x<=y, 'a', If(x=y, 'b', 'c'))


Regards!

Rahul

PrashantSangle

Hello,

try this,

if(x<=y,'a',if(x=y,'b','c')) as flag

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Frank_Hartmann
Master II
Master II

Your condition makes no sense to me, because its not clear what happens in case of x=y.

In your example it could be either a or b.

shouldn´t it be something like this:

if(x<y,'a',if(x=y,'b',if(x>y,'c'))) as Flag

hope this helps