Forum Discussion
Create Table Relationship
Hi,
I am trying to join the following three tables without success. Can someone please help?
Currently I have joined the Date table to Calls and Agent Times tables using Call Date. Agent Times has single records per day per agent. Calls table has multiple records; details of many calls per day per agent.
I use Date, Month, Week Number and Year as filters from the Date table. I use Agent, Call Direction, Call Queue, Call Status, Call Type and Company as filters from the Calls table. All of this in a single report.
I need to somehow join Agent in Calls and Agent Times tables. Cannot join as it is as it gives a many to many error. I need this for a new report for Agent Times where I need to use all these filters but not sure how to connect Calls and Agent Times table.
Many thanks in advance.
Do the agents belong to a company? Is that an attribute you could move up to the Agents table? What are you trying to calculate off the Agent Times table?
9 Replies
- jdbuchanan71Super User
You will need an Agent table that sits at the same level as the date table. It should contain the unique list of agents and that you can connect to the 'Agent Time' and Calls table to use to filter the model by Agent.
- armchairexpertHelper III
Already tried that and that didn't work. My new report is based on the Agent Times table and it doesn't let me filter using anything on the Calls table. For example, it doesn't let me filter by Company.
- armchairexpertHelper III
Apologies. It let me filter but had issues with something else. Let me re-create the problem.
- armchairexpertHelper III
It doesn't work. I picked the wrong date to filter earlier. I tried to filter by Company where all the companies had records for a day but it shows all the agents for all the companies.
- jdbuchanan71Super User
Do the agents belong to a company? Is that an attribute you could move up to the Agents table? What are you trying to calculate off the Agent Times table?