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
py1029
Frequent Visitor

Calculate the achievement

Hi,

 

I have a problem when calculating the achievement. There are 3 benchmarks to measure the performance of an employee which are threshold, target and excellence. I want to use the "Target" as the only benchmarks when calculating the achievement.
For case 1, the "Excellence" value is greater than the "Threshold" value, I can directly use [Actual]/[Target] = Achievement.

For case 2, the "Excellence" value is smaller than the "Threshold" value, if use [Actual]/[Target] directly, will give me a wrong info which the Achievement will be only 70% instead of 130%. May refer to the sample below:

py1029_2-1637650909718.png

Does anyone can advise on the calculation of achievement for Case 2?

 

Thanks!

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

Hi @py1029,

You can try If function to show different results in Case1 and Case2.

For reference: IF

Achievement = 
VAR _CASE1 =
    DIVIDE ( 'Table'[Actual], 'Table'[Target] )
VAR _CASE2 =
    DIVIDE (
        'Table'[Excellence] - 'Table'[Actual] + 'Table'[Threshold],
        'Table'[Target]
    )
RETURN
    IF ( 'Table'[Excellence] > 'Table'[Threshold], _CASE1, _CASE2 )

Result:

1.png


Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @py1029,

You can try If function to show different results in Case1 and Case2.

For reference: IF

Achievement = 
VAR _CASE1 =
    DIVIDE ( 'Table'[Actual], 'Table'[Target] )
VAR _CASE2 =
    DIVIDE (
        'Table'[Excellence] - 'Table'[Actual] + 'Table'[Threshold],
        'Table'[Target]
    )
RETURN
    IF ( 'Table'[Excellence] > 'Table'[Threshold], _CASE1, _CASE2 )

Result:

1.png


Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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.