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
jlam
Frequent Visitor

Commission Report

Hello,

 

I am trying to build a commission report in Power BI. In my Excel report right now, I am using a SUMIF formula to calculate the Gross Sales based on the Margin % earned on the sale. So for example:

 

If margin earned is between 0% and 20%:

=SUMIFS(TotalPriceOfSale, Margin%>=0, Margin %<=20)


The Gross Sales is then multiplied by a set Commission % to calculate the amount of commission earned in dollar value.

 

Any suggestions as to how to calculate the Gross Sales? And how to avoid circular depenency when trying to calculate the commission?

 

Thank you,

Jessica

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@jlam,

 

You may try using SUMX Function.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@jlam,

 

You may try using SUMX Function.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AlB
Community Champion
Community Champion

Hi @jlam

It'd be easier of you showed a sample of your data model. 

I think you could use a measure:

 

Measure =
YourSetCommissionPercentage * 
    CALCULATE (
        SUM ( Table1[TotalPriceOfSale] ),
        Table1[Margin%] >= 0,
        Table1[Margin%] <= 20
    )

 

jlam
Frequent Visitor

Hello,

 

I am trying to replicate the following into Power BI. 

 

1.PNG

 

 

If I use your suggested measure to calculate each Margin Range, would I create a column to calculate the Part Sales using an IF formula?

 

Thank you,

Jessica

 

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.