I am trying to rank the values in a calculated field called PMPM in powerpivot. The formula I'm using is
RANKX(ALLSELECTED(Cost),[PMPM],,TRUE(),Dense)
but the results are wrong. Sample data here
The first column PMPM
contains the fields I want to rank, PMPM2
contains the correct ranking that I put in manually for comparison. PMPMRank
is the calculated field for which I use the formula above, but I don't get the correct results.
I'd appreciate any help! Thanks!