Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to optimized code with functions

if(column(1)>=20 and column(1)<=39,1,

if(column(1)>=40 and column(1)<=59,2,

if(column(1)>=60 and column(1)<=79,3,

if(column(1)>=80 and column(1)<=99,4,

if(column(1)>=100 and column(1)<=119,5,

if(column(1)>=120 and column(1)<=139,6,

if(column(1)>=140 and column(1)<=159,7)))))))

1 Solution

Accepted Solutions
Gysbert_Wassenaar

try: floor(column(1)/20)


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar

try: floor(column(1)/20)


talk is cheap, supply exceeds demand