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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Commission Based Sales Calculations for Different Categories

I am trying to calculate the sales amount for different rep's and different subcategories within those reps. The issue I am having is there are different tiers within each subcategory for a min/max  (upper/lower tier amount) that have a unique commission amount. I currently have the sales table with all of the sale amounts and their respective rep and subcategory. I then have another table with the CommsBuckets (Rep, subcategory, upper amt, lower amt, tier (1,2,3, etc), and the commission. How do I calculate the sales amount for each tier within each subcategory and carryover any sale amount exceeding the upper bound into the next tier?

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Create meausres like these

 


Measure = sum(Table[sales amount])

 

Measure with bucket = sumx(filter( values(Table[sales rep]), [Measure] >= Min(subcategory[lower tier amount]) && [Measure] <= Max(subcategory[upper tier amount])), [Measure])

 

use the second measure with subcategory table

 

very similar to what I have done here

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1387187#M626


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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