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

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.

Reply
Ramees_123
Helper IV
Helper IV

Measure to calculate the consolidated incentive below 100

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.

 

Ramees_123_0-1630834866260.png

 

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

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))

 

12121212.png

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

View solution in original post

5 REPLIES 5
v-rongtiep-msft
Community Support
Community Support

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))

 

12121212.png

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

@v-rongtiep-msft It is excellent. Thanks a lot. Saved my day. !!!

lbendlin
Super User
Super User

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.