=SUM(IIF(Fields!WeekEnding.Value)>= DATEADD(Week,-17,GETDATE()),Fields!Hours.Value / 17)
I want to find the sum of all hours, in the last 17 weeks then divide by 17 to find the average hours per week.
Thanks in advance
=SUM(IIF(Fields!WeekEnding.Value)>= DATEADD(Week,-17,GETDATE()),Fields!Hours.Value / 17)
I want to find the sum of all hours, in the last 17 weeks then divide by 17 to find the average hours per week.
Thanks in advance
SUM(IIF(Fields!WeekEnding.Value >= DATEADD(Week,-17,GETDATE()),Fields!Hours.Value,0) )/17