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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.