Forum Discussion

armchairexpert's avatar
armchairexpert
Helper III
5 years ago
Solved

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.

  • jdbuchanan71's avatar
    jdbuchanan71
    5 years ago

    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

  • armchairexpert 

    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.

    • armchairexpert's avatar
      armchairexpert
      Helper III

      jdbuchanan71,

       

      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.

    • armchairexpert's avatar
      armchairexpert
      Helper III

      jdbuchanan71,

       

      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.

      • jdbuchanan71's avatar
        jdbuchanan71
        Super 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?