Forum Discussion
To calculate Index on one column
- 6 years ago
Hi harshagraj ,
So in your table the index result should be (2+1+2)/(1+1+2) = 1.25 right?
If so, try like this measure:
Index = VAR _ra = CALCULATE ( SUM ( 'SA USER_RATING'[Final_User_Rating] ), ALLEXCEPT ( 'SA USER_RATING', 'SA USER_RATING'[USER_DN] ) ) VAR _ex = CALCULATE ( SUM ( 'SA USER_RATING'[MANAGER_EXPECTION] ), ALLEXCEPT ( 'SA USER_RATING', 'SA USER_RATING'[USER_DN] ) ) RETURN DIVIDE ( _ra, _ex, BLANK () )Best Regards,
Yingjie LiIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi ryan_mayu thanks for responding. Unfortunately it is not working,. If we just take the data seperately as above then it works..but in actual scenario it doesn't.
I am calculating Skill Index based on Final User Rating Column and Manager Expectation.
Final User Rating column is again a calculated column.
With the solution u provided i am getting 0.21 as Skill Index.
Hi harshagraj ,
So in your table the index result should be (2+1+2)/(1+1+2) = 1.25 right?
If so, try like this measure:
Index =
VAR _ra =
CALCULATE (
SUM ( 'SA USER_RATING'[Final_User_Rating] ),
ALLEXCEPT ( 'SA USER_RATING', 'SA USER_RATING'[USER_DN] )
)
VAR _ex =
CALCULATE (
SUM ( 'SA USER_RATING'[MANAGER_EXPECTION] ),
ALLEXCEPT ( 'SA USER_RATING', 'SA USER_RATING'[USER_DN] )
)
RETURN
DIVIDE ( _ra, _ex, BLANK () )
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.