Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Divide single row values by a count

I have two tables - one contains an agent's weekly production goals & the other table contains the records of the agents actual production. I want to create a matrix visual showing each agent's % of goal each week (production count / goal). I've only been using Power BI a short while & have had no luck trying to find an answer. Is this possible? Below are two example tables and the matrix I'm trying to Any help would be greatly appreciated.

 

Regards,

Ernie

 

Table 1 Table 2 % of Goal Matrix
Week ofAgentProduction Goal Production DateAgentProduct Serial # Agent7/31/20228/7/2022
7/31/2022John5 7/31/2022John12 John60%100%
7/31/2022Bill4 7/31/2022Bill32 Bill125%67%
7/31/2022Suzy3 7/31/2022Suzy11 Suzy100%33%
7/31/2022Jill2 8/1/2022John45 Jill50%40%
8/7/2022John2 8/2/2022Bill87    
8/7/2022Bill3 8/3/2022John78    
8/7/2022Suzy3 8/3/2022Jill39    
8/7/2022Jill5 8/3/2022Suzy64    
    8/3/2022Bill99    
    8/3/2022Bill22    
    8/3/2022Suzy74    
    8/4/2022John98    
    8/4/2022Bill33    
    8/7/2022Suzy19    
    8/7/2022Jill26    
    8/8/2022Bill93    
    8/9/2022Bill10    
    8/10/2022John13    
    8/10/2022John69    
    8/11/2022Jill73    
  • Anonymous's avatar
    Anonymous
    4 years ago

    Maybe this is better...

     

    Table 1

    Week ofAgentProduction Goal
    7/31/2022John5
    7/31/2022Bill4
    7/31/2022Suzy3
    7/31/2022Jill2
    8/7/2022John2
    8/7/2022Bill3
    8/7/2022Suzy3
    8/7/2022Jill5

     

    Table 2

    Production DateAgentProduct Serial #
    7/31/2022John12
    7/31/2022Bill32
    7/31/2022Suzy11
    8/1/2022John45
    8/2/2022Bill87
    8/3/2022John78
    8/3/2022Jill39
    8/3/2022Suzy64
    8/3/2022Bill99
    8/3/2022Bill22
    8/3/2022Suzy74
    8/4/2022John98
    8/4/2022Bill33
    8/7/2022Suzy19
    8/7/2022Jill26
    8/8/2022Bill93
    8/9/2022Bill10
    8/10/2022John13
    8/10/2022John69
    8/11/2022Jill73

     

    Desired Matrix

    Agent7/31/20228/7/2022
    John60%100%
    Bill125%67%
    Suzy100%33%
    Jill50%40%

6 Replies

  • vanessafvg's avatar
    vanessafvg
    Community Champion

    can you separate out the tables properly in text, in 3 separate chunks.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Sorry about that. Does this work? Thank you.

       

      Table 1
      Week ofAgentProduction Goal
      7/31/2022John5
      7/31/2022Bill4
      7/31/2022Suzy3
      7/31/2022Jill2
      8/7/2022John2
      8/7/2022Bill3
      8/7/2022Suzy3
      8/7/2022Jill5

       

      Table 2
      Production DateAgentProduct Serial #
      7/31/2022John12
      7/31/2022Bill32
      7/31/2022Suzy11
      8/1/2022John45
      8/2/2022Bill87
      8/3/2022John78
      8/3/2022Jill39
      8/3/2022Suzy64
      8/3/2022Bill99
      8/3/2022Bill22
      8/3/2022Suzy74
      8/4/2022John98
      8/4/2022Bill33
      8/7/2022Suzy19
      8/7/2022Jill26
      8/8/2022Bill93
      8/9/2022Bill10
      8/10/2022John13
      8/10/2022John69
      8/11/2022Jill73

       

      % of Goal Matrix (Desired Output)
      Agent7/31/20228/7/2022
      John60%100%
      Bill125%67%
      Suzy100%33%
      Jill50%40%
      • Anonymous's avatar
        Anonymous
        Not applicable

        Maybe this is better...

         

        Table 1

        Week ofAgentProduction Goal
        7/31/2022John5
        7/31/2022Bill4
        7/31/2022Suzy3
        7/31/2022Jill2
        8/7/2022John2
        8/7/2022Bill3
        8/7/2022Suzy3
        8/7/2022Jill5

         

        Table 2

        Production DateAgentProduct Serial #
        7/31/2022John12
        7/31/2022Bill32
        7/31/2022Suzy11
        8/1/2022John45
        8/2/2022Bill87
        8/3/2022John78
        8/3/2022Jill39
        8/3/2022Suzy64
        8/3/2022Bill99
        8/3/2022Bill22
        8/3/2022Suzy74
        8/4/2022John98
        8/4/2022Bill33
        8/7/2022Suzy19
        8/7/2022Jill26
        8/8/2022Bill93
        8/9/2022Bill10
        8/10/2022John13
        8/10/2022John69
        8/11/2022Jill73

         

        Desired Matrix

        Agent7/31/20228/7/2022
        John60%100%
        Bill125%67%
        Suzy100%33%
        Jill50%40%