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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
GAPER
Post Patron
Post Patron

How to alter the axis into Year only

GAPER_0-1697438524884.png

 

 

I want the xaxis to be showing year only (not aggregrating yearly but just showing the year but not the exact dates)

 

I wanna alter the X-axis like the below

 

GAPER_0-1697442503569.png

 

How can i do that? Thanks

13 REPLIES 13
Idrissshatila
Super User
Super User

Hello @GAPER ,

 

create a year column based on this date as following:

 

year = year('TableName' [Date])

 

then use this column in x-axis

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Uzi2019
Super User
Super User

Hi @GAPER 
Please select the continous option under X axis

Uzi2019_0-1697439296324.png


If my post helps then give kudos and accept my solution!
Thanks.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

GAPER_0-1697439461743.png

 

 

I don't even have this option....Thanks

ShinyFelicita
Frequent Visitor

Hi,

You can add columns from the year(add date, month, day and quarter) so you can able to filter based on the reqiurement.

 

Regards,

Shiny

No... i just mean i don't want it to show the whole date. no even to filter anything.

 

I just need it to show marks of 2021, 2022, 2023...

Hi @GAPER 

Select your date arrow > date hierrachy
 

Uzi2019_0-1697440885937.png

You will get this option of year> qtr> month >date

Uzi2019_1-1697440988152.png


Then cancel qtr, month, date 

If my post helps you give kudos and accept as a solution!
Thanks

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi @GAPER 

Uzi2019_0-1697443453084.png

 

I have also taken scatter chart. I can see the option of date hierarchy.


Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Okay. Then have year alone for your visual without days and month.(Which you have mentioned in the image)

where is it though?

Cant get you, can you share your data for this visual alone?

I mean the data format for that visual..

 

GAPER_0-1697441979138.png

 

 

the X axis doesn't have any options to alter it. 

Im asking to check your data for the year, if it is year, day and month as a single one or in a separate column one.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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