Power pivot - performing a calculation just for the last row of a set

atkach123

New Member
Joined
Mar 23, 2016
Messages
8
Hi,

I'm currently trying to perform a calculation but I want it to run only for the last day of that week otherwise I want it to return a blank.

Here's an example:

SPLY7vV-Overtime-hours-example.jpg


So in total, this worker worked 74 hours for the week and his threshold after which he gets overtime is 60 hours for the week. So overall he is entitled to 14 overtime hours. In the last column of that example, I want to perform the calculation 74 minus 60 but only if it is the last day of that specific week, otherwise I want it to return a blank. I'm doing this in PowerPivot.


Thanks in advance!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
From what i have read, I believe the best way to achieve this would be to have a linked calendar table ( think there is an automated way to do this (button) in excel 2016, more manual in earlier versions. Your pivot table would then summarise hrs worked per week and calculating overtime hrs should be asy
 
Upvote 0

Forum statistics

Threads
1,224,163
Messages
6,176,789
Members
452,743
Latest member
Unique65

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top