Forum Discussion

sande_ch's avatar
sande_ch
Icon for Helper I rankHelper I
5 months ago
Solved

Why does sorting by rankx-function and measures work in desktop but not in Power BI Service?

Hi there I use Power BI to create a report on accident statistics. Among other things, I use a bar chart to display the accident statistics by activity at the time of the accident. I use two activit...
  • Anonymous's avatar
    Anonymous
    4 months ago

    Hi sande_ch ,


    Thanks for the update and for checking it.

    In Power BI, measures such as those created using RANKX are evaluated based on the current filter context. Because of this behavior, their results can change depending on how the visual is filtered or interacted with.

     

    For sorting behavior, Power BI provides the Sort by column option, which allows a field to be sorted based on another column defined in the model. This enables a consistent sort order defined at the model level.

     

    If the issue persists, sharing a simplified version of the report or visual setup would help in understanding the exact scenario.


    Thank you.