Forum Discussion
Efficency calculation
- 7 years ago
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,
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,
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%
FYI on fridays we have different working hours
Thanks
- v-cherch-msft7 years agoMicrosoft Employee
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 ) ) ) )Regards,
- Anonymous7 years agoNot 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-msft7 years agoMicrosoft Employee
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,