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: 
younlim91
Contributor II
Contributor II

If statement with Min function

Hello,

I'm trying to create a dimension like "if ((min(A,B)-C) > D, "N", "Y")". Please help! Thanks!!

younlim91_0-1605146302943.png

 

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

@younlim91 

Try with single quotes, like:

=if(RangeMin(A,B)-C > D, 'N', 'Y')

View solution in original post

6 Replies
MayilVahanan
MVP
MVP

Hi @younlim91 

Try like this

=if(RangeMin(A,B)-C > D, "N", "Y")

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
younlim91
Contributor II
Contributor II
Author

It's giving me "Error in Expression" 

tresB
Champion III
Champion III

@younlim91 

Try with single quotes, like:

=if(RangeMin(A,B)-C > D, 'N', 'Y')

edwin
Master II
Master II

are you creating the dimension in a chart or in the data model?

younlim91
Contributor II
Contributor II
Author

I'm creating dimension in a chart

younlim91
Contributor II
Contributor II
Author

It works! thank you so much!