Forum Discussion
Custom Sorting in PowerBI?
- 9 years ago
You can create a table like following one and create relationship with the original table.
Then create a calculated column in original table with following formula.
Column = RELATED( Table2[ID] )
At last, select the Type column and make it sorted by above created column.
Best Regards,
Herbert
I thought this would solve my problem, but for some reason when I do the 'sort by column' step it does not sort by that column. I made sure that no other columns had any kind of sort applied to them.
I created a new table based on an excel file.
Then created a link between the new table and the one I wanted to sort by category.
Then did the sort by column step. The screen flashed like it was doing something, but nothing happened.
The Table1 (T1) in my case is a query built from some other queries.
My Table2 (T2) is an excel file with two columns that I imported.
The linked column is labeled 'Reason Lost', with a 'Many to One' setting from T1 to T2, and cross filter set to 'both'
I would love some help with this, because the only other way I know to sort these correctly is to add an index in front of every item to get it to sort correctly, and that is visually distracting.