I am using query builder to pull some figures.
The following shows the data I need:
What I am trying to then do it add more to the builder to divide one by the other and come up with the below; any help on why this is not working is appreciated.
The following shows the data I need:
Code:
SELECT [_tbl_Structure].[User Name], tbl_Genesys_Daily.Field7, tbl_Genesys_Daily.Field8, Count(tbl_plans_yesterday.[User ID]) AS [CountOfUser ID], [field7]+[field8] AS calls
FROM (_tbl_Structure LEFT JOIN tbl_Genesys_Daily ON [_tbl_Structure].[User ID] = tbl_Genesys_Daily.Field5) LEFT JOIN tbl_plans_yesterday ON [_tbl_Structure].[User ID] = tbl_plans_yesterday.[User ID]
GROUP BY [_tbl_Structure].[User Name], tbl_Genesys_Daily.Field7, tbl_Genesys_Daily.Field8, [field7]+[field8];
Code:
SELECT [_tbl_Structure].[User Name], tbl_Genesys_Daily.Field7, tbl_Genesys_Daily.Field8, Count(tbl_plans_yesterday.[User ID]) AS [CountOfUser ID], [field7]+[field8] AS calls, Sum(Nz([tbl_plans_yesterday].[User ID]/[Calls],0)) AS PlanEff
FROM (_tbl_Structure LEFT JOIN tbl_Genesys_Daily ON [_tbl_Structure].[User ID] = tbl_Genesys_Daily.Field5) LEFT JOIN tbl_plans_yesterday ON [_tbl_Structure].[User ID] = tbl_plans_yesterday.[User ID]
GROUP BY [_tbl_Structure].[User Name], tbl_Genesys_Daily.Field7, tbl_Genesys_Daily.Field8, [field7]+[field8];