Forum Discussion

ACraig08's avatar
ACraig08
Icon for Helper III rankHelper III
2 months ago
Solved

Sort Order is messing with measure calculations

Ok, so I have a column that I created in Power Query, Request Notice Bins.   Request Notice Bins creates the following values: < 1 Month, 1 - 3 Months, 3 - 6 Months, 6 - 12 Months, 12 - 18 Months, ...
  • johnt75's avatar
    2 months ago

    You need to remove the sort order column when performing the ranking, as well as the bin name.

    Try

    Request notice % Rank =
    RANKX (
        ALL (
            'Letting Change'[Request Notice Bins],
            'Letting Change'[Sort Order - Request Notice Bins]
        ),
        CALCULATE ( [Request Notice %] ),
        ,
        DESC,
        DENSE
    )