Forum Discussion
Reorder columns for Matrix visualization (with sort order data provided from the same table)
- 5 years ago
Please see this page for how to do this using the Sort By Column feature in Power BI.
Sort by column in Power BI Desktop - Power BI | Microsoft Docs
Pat
- 5 years ago
Hi JustinDoh1 ,
Select the [PayerNameDefined] column, use 'Sort by column' feature in Columns tools and sort the column by the [ReportColumnOrder] column, you will get the result.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - 5 years ago
v-yingjl Thank you. I was thinking in a harder way. When I searched thru Google, there were so many other solutions related to similar cases, so I thought I have to solve in Power Query (M language). Also, there was some error on SQL side, so I had to fix it.
For Matrix I could only get it to work if I created a new column in my data table. I could not create a Measure to define the new sorting column.