Custom sorting in PowerBI chart

前端 未结 2 1096
孤城傲影
孤城傲影 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.

提交回复
热议问题