I am working on a Pivot Table and have a calculation that I'm very stuck with. I've been trying to combine a calculated detail field with a calculated total field and getting nowhere. If this isn't possible, I'd like to know how I can achieve the calculation I need?
So in the image here, I want to get a currency value based on a percentage. In the image, I want to divide 5 (detail) by 61.5 (total) and multiply by 1130, giving me a value of $91.87.
I also tried making the total field a percentage of column value and that didn't work either.
My source is:
SELECT Employees.EmployeeName, Sectors.SectorName, PayPeriod.PayPeriodNo, TimeTracking.Hours, EmployeeCosts.Wage, [Wage]+[MSP]+[CPP]+[EI] AS TotalCost
FROM Sectors INNER JOIN (PayPeriod INNER JOIN ((Employees INNER JOIN EmployeeCosts ON Employees.ID = EmployeeCosts.EmployeeID) INNER JOIN TimeTracking ON Employees.ID = TimeTracking.Employee) ON (PayPeriod.PayPeriodID = TimeTracking.PayPeriodNum) AND (PayPeriod.PayPeriodID = EmployeeCosts.PayPeriodID)) ON Sectors.ID = TimeTracking.Sector
GROUP BY Employees.EmployeeName, Sectors.SectorName, PayPeriod.PayPeriodNo, TimeTracking.Hours, EmployeeCosts.Wage, [Wage]+[MSP]+[CPP]+[EI];
I'd appreciate some advice please. Thanks in advance.