Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Solved! Go to Solution.
You may try using SUMX Function.
You may try using SUMX Function.
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 )
Hello,
I am trying to replicate the following into Power BI.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |