I am trying to do some calculations in a PowerPivot cube that contains data from a time registration system.
I have a table called "Registered Hours" that is connected to a table called "Resource" that again is connected to a table called "Department".
I'm trying to build a calculation in the "Registered Hours" table that sums up per Department. The purpose is to compare a resource values against the sum of the entire department.
I've tried implementing the calculation using ALLEXCEPT (from this SO: How to SUM a Column based on another column in DAX Powerpivot):
CALCULATE([Registered Days]; ALLEXCEPT(Resource;'Department'[Department Name]))
This does work, as long as I have the "Department Name" in my pivot table. If I build a pivot table that only has the "Resource Name" (from "Resource" table) on rows this calculation returns the same for all rows. If I add "Department Name" to rows, the calculation works as intended.