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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.