Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
iliaisyah
Contributor III
Contributor III

add more if in one expression

Hi. 

i wish to make the range like this

ABW range >20 = high

ABW 5 -20 = Medium

ABW less than 5 = low

my script for medium is ok as below

=if((Act_Yield01/BunchCount01)*1000>=5 and (Act_Yield01/BunchCount01)*1000<=20,'Mid')

 

but i dont know how to insert for high and Low1yt.png

1 Solution

Accepted Solutions
zzyjordan
Creator II
Creator II

try this nested if statement

=if((Act_Yield01/BunchCount01)*1000>=5 and (Act_Yield01/BunchCount01)*1000<=20,'Mid',if((Act_Yield01/BunchCount01)*1000>20,'High','Low'))

ZZ

View solution in original post

3 Replies
zzyjordan
Creator II
Creator II

try this nested if statement

=if((Act_Yield01/BunchCount01)*1000>=5 and (Act_Yield01/BunchCount01)*1000<=20,'Mid',if((Act_Yield01/BunchCount01)*1000>20,'High','Low'))

ZZ
iliaisyah
Contributor III
Contributor III
Author

Thank You so muc. it works!

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

=if((Act_Yield01/BunchCount01)*1000 > 20, 'high'
,if((Act_Yield01/BunchCount01)*1000 >= 5, 'med'
,'low))

-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com