Custom sorting in PowerBI chart

前端 未结 2 1022
孤城傲影
孤城傲影 2021-02-15 15:50

Recently I came across one issue in which I need to show the column order as per my defined way in PowerBi report. Thing is, PowerBI sorts the columns in either Ascending(A->Z)

相关标签:
2条回答
  • 2021-02-15 16:13

    Add a column to your source data and populate it with values for the desired sort order. Then select the column you want to custom sort and click Modeling > Sort by Column. Select the new column as the SortBy column for the existing column, like in the screenshot: The SortCategory column is used as the sort order for the Category column.

    Now create a chart and the categories on the axis will be sorted according to the values of the SortCategory column.

    0 讨论(0)
  • 2021-02-15 16:16

    We can able to sort column one depends on another column

    My input table

    Sorting option config: Select column which you want to sort and select sort button, select based on which column we need to sort

    After sorting the table

    0 讨论(0)
提交回复
热议问题