How to Aggregate with multiple "If expressions" using Date_Group
Content
Hello - I am trying to build a "productivity" report that will give me the Count of Incidents Closed, multiplied by the Average Time it should take to close a particular Incident, divided by the number of Hours Worked for each Week or Month. I have the following expressions that need to be summed up;
if (incidents.cat_id = 38, (count(*)*(.25)),if (incidents.cat_id = 39, (count(*)*(.41)),if (incidents.cat_id = 40, (count(*)*(.50)),if (incidents.cat_id = 454,(count(*)*(.50)),if (incidents.cat_id = 43, (count(*)*(.33)),if (incidents.cat_id = 46, (count(*)*(.16)),if (incidents.cat_id = 453,(count(*)*(.50)),if (incidents.cat_id = 54, (count(*)*(.25)),if (incidents.cat_id = 58, (count(*)*(.66)),if (incidents.cat_id = 59, (count(*)*(.33)),if (incidents.cat_id = 60, (count(*)*(.16)),0)))))))))))