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
Anonymous
Not applicable

I need to create a measure that calculates the average OEE for the last 24 hours

I need to calculate the average OEE for the last three shifts, but I only have shift as a time reference. However, I do not want to count OEE if no real parts were made. Also, some workplaces have multiple rows per shift.

 

I do not know how to make the filter count shift as a time.

OEE = CALCULATE(AVERAGE(ReportData[OEE]), ReportData[Imputation date] = TODAY(), ReportData[OEE] > 0)))

 

WorkplaceImputation dateShiftManufacturing referenceReal parts/hOEE
C31612/4/2022AA33010.000.00
C31612/4/2022BA33010.000.00
C31612/4/2022CA330120.5014.48
C31612/5/2022AA33010.000.00
C31612/5/2022BA33010.000.00
C31612/5/2022CA33010.000.00
C31612/6/2022AA33010.000.00
C31612/6/2022BA33010.000.00
C31612/6/2022CA33010.000.00
C31612/7/2022AA33010.000.00
C31612/7/2022BA33010.000.00
C31612/7/2022CA33010.000.00
C31612/8/2022AA33010.000.00
C31612/8/2022BA33010.000.00
HL212/6/2022CS3119191.4048.14
HL212/6/2022CS3299191.4041.45
HL212/7/2022AS3119182.8950.21
HL212/7/2022AS3299182.8950.21
HL212/7/2022BS3119204.0361.12
HL212/7/2022BS3147195.3248.97
HL212/7/2022BWR92.310.00
HL212/7/2022CS3147223.4476.30
HL212/7/2022CS3209223.4476.30
HL212/8/2022AS3149195.5347.59
HL212/8/2022AS4119195.5353.76
HL212/8/2022BS3149216.2969.86
HL212/8/2022BS3505151.6823.86
HL212/8/2022BS3506151.6823.65
HL212/8/2022BS4119216.2969.86
HL212/8/2022CS3505161.1269.36
HL212/8/2022CS3506161.1269.36
HL212/9/2022AS3143158.827.23
HL212/9/2022AS3144158.827.23
HL212/9/2022AS3505159.7256.59
HL212/9/2022AS3506159.7256.59
HL412/4/2022AS4600404.9087.66
2 REPLIES 2
lbendlin
Super User
Super User

Please define what you mean by "the last three shifts".  Will the user see a report that shows all days, or only the latest day with data? What is the expected outcome based on the sample data you provided?

 

 

some workplaces have multiple rows per shift

 

How should the average be calculated in that case? Average of sums or Average of values?

 

lbendlin_0-1670695805631.png

See attached for a proposal.

Anonymous
Not applicable

@lbendlin ,

 

I need it only to show the last 24 hours, but I do not have hours, so I have to use shifts. I want to filter the shift and the work center. I will have a scorecard with the average OEE, which I need to update with every shift change to show the last 24 hours (the last three shifts). I need the ability to use a shift filter to look at a specific shift and a work center filter to look at a particular department. The manufacturing reference is the parts made in the work center that day. I have a calendar, work centers, shifts, and manufacturing reference lookup table. In the case of multiple rows, I need the average of the values. I need it to be the average at the bottom level, manufacturing reference. Dates -> shift -> work center -> manufacturing reference.

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.

Top Solution Authors