Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Help - how to split data into ranges at the end of each month?

I have a table of cases which has an open date, on hold date and close date in it. It is refreshed each month.
I need to be able to create a table which shows the number of still open cases (not closed and not on hold) at the end of each month split into ranges according to the number of days the case is open.

Please could someone help?

 

open days/asofdate9/30/201910/31/2019
0-30 days2030
31-60 days1520
61-90 days1011
91-120 days1212
120+ days99
2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

I still a little confused about your data sample and your requirement.

Untitled.png

 

I need to be able to create a table which shows the number of still open cases (not closed and not on hold) at the end of each month split into ranges according to the number of days the case is open.

If it is convenient, could you share your desired output so that I could understand your logic better?

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

 Source data I have described just in words, the table at the end was the target table I need. Sorry for confusion.

Here is the sample for better understanding. Next to the Source data I have added the calcualtion I used to create the sample target table - so that is clear the logic for counting open days.

Source data    Calculation logic
Case codeOpen DateOn hold dateClose date # number of Open days on 31-08-19# number of Open days on 30-09-19
A05-07-19   5787
B02-01-1902-02-19    
C25-08-19   636
D15-06-19 30-08-19   
E06-05-19   117147
F17-08-1920-08-19    
G06-09-19 10-09-19   
H23-09-19    7
I07-07-19 06-09-19 55 
J25-07-19   3767
K01-08-1920-09-19  30 
L20-09-19    10
M02-02-19 03-03-19   
N05-03-19   179209
O06-09-19     
       
       
Target table      
Ranges of Open status durationthe count of Open Cases on the 31-08-19the count of Open Cases on the 30-09-19    
0-30 days22    
31-60 days31    
61-90 days02    
91-120 days10    
120+ days12    

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors