Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
MalcolmCICWF
Creator III
Creator III

(IF) Statement With Number Range

I have a list of codes 1000-5000. I want to load codes 2000-3500 as "Label". How could I write this out without doing a Mixmatch and listing all the codes I want or do not want? I believe it is some sort of "IF" statement, but I am not sure how to write it out.

1 Solution

Accepted Solutions
MayilVahanan

HI

Try like this

Load *,

If(Codes >=2000 and Codes<=3500,Codes) as Label from tablename;

Hope it helps

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

View solution in original post

1 Reply
MayilVahanan

HI

Try like this

Load *,

If(Codes >=2000 and Codes<=3500,Codes) as Label from tablename;

Hope it helps

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