Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
It's too much for my old brain and I need help please. I'm attempting to solve a data chasm within this model. I've tried breaking it down and helper columns, but I can't seem to make it make sense. I have 3 months of data resulting in 15K rows. My end goal is to find the average foot per hour for that shift on that specific day based on the following heirarchal variables:
My first requirement is to sum the 'Footage Produced' based on the variables above. 1440, 6240, 2160, etc.....
The second requirement is to find the total decimal hours between the first timestamp (06:28) and the last timestamp (16:09) minus 1 hour for lunch and 2 breaks.
The third requirement is to divide the calculated hours by the calculated hours within the filtered variables above to arrive at a average foot per hour.
The result on paper is 56,640ft / 8.683hrs = 6,523.09ft/hr average.
Your help would be greatly appreciated.
Solved! Go to Solution.
Hi @JP1972 ,
1. Create a measure to get the sum of Footage Produced.
Sum Footage Produced =
CALCULATE(SUM('Table'[Footage Producted]),FILTER(ALL('Table'),'Table'[WOC Datetamp] = MAX('Table'[WOC Datetamp]) && 'Table'[Shift] = MAX(' Table'[Shift]) && 'Table'[Work Center] = MAX('Table'[Work Center]) && 'Table'[Item] = MAX('Table'[Item]))))
2. Create a MEASURE to get the difference between the maximum and minimum time.
Diff =
VAR _max_time = CALCULATE(MAX('Table'[WOC Timestamp]),FILTER(ALL('Table'),'Table'[WOC Datetamp] = MAX('Table'[WOC Datetamp]) && 'Table'[ Shift] = MAX('Table'[Shift]) && 'Table'[Work Center] = MAX('Table'[Work Center]) && 'Table'[Item] = MAX('Table'[Item]))))
VAR _min_time = CALCULATE(MIN('Table'[WOC Timestamp]),FILTER(ALL('Table'),'Table'[WOC Datetamp] = MAX('Table'[WOC Datetamp]) && 'Table'[ Shift] = MAX('Table'[Shift]) && 'Table'[Work Center] = MAX('Table'[Work Center]) && 'Table'[Item] = MAX('Table'[Item]))))
var _a=DATEDIFF(_min_time,_max_time,MINUTE)
RETURN
(_a/60) - 1
3. Create MEASURE to get the average value.
ave = 'Table'[Sum Footage Produced] / 'Table'[Diff]
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I was able to get the measure done with this mod
Hi @JP1972 ,
1. Create a measure to get the sum of Footage Produced.
Sum Footage Produced =
CALCULATE(SUM('Table'[Footage Producted]),FILTER(ALL('Table'),'Table'[WOC Datetamp] = MAX('Table'[WOC Datetamp]) && 'Table'[Shift] = MAX(' Table'[Shift]) && 'Table'[Work Center] = MAX('Table'[Work Center]) && 'Table'[Item] = MAX('Table'[Item]))))
2. Create a MEASURE to get the difference between the maximum and minimum time.
Diff =
VAR _max_time = CALCULATE(MAX('Table'[WOC Timestamp]),FILTER(ALL('Table'),'Table'[WOC Datetamp] = MAX('Table'[WOC Datetamp]) && 'Table'[ Shift] = MAX('Table'[Shift]) && 'Table'[Work Center] = MAX('Table'[Work Center]) && 'Table'[Item] = MAX('Table'[Item]))))
VAR _min_time = CALCULATE(MIN('Table'[WOC Timestamp]),FILTER(ALL('Table'),'Table'[WOC Datetamp] = MAX('Table'[WOC Datetamp]) && 'Table'[ Shift] = MAX('Table'[Shift]) && 'Table'[Work Center] = MAX('Table'[Work Center]) && 'Table'[Item] = MAX('Table'[Item]))))
var _a=DATEDIFF(_min_time,_max_time,MINUTE)
RETURN
(_a/60) - 1
3. Create MEASURE to get the average value.
ave = 'Table'[Sum Footage Produced] / 'Table'[Diff]
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I was able to get the measure done with this mod
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!