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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.