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.
Hi All,
I have a sales team, and some sales are being shared between 2 salespeople, for commission. Each has a % share.
The formula for Commission is :
=SUMIF($B$2:$B$7,B12,$G$2:$G$7)+SUMIF($D$2:$D$7,B12,$H$2:$H$7)
On Power BI Sales Person 1 is my Sales Person name which I put on my table to calculate the total commission for each.
A Sales Person name appears most of the time in the Salesperson 1 column but also on Sales Person 2 column for some deals.
I tried to find all lines a salesperson name appears (either on Salesperson name 1 or salesperson name 2) and used this formula
Solved! Go to Solution.
Hi, @YavuzDuran ;
You could create a measure as follows:
Measure =
var _a=CALCULATE(SUM([Sales Person 1Sales Person 1 Commission]),ALLEXCEPT('Table','Table'[Person1]))
var _b= CALCULATE(SUM([Sales Person 2 Commission]),FILTER(ALL('Table'),[Person 2]=MAX([Person1])))
return _a+_b
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @YavuzDuran ;
You could create a measure as follows:
Measure =
var _a=CALCULATE(SUM([Sales Person 1Sales Person 1 Commission]),ALLEXCEPT('Table','Table'[Person1]))
var _b= CALCULATE(SUM([Sales Person 2 Commission]),FILTER(ALL('Table'),[Person 2]=MAX([Person1])))
return _a+_b
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It helped me Thank you
Thank you,
Is there any way to show Luis only once in the table (same for Roman)
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 |
---|---|
107 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |