Here's the story. Created a Query (single table)with Begin Date and End date parameters. Have a Completion Date field and a Request Received Date field.
In the Report I created two calculated fields. One for turn time Subtracting the Completion Date field from the Request Rcvd Date Field. This works fine. The second field calculates an age for incomplete fields using an If statement to determine if the completion date is null, then using the date diff function again. Again this works fine.
The report is grouped by Request Rcvd Date by Year and again by Month.
I want to average the above two calculated fields for the month, the year, and the report time frame. It will actually allow this to occur on the turntime field, but will not calculate the age field with a "too complex" error.
I have tried calculating in my query and then referencing these fields for the average calculations with the same results.
Any ideas? I am copying and pasting my calculated fields below. (These are from the query, they are much less ugly if performed in the report)
In the Report I created two calculated fields. One for turn time Subtracting the Completion Date field from the Request Rcvd Date Field. This works fine. The second field calculates an age for incomplete fields using an If statement to determine if the completion date is null, then using the date diff function again. Again this works fine.
The report is grouped by Request Rcvd Date by Year and again by Month.
I want to average the above two calculated fields for the month, the year, and the report time frame. It will actually allow this to occur on the turntime field, but will not calculate the age field with a "too complex" error.
I have tried calculating in my query and then referencing these fields for the average calculations with the same results.
Any ideas? I am copying and pasting my calculated fields below. (These are from the query, they are much less ugly if performed in the report)
Code:
Days_To_Completion: DateDiff("d",[tblInventory_Item_Request_Metric_Data]![Request_Recvd_Dt],[tblInventory_Item_Request_Metric_Data]![Date-of_Completion])
DaysOld: IIf((IsNull([tblInventory_Item_Request_Metric_Data]![Date-of_Completion])),(DateDiff("d",[tblInventory_Item_Request_Metric_Data]![Request_Recvd_Dt],Now())),"")