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: 
MalcolmCICWF
Creator III
Creator III

Range Expression in Application

I have some data displayed in an application and one of the fields is Days Delinquent, These days range from 0-100. Does anyone have experience with an expression so that I could select from this field 0-31, 32-61, and 62-100 instead of all the days shown separately?

Labels (1)
1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

Add a listbox with the expression

If([Days Delinquent] <= 31,'0-31',if([Days Delinquent] <= 61,'32-61','62-100'))

Hope this helps

View solution in original post

2 Replies
MayilVahanan
MVP
MVP

Hi,

     Try this,

     In script, Use like this,

     Load * , if([Days Delinquent] >=0 and [Days Delinquent] < 32 , '0-31', if([Days Delinquent] >=32 and [Days Delinquent] < 62, '32-61', '62-100')) as DateRange 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.
nagaiank
Specialist III
Specialist III

Add a listbox with the expression

If([Days Delinquent] <= 31,'0-31',if([Days Delinquent] <= 61,'32-61','62-100'))

Hope this helps