T
toby131
I have a query (FIR) with 4 fields: Month, Incidents, Opportunities, and
%Incidents.
% Incidents is being calculated as Incidents/Opportunities. I want to add
to this a three month average % Incidents. This would be the Sum of
Incidents for the listed month & previous 2 months / Sum of the Opportunites
for the same time period. It is not critical to me that the first 2 months
in my data set show a meaningful number, since they will not have 2 months
before them. Example of what I am trying to produce. Thanks in advance for
any help with this calculation!
Month %Incidents Incidents Opportunities 3MonthAvg%
2008-01 17.05% 22 129 17.05%
2008-02 22.58% 28 124 22.58%
2008-03 22.12% 25 113 20.49%
2008-04 12.09% 11 91 19.51%
2008-05 10.64% 15 141 14.78%
2008-06 13.99% 20 143 12.27%
2008-07 14.55% 16 110 12.94%
2008-08 20.29% 28 138 16.37%
2008-09 15.83% 22 139 17.05%
2008-10 16.66% 20 120 17.63%
2008-11 13.93% 17 122 15.49%
2008-12 11.54% 12 104 14.16%
%Incidents.
% Incidents is being calculated as Incidents/Opportunities. I want to add
to this a three month average % Incidents. This would be the Sum of
Incidents for the listed month & previous 2 months / Sum of the Opportunites
for the same time period. It is not critical to me that the first 2 months
in my data set show a meaningful number, since they will not have 2 months
before them. Example of what I am trying to produce. Thanks in advance for
any help with this calculation!
Month %Incidents Incidents Opportunities 3MonthAvg%
2008-01 17.05% 22 129 17.05%
2008-02 22.58% 28 124 22.58%
2008-03 22.12% 25 113 20.49%
2008-04 12.09% 11 91 19.51%
2008-05 10.64% 15 141 14.78%
2008-06 13.99% 20 143 12.27%
2008-07 14.55% 16 110 12.94%
2008-08 20.29% 28 138 16.37%
2008-09 15.83% 22 139 17.05%
2008-10 16.66% 20 120 17.63%
2008-11 13.93% 17 122 15.49%
2008-12 11.54% 12 104 14.16%