Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Vijayqlik4171
Contributor III
Contributor III

I want to create days bucket

Spoiler
Spoiler
I have fields 

Invoice date ,
Total outstanding

Can we create bucket like 

0-100 days 

100-300 days 

300-500 days

500days & more
1 Solution

Accepted Solutions
Vegar
MVP
MVP

You can do this by creating four expressions/measures

0-99 day bucket
sum({<[Invoice date]={">$(=today()-100)<=$(=today())"}>}[Total outstanding]) 

100-299 day bucket
sum({<[Invoice date]={">$(=today()-300)<=$(=today()-100)"}>}[Total outstanding])

300-499 day bucket
sum({<[Invoice date]={">$(=today()-500)<=$(=today()-300)"}>}[Total outstanding])

More then 500 days bucket
sum({<[Invoice date]={"<=$(=today()-500)"}>}[Total outstanding])

View solution in original post

4 Replies
Vegar
MVP
MVP

You can do this by creating four expressions/measures

0-99 day bucket
sum({<[Invoice date]={">$(=today()-100)<=$(=today())"}>}[Total outstanding]) 

100-299 day bucket
sum({<[Invoice date]={">$(=today()-300)<=$(=today()-100)"}>}[Total outstanding])

300-499 day bucket
sum({<[Invoice date]={">$(=today()-500)<=$(=today()-300)"}>}[Total outstanding])

More then 500 days bucket
sum({<[Invoice date]={"<=$(=today()-500)"}>}[Total outstanding])

Vijayqlik4171
Contributor III
Contributor III
Author

Thank you vegar

Vijayqlik4171
Contributor III
Contributor III
Author

Can we create field in backend instead of set analaysis

Vegar
MVP
MVP

You can create buckets backend using intervalmatch. See sample below.

Vegar_0-1629403851476.png