Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Power Bi sorts the X axes in a histogram automatically in alphabetic order. Is there a way to change this? I tried to add a numeric column to the axes, but this doesn't seem to work.
Anybody have a suggestion?
Thanks!
?
Solved! Go to Solution.
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).
Hi.
(1) First you need to sort your "RegionID" (ascending).
(2) Then you need to sort Counties by this ID. Arrow shows that the first step was succesfully done.
(3) Then you are ready to create your charts. I added name for "region" as a new column with simple IF() statement to visualize the sorting better.
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
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'?
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).
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.
@JeroenN wrote:The data in the tabel are already sorted the right way - that has no effect on the visual.
Are you saying you have followed my instructions and it didn't work?
Now it works!
I missed one part, because of the fact that my menu's are in Dutch.
Thanks Matt.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |