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, Please find the below table data I have for incentives.
The company does not payout any incentive if the achieved value is below 100. In that case they will add it to the next month incentive until 100 is being achieved. Once 100 is achieved, the payout will be done to the employee.
In the below table the incentive achieved by Person1 in Jan 2021 is just 30, so the payout is 0. But in next month the achieved value is 70 and so the payout is 100 which is the sum of 30 + 70. In March 2021, the achieved 130 and there is not pending amount from previous month too. so the payout will be 130 only.
How to create this incentive payout measure field ? I need only measure field since the data is connected live to cube and calculated column is not possible.
Solved! Go to Solution.
You could refer this measure.
Measure =
var Cumulative = CALCULATE(SUM('Table'[Incentive Achieved ]),FILTER(ALLSELECTED('Table'),'Table'[resource ID] =SELECTEDVALUE('Table'[resource ID])&& 'Table'[Month]<=MAX('Table'[Month])))
var last = CALCULATE(SUM('Table'[Incentive Achieved ]),FILTER(ALLSELECTED('Table'),'Table'[resource ID]=SELECTEDVALUE('Table'[resource ID]) && 'Table'[Month]<=EDATE(MAX('Table'[Month]),-1)))+0
return IF([Cumulative value]>=100&&[last values]<100,[Cumulative value],IF([Cumulative value]>=100&&SELECTEDVALUE('Table'[Incentive Achieved ])>=100,SELECTEDVALUE('Table'[Incentive Achieved ]),0))
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards
Community Support Team _ Polly
You could refer this measure.
Measure =
var Cumulative = CALCULATE(SUM('Table'[Incentive Achieved ]),FILTER(ALLSELECTED('Table'),'Table'[resource ID] =SELECTEDVALUE('Table'[resource ID])&& 'Table'[Month]<=MAX('Table'[Month])))
var last = CALCULATE(SUM('Table'[Incentive Achieved ]),FILTER(ALLSELECTED('Table'),'Table'[resource ID]=SELECTEDVALUE('Table'[resource ID]) && 'Table'[Month]<=EDATE(MAX('Table'[Month]),-1)))+0
return IF([Cumulative value]>=100&&[last values]<100,[Cumulative value],IF([Cumulative value]>=100&&SELECTEDVALUE('Table'[Incentive Achieved ])>=100,SELECTEDVALUE('Table'[Incentive Achieved ]),0))
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards
Community Support Team _ Polly
When does the clock start? at the beginning of the year? After they reached 100 points will they get a payout in each of the following months?
@lbendlin After reaching 100 points they will get that payout in upcoming month and then again the points go to 0. Clock starts by the beginning of the year. But the December pending payout will be taken to January.
That seems to be inconsistent wit your sample data. Please post a larger sample size, including year cutover for individual resoures.
Please keep in mind that Power BI is a reporting tool. It is not a business process management tool.
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 |
---|---|
117 | |
104 | |
77 | |
73 | |
52 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |