Forum Discussion
py1029
4 years agoFrequent 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 t...
- Anonymous4 years ago
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:
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
4 years agoNot applicable
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:
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.