cancel
Showing results for
Did you mean:
Highlighted
Anonymous
Not applicable

Utilization rate

I'm hoping that there is an easier way to go about this than what I have been trying to do.
We have trucks that run 24/7. Within there, we have shifts that can start at anytime. The majority run less than 11 hours, but we have some that will span multiple days. I am wanting to know, for a given 24 hour period of time, what percent is connected to a shift.

I have a column with shiftstartdatetime, and a column with shiftenddatetime. I also have a separate table for dates titled Date.

I can get the total number of hours in a shift, but it is relating that back to utilization, esp if I have a shift end in the morning and another pick up in the afternoon; or if one runs multiple days(across country)

I'd even take a hint at where to look. Figuring it is going to be a couple calculated columns first, then a measure.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Just going to aggregate to the week/month instead. We are looking for outliers of grossly underutilized resources and this will get us there just as well, if not better.

4 REPLIES 4
Highlighted
Super User IV

Yeah, I've done a fair amount with tricky time manipulation. I have a whole chapter in my book on Time, including Shift calculations although not exactly what you have going on. Also, there is a Utilization recipe. (DAX Cookbook).

Here are some links to some of the work I have done around time and such that hopefully will point you in the right direction.

Also always though, sample data, expected output and the logic to get from point A to B is the quickest way to get an answer. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! DAX Cookbook from Packt
Over 120 DAX Recipes!

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Highlighted
Super User III

We'd need to see some data to really work on this. Additionally, you should put all your column calculations in Power Query if possible, not in DAX. See links below for the reasons. As far as data, we'd also need to see some expected output.

How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum

In general, try to avoid calculated columns. There are times to use them, but it is rare. Getting data out of the source system, creating columns in Power Query, or DAX Measures are usually preferred to calculated columns. See these references:
Calculated Columns vs Measures in DAX
Calculated Columns and Measures in DAX
Storage differences between calculated columns and calculated tables
Creating a Dynamic Date Table in Power Query

Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling

Proud to be a Super User!

MCSA: BI Reporting
Highlighted
Anonymous
Not applicable

Just going to aggregate to the week/month instead. We are looking for outliers of grossly underutilized resources and this will get us there just as well, if not better.

Community Support

Hi @Anonymous ,

I'm not clear about your requirement. If you need help, please share some sample data and expected results. Then we will understand clearly. If you have resolved it, please share your solution here. More people who have the same request will benefit from this thread.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

Power Platform Community Conference

Check out the on demand sessions that are available now!

Microsoft Power Platform Communities

Check out the Winners!

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors