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

How to change date display format of Month/Year on Chart X-Axis

I have chart that I want to change the Y-Axis format that is currently reading as "2019 - January" to "01/19" How would I do that? It's coming from my date table.

 

MM-YY1.png

2 REPLIES 2
amitchandak
Super User
Super User

In your date table you can create a new column

 

Month year = format([Date],"MM-YY")

But this will not sort correctly

So, create sort Column

Month year sort= format([Date],"YYMM") and mark this as sort column of the first one an then use the first one.

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

I am hosting a webinar on 25th April on Power BI, Check Details - https://www.linkedin.com/posts/amitchandak78_webinar-tech-techforgood-activity-6658266754378231808-y...

 

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
th3h0bb5
Resolver II
Resolver II

Honestly your best bet is to use a proper Date Table that has a MonthNum column and something like ShortYear as well.

 

If you're unable to do that, you can create three calculated columns to get a very close approximation of what you want.

MonthNum = MONTH( 'Table'[Date])

YearShort = RIGHT(YEAR(Table[Date]),2)

Month Year = Sales[Month] & "/" & Sales[YearShort]
 
example.png

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!

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.