cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Eternally333
Regular Visitor

How to show each continuous consecutive year on PBI X axis

Hi

How can I get every single year to show on X axis? The date column in the data in a continuous list of just years (no dates/months) i.e. 1960, 1961, 1962, 1963, 1964, 1965, 1966, 1967. with no gaps. All the other column data have no gaps so data is complete. However the line chart x axis visual only shows

the first year 1960,

2-year intervals so 1960, 1962, 1964, 1966

and it doesn't show the last year 1967

 

The x axis is on 'Continuous'. If changed to 'Categorical' it does show every single year but in a random order that doesn't make sense. How to show each year, the right order please? Thanks

1 ACCEPTED SOLUTION

Couldn't find this AXIS menu within Visualisations pane - now saw it now top right ... of chart. 

Yes axis was indeed on one of the MEASUREs. 

Sorting then put YEAR Y axis in wrong order (latest YEAR first) so just also needed to SORT ASCENDING and it works. Thanks!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Eternally333 , Make sure Axis Type Categorical and the sort is on Year/Axis. Sort may be on measure

Couldn't find this AXIS menu within Visualisations pane - now saw it now top right ... of chart. 

Yes axis was indeed on one of the MEASUREs. 

Sorting then put YEAR Y axis in wrong order (latest YEAR first) so just also needed to SORT ASCENDING and it works. Thanks!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors