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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

true/false expression help needed

Can someone help me with a true/false expression? I need a field that gives me a Y or N.

I have some products and if it equals a certain value/text, I want it to say yes and if not, N.

  • Coffee = 4
  • Tea - Rare

For example:

If coffee = 4 then I want the field to say Y

If coffee do not equal 4, then I want the field to say N

or

If tea = 'Rare' then  Y

If tea does not equal 'Rare" then N

I am very new to QV. Thanks in advance.

Labels (1)
1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

Use an if statement like:

if(Coffee =4, 'Y', 'N')

if(Tea = 'Rare', 'Y', 'N')

Hope this helps!

View solution in original post

2 Replies
jerem1234
Specialist II
Specialist II

Use an if statement like:

if(Coffee =4, 'Y', 'N')

if(Tea = 'Rare', 'Y', 'N')

Hope this helps!

Not applicable
Author

Thanks!!