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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sn64
New Member

Sumx across multiple tables

Hello,

    I have 2 tables that i'm having trouble creating a correct calculation for commission with.  One table contains the month, year, client number and sales amount for product 1, 2 and 3.  The second table shows the client number, the sales entity number that receives commission for that client, and which percent of sales for product 1,2 and 3 that sales entity receives commission for.  As an example sales entity 1 receives commission for 1% of client # 1's product # 1 sales, and .5% of their product # 2 sales etc.  Any help would be greatly appreciated, happy to further explain if needed.

 

Thank you

 

 

3 REPLIES 3
sn64
New Member

Below are examples of the tables.  One shows the clients info, their total sales by month and how much they are paying in admin fee for their service.  The next table shows the commission rates for the sales team.  The sales team gets commission on a % of the total sales and/or a % of the total admin fee.

Customer Financials
Customer IDCustomer nameMonthTotal SalesTotal Admin fee
1122Toy shopNovember$1,000,000$5,000
1122Toy shopDecember$900,000$4,500
2233Shirt storeNovember$6,000,000$6,000
2233Shirt storeDecember$3,000,000$3,000
     
     
Commission Rates 
Customer IDSales employee IDTotal Sales %Admin Fee % 
11225001%10% 
     
22335000%20% 
     
22335101.50%5% 

 

 

I would like to be able to update the customer financials by adding each month to the data and be able to have the formula in place so I can filter a report by sales employee to see what their actual commission will be(Total Sales %*total sales, Total Admin Fee* Admin Fee% ) for a commission statement like below:

Sales IDCustomerMonthSales CommissionAdmin Fee Commission 
5001122November$10,000$500 
5001122December$9,000$450 
5002255November$0$1,200 
5002255December$0$600 
Total  $19,000$2,750$21,750

 

v-zhangti
Community Support
Community Support

Hi, @sn64 

 

Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures. I look forward to your response.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Below are examples of the tables.  One shows the clients info, their total sales by month and how much they are paying in admin fee for their service.  The next table shows the commission rates for the sales team.  The sales team gets commission on a % of the total sales and/or a % of the total admin fee.

Customer Financials
Customer IDCustomer nameMonthTotal SalesTotal Admin fee
1122Toy shopNovember$1,000,000$5,000
1122Toy shopDecember$900,000$4,500
2233Shirt storeNovember$6,000,000$6,000
2233Shirt storeDecember$3,000,000$3,000
     
     
Commission Rates 
Customer IDSales employee IDTotal Sales %Admin Fee % 
11225001%10% 
     
22335000%20% 
     
22335101.50%5% 

 

 

I would like to be able to update the customer financials by adding each month to the data and be able to have the formula in place so I can filter a report by sales employee to see what their actual commission will be(Total Sales %*total sales, Total Admin Fee* Admin Fee% ) for a commission statement like below:

Sales IDCustomerMonthSales CommissionAdmin Fee Commission 
5001122November$10,000$500 
5001122December$9,000$450 
5002255November$0$1,200 
5002255December$0$600 
Total  $19,000$2,750$21,750

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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