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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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