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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
zenisekd
Super User
Super User

Commission Report

Hi, I am trying to build a commission report and I am trying to figure out, how to approach this with DAX. Could somebody help please? Here is my sample file: https://drive.google.com/file/d/1dwe8FduE6WPKyN7_oerXBxSLiCJFc6zK/view?usp=drive_link

Commissions are defined by the total sales of all saleman. Crucial are product categories assigned to the roles, which are evaluated. So if a salesman is assigned to gropu A (Salesman A), they received commisions based on total sales of all saleman, from products in B and C category.
 zenisekd_2-1706262563542.png

zenisekd_4-1706262849859.png

 

zenisekd_3-1706262838110.png

zenisekd_5-1706263016425.png

zenisekd_6-1706263239914.png


Which in the example is Car total sales is 41, thus commission of 4 + Bus total sales 0, thus commission 0. Thus total commission 4. 

My request aims to help me calculate measures, which I can use to create columns for visuals ( added in paint in pictures bellow). Basically, I need to add columns, which if the salesman is selected will based on his role show the real total sale and show, which commission is a salesman owed.  If no salesman is selected, it will show for each category, where is the business and commissioin standing in general. Also in the down left corner is a table, which will show commissions values for the categories...  Pictures bellow should demonstrate it.

zenisekd_0-1706262363354.png

zenisekd_1-1706262538262.png
Thank you for your help. 

 

 

2 REPLIES 2
lbendlin
Super User
Super User

Here's how I would restructure the data model

I would also include a Products table and make sure the Product key is consistent.

lbendlin_2-1706568407812.png

 

This will make it much easier to compute the commissions. Do you want to calculate them by sales role, by sales rep , or in some other way?

 

Anonymous
Not applicable

Hi @zenisekd ,

You have a many-to-many relationship between the two tables, and the values between them will affect the commission calculation, I just tried it and found that there will always be multiple values that cannot correspond to each other.

Best Regards,

Xianda Tang

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.