Forum Discussion
Anonymous
7 years agoNot applicable
Sort by is not working
I have a matrix and I want the Row item (called Product) to be sorted in a specific order so I created a column in Query Editor called 'Order' and i've used an IF statement to define the order as 01,...
themistoklis
7 years agoCommunity Champion
Anonymous
Can you share the workbook with us so as to have a look at it?
Anonymous
7 years agoNot applicable
I've attached some screenshots of the relevant areas, I can't attach the worksheet due to the data it contains.
In Query Editor, the Order column is 'whole number'The M Query formula used to create the 'Order' columnThe Row item is sorted by 'Order'In the table, the Order column still shows as Whole Number and contains values 1 to 26
- v-danhe-msft7 years agoMicrosoft Employee
Hi Anonymous,
Based on my research, you could refer to below link to custom sort your column:
https://community.powerbi.com/t5/Desktop/Custom-Sorting-in-PowerBI/td-p/126534
Regards,
Daniel He