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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Anonymous
Not applicable

Changing date-format on x-axis

Hello all,

in my chart, the X-axis acts as the time axis, I would like to format this differently.

I have already searched for entries in the forum, but have not found anything helpful yet.

 

Currently the chart looks like this:

mawoger_0-1651157253731.png

 

But I want it to look like this (Screenshot is taken from Tableau):

mawoger_1-1651157291827.png


used data colum looks like this and is classified as data-type "Date":

mawoger_2-1651157402129.png


Thanks in advance!

 

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

Go to format pane, change the type of x-axis to "Categorical".

vjaywmsft_0-1651657469240.png

Then change the format of the date column to what you want it to look like.

vjaywmsft_0-1652147430913.png

 

Best Regards,

Jay

Catagorial is not in the current format.

 

NotMyJob_0-1699037908838.png

 

Anonymous
Not applicable

thank you for your support!
However, by setting type to categorial, a taskbar appears for the X-axis - which is not wanted. 

It seems that PowerBi does not allow the formatting of the axes...

amitchandak
Super User
Super User

@Anonymous , You can create a custom column with sort order column.

 

But that will not give you continuous axis , as that will be text type column

 

Month Year = FORMAT([Date],"mm-yyyy")
Month Year sort = FORMAT([Date],"yyyymm")

 

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 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.