Forum Discussion
Sort by is not working
Anonymous
Make sure that the format of the field is of data type: Whole Number and not Text or anything else.
When you say you cant see the ordering... do you mean that you created a table object or chart and the ordering is not working?
Or you just want to see the ordering on the background data?
Also have you used the sort by column on Modelling tab?
Yep i've used whole number, and I created a matrix and the ordering is not working.
Yes I used the sort by column on the modelling tab.
When I applied the sort by, it did not affect the order in the matrix. It's like it's not recognising the Order column, but it's not erroring.
- themistoklis7 years agoCommunity Champion
Anonymous
Can you share the workbook with us so as to have a look at it?
- Anonymous7 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