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

How to change to short date ?

I'm trying to change my dates in my graphs to a mmm yy format but it's not working. I've already changed the format in the modelling section but none of this is making a difference to the report

Model.pnggraph.png

 

1 ACCEPTED SOLUTION
fhill
Resident Rockstar
Resident Rockstar

Your date Heirarchy may be superseeding your custom formatting.  Do you have both Year & Month in your Axis date heirarchy? 

 

Since you don't appear to be using a Date Table, add a cutom column on your data table formatting the month as you want it displayed.  Use this as the Axis instead. 

 

Custom Date = FORMAT( Sales[Date], "mmm") & YEAR(Sales[Date])
*** This will require a 'sort by', but if you have Daily values (not just months) in your data, the sort will fail.
 
Either build a date table of just your Months (to Link to your sales) or consider using something that would sort automaticlaly.
Custom Date = YEAR(Sales[Date]) & " " & MONTH(Sales[Date])
 
 

 

fhill_0-1626456083704.png

 




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




View solution in original post

2 REPLIES 2
fhill
Resident Rockstar
Resident Rockstar

Your date Heirarchy may be superseeding your custom formatting.  Do you have both Year & Month in your Axis date heirarchy? 

 

Since you don't appear to be using a Date Table, add a cutom column on your data table formatting the month as you want it displayed.  Use this as the Axis instead. 

 

Custom Date = FORMAT( Sales[Date], "mmm") & YEAR(Sales[Date])
*** This will require a 'sort by', but if you have Daily values (not just months) in your data, the sort will fail.
 
Either build a date table of just your Months (to Link to your sales) or consider using something that would sort automaticlaly.
Custom Date = YEAR(Sales[Date]) & " " & MONTH(Sales[Date])
 
 

 

fhill_0-1626456083704.png

 




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Greg_Deckler
Super User
Super User

@Anonymous Hmm. You have a lot of dates in that table, triple check you are using the right one. I would try to remove and then re-add the field in the Axis field well. Then maybe save and reopen the PBIX. Also check that your axis is Categorical and not Continuous.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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.