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
jpvernon67
Frequent Visitor

Number of days a bed

Hi - I have been trying to figure this out for awhile and have tried other solutions but none of them have worked. The situation is we have 8 houses that we manage. Seven of them have 5 beds and 1 has 6. What I need to find out is how days in any given month is someone occupying a bed. These are long term facilities so I also need to include people who have not been discharged yet. The highlighted table below is what I am trying to get to. At the bottom of the page is a link to the tables and also the spreadsheet I have used to calculate this by hand. Thank you.

 

housing spreadsheet.png

 

 

Sample report 

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @jpvernon67 ,

 

Can you provide a screenshot of the desired result and describe it so that I can answer it for you as soon as possible?


Looking forward to your reply.


Best Regards,
Henry

 

The only thing I have is the screen shot from excel above but I'll break it down better. The first table is the sum of the number of days each bed was occupied in any given month. For people who are admitted mid-month this is the number of days from the admission date until the last day of the month. If the person was in the bed all month it is the first day of the month through the last day of the month, and for people discharged during the month it is the first day of the month until the discharge date. I sum all of the person data to get the total days used by house.

jpvernon67_0-1662382005691.png

 

This table is a reference table which is the total bed days available in a given month per house.

jpvernon67_1-1662382066507.png

The result that I need is dividing the bed days used by the total available.

jpvernon67_2-1662382126738.png

 

this is a link to the power bi sample data/report:

https://1drv.ms/u/s!AptRNMy-TRKq4wvd6mrjQTUyIacP?e=OMBu1O 

 

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.