Forum Discussion
Rank is creating duplicate values
- 8 years ago
SOLUTION: Create two calculated columns with these names and formulas:
(the table name is Creditors)
SupplierAmount =
VAR thisCreditor = Creditors[Supplier]
RETURN CALCULATE(
SUM( Creditors[Nett Amount Due] )
, ALL(Creditors)
, Creditors[Supplier] = thisCreditor
)
SupplierRank =
RANKX(
Creditors
, Creditors[SupplierAmount]
,
, DESC
, Dense
)The version of Excel I'm using is 2016.
SOLUTION: Create two calculated columns with these names and formulas:
(the table name is Creditors)
SupplierAmount =
VAR thisCreditor = Creditors[Supplier]
RETURN CALCULATE(
SUM( Creditors[Nett Amount Due] )
, ALL(Creditors)
, Creditors[Supplier] = thisCreditor
)
SupplierRank =
RANKX(
Creditors
, Creditors[SupplierAmount]
,
, DESC
, Dense
)
The version of Excel I'm using is 2016.
Thanks, this works if I use average of SupplierRank to limit my chart to the top 10 suppliers based on Nett Amount Due