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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Efficency calculation

Hello,

I have data, "total time it took to create the part"(time) and "working mins" (Whole Number).

Is here a way to divide one into the other.

This data would then be used to provide a percentage for the machine efficency for the day, week, month etc.

 

I would really appreciate and help/ suggestions on this

 

0905.JPG09052.JPG

 

Thanks in advance

1 ACCEPTED SOLUTION

Hi @Anonymous 

Create a measure like below.Then drag the date column and the measure to a table visual.

Measure =
DIVIDE (
    CALCULATE ( SUM ( Table1[Time_Second] ) ),
    CALCULATE ( MAX ( Table1[Working-Second] ) )
)

Regards,

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

View solution in original post

7 REPLIES 7
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

You may convent them to seconds columns.Then use the seconds columns to get the percent as requested.

Time_second =
HOUR ( [Time it took to create the part] ) * 60 * 60
    + MINUTE ( [Time it took to create the part] ) * 60
    + SECOND ( [Time it took to create the part] )
Working_second = Table2[Working mins]*60

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks @v-cherch-msft for your help.

 

Im am now having an issue with the division

 

 

if i divide Time_Second into Working_Second in a measure it will sum all of the working mins

eg Sum of Thursday working seconds = 172 +172 +171 + 80 + 141 +415 = 1,151

but it also totals all the working seconds 32400 x 6 = 194,400

 

Is there a way to divide it by a single 32400

(I intend to create report visualisation by day, week month etc so cant select lowest number etc

Untitled11.pngUntitled.png
test123.JPGCapturedddd.JPG

Hi @Anonymous 

You may create a measure with MAX function to get it.If it is not your case,please share some sample data and expected output which would be helpful to provide an accurate solution.

Measure =
DIVIDE ( MAX ( [Working_second] ), SUM ( [Time_Second] ) )

How to Get Your Question Answered Quickly

Regards,

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Apologies @v-cherch-msft 

For context;

We have a factory machine that cuts throughout the day.  I wanted to add to the total cutting time together and then divide by the time in the workers shift in order to get the machine utilisation.

 

on the 16th of april Tuesday i have 8 results

1095 + 183 + 185 + 935 + 977 + 1072 + 1078 + 189 =‬ 5,714 (total seconds of machine in use)

The total working seconds for that day would be 32400

 

I had intended of calculating the machine usage by dividing the total seconds the machine is in use by the total working seconds in a workers shift ( 5,714/32,400 )  which would be 17.63%

formoto.JPG

FYI on fridays we have different working hours 

Thanks

Hi @Anonymous 

Please check below measure:

Measure =
DIVIDE (
    CALCULATE (
        SUM ( Table1[Time_Second] ),
        FILTER ( Table1, Table1[Date] = DATE ( 2019, 4, 16 ) )
    ),
    CALCULATE (
        MAX ( Table1[Working-Second] ),
        FILTER ( Table1, Table1[Date] = DATE ( 2019, 4, 16 ) )
    )
)

 1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Yes that looks to be exactly what i am am looking for.

Is there a way i can do the measure for all the days? 

 

Apologies if this is simple, would be a novice to Dax

 

@v-cherch-msft 

Hi @Anonymous 

Create a measure like below.Then drag the date column and the measure to a table visual.

Measure =
DIVIDE (
    CALCULATE ( SUM ( Table1[Time_Second] ) ),
    CALCULATE ( MAX ( Table1[Working-Second] ) )
)

Regards,

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.