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


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.