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
davidv64
New Member

Room utilization

I have a problem which I can solve without too much difficulty in Excel, but since Excel's formulas are row-based and DAX is not, I am struggling with how to solve this in DAX or PowerQuery. 

 

The situation is that we have operating rooms which are used from 7am until 5 pm. That is, there are 600 minutes available for use by surgeons. I am trying to calculate two things. First is the turnover time which is defined as the number of minutes from the time one patient leaves the room until the next patient is in the room. Assume that one surgeon has one room per day.  The second question is what percentage of the 600 minutes which are available are actually used during the day by one surgeon? 

 

In the attached spreadsheet, I provided a sheet with Raw Data and then a sheet with finished data, using excel functions to calculate the various outcomes I desire (columns "Turnover Time", "Block efficiency" and "Block utilization". Block efficiency and block utilization are essentially the same except that block utilization includes the turnover time. 

 

Eventually, I want to produce a KPI which shows the Block Utilization, mean turnover time and Block Efficiency for each surgeon filtered by a date slicer. 

 

I would appreciate any help on solving this using DAX or PowerQuery. 

 

Attached is my data.

 

https://1drv.ms/x/s!AodJ9zqlTT5LsZlfTW1dZ1za7Fw6Ng?e=VE3q92

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

See attached. Note that your sample data has DQ issues.

 

lbendlin_0-1681528726632.png

 

View solution in original post

4 REPLIES 4
davidv64
New Member

Thank you very much!

davidv64
New Member

Thank you for your time. Your solution will take me a little while to make sense of. May I ask what are DQ issues?  Also, I need to sort these data by surgeon and by month. 

DQ = Data Quality.  You have duplicate entries for 2/21.

lbendlin
Super User
Super User

See attached. Note that your sample data has DQ issues.

 

lbendlin_0-1681528726632.png

 

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.