Forum Discussion
Anonymous
7 years agoNot applicable
Ranking in a column
Hello All: I need help with a formula in a calculated column that would show rank of a manufacturer within a cost center. In the image above all lines in the column "Ranking" for manufacturer "ARM...
- 7 years ago
Hi Anonymous
Please check below formula.
Column = RANKX ( FILTER ( 'Table', 'Table'[COST_CENTER] = EARLIER ( 'Table'[COST_CENTER] ) ), CALCULATE ( SUM ( 'Table'[EXT COST] ), ALLEXCEPT ( 'Table', 'Table'[COST_CENTER], 'Table'[MANUFACTURER] ) ), , DESC, DENSE )Regards,
v-cherch-msft
Microsoft Employee
7 years agoHi Anonymous
Please check below formula.
Column =
RANKX (
FILTER ( 'Table', 'Table'[COST_CENTER] = EARLIER ( 'Table'[COST_CENTER] ) ),
CALCULATE (
SUM ( 'Table'[EXT COST] ),
ALLEXCEPT ( 'Table', 'Table'[COST_CENTER], 'Table'[MANUFACTURER] )
),
,
DESC,
DENSE
)
Regards,
Anonymous
7 years agoNot applicable
Great! This works.
Thank you very much.