Share via

IF & Wighted Average Power Pivot

BedBac 0 Reputation points
2023-05-19T20:17:05.1166667+00:00

Hello, I need your help please!

I want to add a measure in Power Pivot Calculating the YTD value, using conditional criterias.

Monthly Attendance :

If the category if Management we consider the monthly headcount regardless of the amount of hours worked during this month and we give the value of 1. However if the Category is Non-Management, we calculate his value by dividing his actual worked hours (Column C) by the total of the Month Hours (Column D).

YTD **Attendance : *NEED A MEASURE TO CALCULATE IT ***

IF the "Category" = Management it returns the Sum of "Value" of the Current Month and IF "Category" = Non-Management, it returns the SUM of Woked Hours (for ALL Months) /Cumulative Total Month Hours.

It means if we're in March, the Cumulative Total Month Hours = 160+160+240= 560

YTD Mangement = 4.0

YTD Non-Management = Sum of Monthly Hours of each employee / 560 (See Column H)

Thanks so much

User's image

Microsoft 365 and Office | Excel | For business | Windows

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.