Forum Discussion
Sorting date based axes
- 10 years ago
Sorry, I am still not 100% up with the correct terminology in Power BI.
On the home ribbon/menu of Power Bi Desktop, on the left hand side, click on the middle icon (Data view - not table view- sorry).
Select your table
select the Name column you want to resort in a different order
Click on the modelling ribbon/menu
Click "sort by column", and then select the id column
Go back to your report (top icon, report view on the left hand side).
If you have a sort order in mind, load that up with your dimension data. Then in the table view, select "sort by column" to sort the Alpha column by the numeric column
- JeroenN10 years agoAdvocate I
Hello Matt
I can't get it to work in the right way.
I've got a very simple table with three columns: CountrId, CountryName and Score. The column CountryId is the column I want to sort the histogram by, but Power Bi sorts the axes in het alphabetic order.
What do you mean by 'table view'?
- MattAllington10 years agoCommunity Champion
Sorry, I am still not 100% up with the correct terminology in Power BI.
On the home ribbon/menu of Power Bi Desktop, on the left hand side, click on the middle icon (Data view - not table view- sorry).
Select your table
select the Name column you want to resort in a different order
Click on the modelling ribbon/menu
Click "sort by column", and then select the id column
Go back to your report (top icon, report view on the left hand side).
- JeroenN10 years agoAdvocate I
The data in the tabel are already sorted the right way - that has no effect on the visual.
I also looked at: https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-sort-by-column/ . In my histogram the button 'Sort by Column' cannot be clicked.