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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Demographer
New Member

X axis labels for combo stacked columns+line chart

Hi,

I'm new to Power BI desktop. I want to plot a very simple chart showing the population (in columns) and proportion (line) from 2016 to 2061 (data are by 5-year interval).

 

When I set the X axis as continuous, labels are from 2020 to 2060. I tried to set the minimum to 2016 and maximum to 2061, but it doesn't change anything. See screenshot below.

Continuous.JPG

 

When I set the axis as categorial, labels are fine, but it orders data from the highest to the lowest.

Category.JPG

 

How can I have a chart ordered properly by year and showing the good labels, either 2016-2021,...,2061. I see other posts on this, but no solution works for me.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Demographer , Axis type categorical and sort ascending from three dots (...)

Axis_type.png

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Demographer , Axis type categorical and sort ascending from three dots (...)

Axis_type.png

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
vanessafvg
Super User
Super User

its not showing 2061 because its ony showing it in 5 year intervals if you want to show all you need to change the way you are doing the intervals. If you provide some dummy data in text format that would be useful to show you.




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.