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

Hospital Bed Census Help

Hello

 

I am trying to show how many of our beds were filled on any given day and by program, i.e. "820 Stabilization".  The unique ID is the Patient ID.

 

Here is an example of file that the EMR exports.  

 

Example File 

 

Any assistanctane would be most appreciated. 

 

Thanks!

Alan

 

 

 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-eachen-msft
Community Support
Community Support

Hi @acalhoun78 ,

 

You could use DISTINCTCOUNT() function to get value of beds and use date slicer to select data range.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Thank you for the suggestion.  I have tried that in the past, and it appears the issue is there are only two dates at play, admission and discharge.  

 

I have seen similar issues on this forum that involved creating a Calendar, and then writing a formula that compare the two dates.  However, I have not been able to make those work correctly.

 

Here is the other forum post:

 

I wrote my original post with very limited time, and a fair amount of frustration with not being able to solve my own issue.  I'll explain my problem to a better degree so that may present a better understanding of what I'm hoping to accomplish.

 

We are a non-profit substance abuse clinic with 5 locations (programs) that have beds that clients can occupy.  The financial health of those clinics is directly related to how full we can keep them.  I would like to be able to display a visual that can drilldown to see our historical census, or fill rate.  

 

The bit that I cannot overcome with my limit knowledge of Power BI/DAX is how do I show that number with only admission and discharge dates?

 

Thanks again

Alan

 

 

Hi Alan

 

I've had a similar task in a previous role.  It was a while ago and we were using SSRS for reporting but I think the principal would be the same.

 

I assume your data is currently a table with a row for each patient showing, patient ID, bed number, admission date, discharge date?  I'd suggest you use this and a date table to create a table which shows the patient ID, bed number and date with a row for each patient for each day they were in the bed.

Where is your data stored?  If it's in a SQL I'd suggest it might be easier to do the transformation there.

 

Hope this helps

 

Matt

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.