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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Aucesar
Helper III
Helper III

Prize/Comission calculation based on multiple criteria

Hi Community,

 

Need to calculate commision/prize based on failure rate;

 

Data to example:

 

- TotalBrandValue (full month for example) - Fixed value I can use it fixed or from table/column, no problem.

ProductionModelPrizeValueValue
Apple$400
Nokia$200
Motorola$100


-PrizeperDay (Measure already have it =PrizeValue / ProductionDaysMonth

ProductionDaysMonthPrizePerDay
10$40
 $20
 $10


-FailureRange per brand

FailureTaxRange
AppleBetween 0% and 1% Full Prize, between 1,1% and 2% Half Prize, over 2% Nothing
Nokia Below 1% Full prize, over nothing
MotorolaBetween 0% and 1% Full Prize, between 1,1% and 2% Half Prize, over 2% Nothing

 

- MonthlyData

WorkerProductionModelMonthlyAverageFailureTax
LoisApple0,90%
LoisNokia1,50%
ReggieNokia2,00%
DannieMotorola1,00%
ClaraApple1,30%
ShawnNokia0,60%
RuebenNokia3,00%
ArronMotorola4,00%
ErikaNokia2,00%
LorenApple1,00%
JoelApple0,20%


- Lois detailed Data

DayWorkerFailureRateModelWorked
1Lois0Apple
2Lois0,6Nokia
3Lois0,1Motorola
4Lois2,5Apple
5Lois1,5Apple
6Lois0,1Nokia
7Lois0Motorola
8Lois (Blank / Missed day)
9Lois0,1Apple
10Lois3,6Nokia

 

Desire results
1st Step/Measure Check Monthly avegare is in the values for each brand, in this example Lois will receive prize for Apple, but not for Nokia.
2nd Step/Measure Check each day Lois worked for Apple brand and if it´s on prize range, in this example days 1, 4, 5 and 9 , but:

Day1 0% = Full prize (1.0)
Day4 2.5% = Nothing (0.0)
Day5 1.5% = HalfPrize (0.5)
Day9  0.1% = Full prize (1.0)

ApplePrize = 2.5 * PrizePerDayApple ($40) = $100 (Desire Result)

Thanks in advance for any help.


0 REPLIES 0

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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