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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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