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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

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
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%

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!




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%

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!




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%

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!




Anonymous
Not applicable

That worked perfectly! Thank you so much!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.