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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Auto_queen
Helper I
Helper I

DAX Formula to Split a Month in Tiered Commission

I'm fairly new to Dax and I'm not sure this is possible, but I figured I would ask. 

 

This is for a Sales Commission. The GP total factors into the tiered structure, but they only get commission on one type of GP (GP for Commission). 
These are the tiers: 

Running Total = 

  • $0 - $100,000 gets 10%
  • 100,001 - 200,000 gets 15%
  • 200,001 - 310,000 gets 20%
  • and 310,001 and above gets 25%

This is the formula I wrote for the commission amount and it seems to be working well: 

Commission Amount = SWITCH(TRUE,
[Running Total] <= 100000, [GP for Commission] * .10,
[Running Total]  > 10000 && [Running Total] <= 200000, [GP for Commission] * .15,
[Running Total]  > 200000 && [Running Total] <= 310000, [GP for Commission] * .20,
[Running Total]  > 310000, [GP for Commission] * .25)
 
The issue is that when a person reaches the next tier for the first time, instead of multiplying the full month at the next tier, they split the month. So, for example, in the chart below, in June this person reached the next tier because their running total is $108,085.77, so instead of the GP for Commission amount being multiplied by .15, they would split the $10,802 in half and have 5,401 multiplied by .10 and 5,401 multiplied by .15. Next month if the person is in the same tier level, the full amount would be multiplied at .15.  Is there a way to do this in Dax? 

 image.png

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file. All measures are in the attached file.

I hope the below can provide some ideas on how to create a solution for your dataset.

 

Untitled.png



Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file. All measures are in the attached file.

I hope the below can provide some ideas on how to create a solution for your dataset.

 

Untitled.png



Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



Worked perfectly. Thank you! Now that I see the formula you wrote it makes sense to me. I appreciate your help! 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors