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
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

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

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.