Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
wadden0032
Frequent Visitor

How to reverse year order in

I have a stacked bar chart that appears as so:

 

year-order_stacked-chart.jpg

Quite simply, I want to reverse the order of the years so that 2011 is on top and 2019 at the bottom. Seems it would be an easy thing, but as a rookie, I'm discovering nothing in Power BI is ever easy. 😕

 

In my data table the "Years" column is formatted as a "date" data type, and I've tried switching from acending to decending order, and back again, but it seems to have no affect.

 

So how can I make this change?

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@wadden0032 

Change the Y-axis type to "categorical" in the formatting pane and then sort ascending by year:bar chart order.png

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

3 REPLIES 3
PaulDBrown
Community Champion
Community Champion

@wadden0032 

Change the Y-axis type to "categorical" in the formatting pane and then sort ascending by year:bar chart order.png

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Thank you, Paul! You are officially my Hero of the Day! 😁

@wadden0032 

Well thank you! 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.