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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.