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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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

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

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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