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: 
ToddE
Contributor II
Contributor II

30, 60, 90 Customised Filter

Hello Qlik Community

I've built a table (contracts) and one of the dimensions is 'Days to Expiry' (the calculation happens in SharePoint, so it's just a number in Qlik).  As you'd expect, it contains a whole range of numbers.

I'd like to be able to create a filter so the reader can see contracts due to expire in 30 days or less, 31-60 or 61-90, etc.  Something I've seen lots of requests for help with, but nothing that seems as straightforward as my requirement.  Nevertheless, I'm stuck and everything I've tried doesn't work.

I appreciate any help offered...THANK YOU

 

 

 

Labels (3)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

create a new field as below

if([Days to Expiry]>90,'>90 Days'

  ,if([Days to Expiry]>60,'61-90 Days'

  ,if([Days to Expiry]>30,'31-60 Days','30 Days'))) as ExpiryBucket

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
vinieme12
Champion III
Champion III

create a new field as below

if([Days to Expiry]>90,'>90 Days'

  ,if([Days to Expiry]>60,'61-90 Days'

  ,if([Days to Expiry]>30,'31-60 Days','30 Days'))) as ExpiryBucket

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
ToddE
Contributor II
Contributor II
Author

Thank you Vineeth, that has worked perfectly