Forum Discussion
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:
But I want it to look like this (Screenshot is taken from Tableau):
used data colum looks like this and is classified as data-type "Date":
Thanks in advance!
4 Replies
- AnonymousNot applicable
Hi Anonymous ,
Go to format pane, change the type of x-axis to "Categorical".
Then change the format of the date column to what you want it to look like.
Best Regards,
Jay
- NotMyJobHelper III
Catagorial is not in the current format.
- AnonymousNot 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...
- amitchandakSuper 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