Forum Discussion

dw700d's avatar
dw700d
Post Patron
7 years ago

establishing multiple table relationships

Hello, 

 

I have four tables with approx 1 million rows. Each table includes data from Jan 2018 until Present. Table 1) contains total count of calls Made at the Employee level(3,000 employees). Table 2) contains the aggregate count of calls made by all employees at the company level(6 companies). Table 3 contains amount of credits given by employees. and table 4 contains the amount of fees waived by employees. I created a bridge table based on company and I then attempted to create a new measure to calculate credits given as a percentage of calls made at the company level and employee level. I am also trying to calculate fees waived as a percentage of calls made at the company level and employee level .when I view this new measure the calculation is way off, it is extremely low, My end goal is to include the Monthly Fee Waiver rates and credit rates in a chart that allows me to drill down to site level and agent level. Can anyone help me? Should I be using a different method to establish a relationship?

 

 Employee Calls made
CompanyEmployee IdCalls MadeMonth
E*TRADETom728January
SuntrustMike2February
Bank of AmericaBobby546June
MerrillBill5February
vizantJoe376January
CokeSam295March

 

 Company Calls made
CompanyCalls MadeMonth
E*TRADE2000January
Suntrust1344January
Bank of America3444June
Merrill23443February
vizant22234January
Coke544545

March

   
Employee Credits Given
CompanyEmployee IdCredits GivenMonth
E*TRADETom121January
SuntrustMike121February
Bank of AmericaBobby43June
MerrillBill5454February
vizantJoe22January
CokeSam295March
Employee Fees waived
CompanyEmployee IdFees WaivedMonth
E*TRADETom121January
SuntrustMike121February
Bank of AmericaBobby43June
MerrillBill5454February
vizantJoe22January
CokeSam295March

3 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Perhaps if you provided your calculation that would assist. Also, I wonder if you couldn't just merge/join all of those tables together perhaps? With the data as provided, you would need a bridge table for Employee perhaps as well as Company and then use USERELATIONSHIP in your calculation perhaps.

    • dw700d's avatar
      dw700d
      Post Patron

      FeesWaived divided by Calls made =
      DIVIDE(
       SUM('Employees fee waived[Fees Waived]),
       SUM('Employees Call made"[Calls Made])
      )

      ^^^that is the quick measure I am using I am also doing the same for credits given. I think its a relationship issue because when I try to combine data from different tables and look at a monthly view of the data all my numbers are the same.  for example , I used waived fee data from  my 'employees fee waived table' and took the date from my 'employee call made' table and created achart. In this chart each month showed 1,200,000 fees waived . That is definetly not correct. In actuality some months have way more that 1.2 million and some have way less..

       

      Can I do a merge/join if the same employees are not included in all tables? For example some employees may have made calls but they may not have waived fees so they wouldnt be in the 'employee fees waived table'. If using a bridge is the way to go can you give me a little more detail on how to do this? I am still a novice, thanks your help!!

      • v-piga-msft's avatar
        v-piga-msft
        Resident Rockstar

        Hi dw700d,

         

        The relationship should based on what you want to calculate.

         

        If it is convenient, could you please share your desired output based on your data sample so that I can understand your requirement better and get the solution.

         

        Best Regards,

        Cherry