Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
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
Partner - Champion III
Partner - Champion III

try: floor(column(1)/20)


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

try: floor(column(1)/20)


talk is cheap, supply exceeds demand