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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
mimingiang
Frequent Visitor

Average per row for each resource and sum for the total

Hi I have the first table 

 

Order numberSales person
1A
1B
2C
3D


I have another table where I can calculate the sum value of the order. I would like to show on matrix levels. 

Order numberAmount
1200
2300
3400


I want to get this matrix the amount on sales order amount = sum(amount)/distincount of sales person. 

Screenshot 2024-08-24 at 14.34.08.png

 

1 ACCEPTED SOLUTION
tharunkumarRTK
Super User
Super User

@mimingiang 

I believe this is your expected result 

Screenshot 2024-08-24 at 7.00.18 PM.png

 

Please find the PBIX file 

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

 

View solution in original post

4 REPLIES 4
mimingiang
Frequent Visitor

Thank you @tharunkumarRTK @tharunkumarRTK. Just want to add some more details for the calculation

I have another table where I can calculate the sum value of the order. I would like to show on matrix levels. 

Order numberAmount
1200
2300
1400

I have many to many relationship between Orders and Sales Persons

Order numberSales person
1A
1B
2B
3D

I want the end result look like this 

Screenshot 2024-08-24 at 21.08.47.png

I have many to many relationship between Orders and Sales Persons

Don't do that. Use a proper data model.

tharunkumarRTK
Super User
Super User

@mimingiang 

I believe this is your expected result 

Screenshot 2024-08-24 at 7.00.18 PM.png

 

Please find the PBIX file 

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

 

lbendlin
Super User
Super User

You may want to add a Sales Person Dimension table to your data model.

 

lbendlin_0-1724507347541.png

 

 

Then you can use your preferred DAX to calculate the mapping.

 

lbendlin_1-1724507403817.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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