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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.