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: 
danieldors
Contributor III
Contributor III

Group by Days

Hello,

 

I'm trying to group the count number of cases by days, 31-60,61-90,91-120 and 120+ days. The data would show 31-60= 1,000 cases,61-90 2,000 cases etc. Any help would be appreciated.

Thank you.

1 Solution

Accepted Solutions
Almen
Creator II
Creator II

You'd simply create some buckets in your script and count those:

 

 

 

IF(Days>=31 and Days<61,Dual('31-60',1),
IF(Days>=61 and Days<90,Dual('61-90',2),
...)

as 

BucketDays

 

 

 

 

View solution in original post

1 Reply
Almen
Creator II
Creator II

You'd simply create some buckets in your script and count those:

 

 

 

IF(Days>=31 and Days<61,Dual('31-60',1),
IF(Days>=61 and Days<90,Dual('61-90',2),
...)

as 

BucketDays