How would I add up my "labor hours" column by day so that I can pull a total from it measure for an overtime column?
Here is my query.....
SQL
UseReportingSELECTCalendarDate,Mth,Dy,LEFT(SUM(ActualLaborMinutes/60),5)ASLaborHoursFROMfactJobLaborJJOINdimDateDONJ.TranDateID=D.DateIdJOINdimCostCenterCONJ.CostCenterID=C.CostCenterIDWHEREJ.EmployeeID=9--@EmployeeEmployeeNameandD.Yr='2014'groupbyCalendarDate,Mth,Dy,MthID,ActualLaborMinutesorderbyD.MthIdasc
CalanderDate Mth Dy LaborHours
2014-01-02 Jan Thu 0.116
2014-01-02 Jan Thu 0.616
and so on...