Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi everyone.
I've created a very basic dataset to sort out expenses. The issue is, Power BI sorts the months correctly, but not by year. See image attached
How can I fix this? How can I get it to display Nov 2018, Dec 2018, etc.? In the correct order
Solved! Go to Solution.
Hey,
in a way it does, there are two options just create a yearmonth column that contains values that can be ordered, like so: 201811, 201812, 201901 or 2018-11, 2018-12, 2019-01
A second option is that you use nested columns on the x-axis.
To create a nested hierarchy, just add the columns like Year and Month to the x-axis of your chart:
Make sure the "Concatenate labels" property is set to off (Formatting pane --> X axis card):
Drill down all levels of the hierarchy in your chart:
Sort the x axis accordingly, please be aware that this might look different as your column names are different :-)):
A final move might be that you have to change the order sequence from descending to ascending or vice versa
Hopefully this is providing some ideas.
Regards,
Tom
Hey,
in a way it does, there are two options just create a yearmonth column that contains values that can be ordered, like so: 201811, 201812, 201901 or 2018-11, 2018-12, 2019-01
A second option is that you use nested columns on the x-axis.
To create a nested hierarchy, just add the columns like Year and Month to the x-axis of your chart:
Make sure the "Concatenate labels" property is set to off (Formatting pane --> X axis card):
Drill down all levels of the hierarchy in your chart:
Sort the x axis accordingly, please be aware that this might look different as your column names are different :-)):
A final move might be that you have to change the order sequence from descending to ascending or vice versa
Hopefully this is providing some ideas.
Regards,
Tom
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
113 | |
71 | |
65 | |
46 |