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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
v-jayw-msft
Community Support
Community Support

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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