Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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.

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!!