Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
EBurkett
Frequent Visitor

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    
2 ACCEPTED SOLUTIONS

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%

View solution in original post

dont worry see attached.

 

you need to model your data differently look at how i have extracted the agent and date.

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

6 REPLIES 6
vanessafvg
Super User
Super User

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





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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%

i am a bit confused as to how you working out your % please also supply the rule.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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%

dont worry see attached.

 

you need to model your data differently look at how i have extracted the agent and date.

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




That worked perfectly! Thank you so much!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.