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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
siva_boggarapu
Creator II
Creator II

How to put if expression?

Hello There,

How to write If condition in below condition

IF Comparison Contract > MKT3, “EXPENSIVE”. IF Comparison Contract < MKT1, “CHEAPEST”. If none of the previous, “-“

Thanks,

Siva

Labels (1)
2 Replies
Not applicable

if([Comparison Contract]>[MKT3], "EXPENSIVE",

if([Comparison Contract]<[MKT1], "CHEAPEST",

"-"

))

mphekin12
Specialist
Specialist

Try this:

if(ComparisonContract > MKT3,

"Expensive",

if(ComparisonContract < MKT1,

  "Cheapest",

  "-"

)

)