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

Is there a way to create custom date formats?

dominicpowerbi_0-1597149367953.png

I'm looking for a way to create a custom date format as DD/MMM/YYYY

but right now Power BI only supports DD/MMM/YY.

 

1 ACCEPTED SOLUTION
Anand24
Super User
Super User

Hi @Anonymous ,

 

You can achieve the DD/MMM/YYYY format by creating a new column with below DAX:

Date_Column = FORMAT(Tablename[date_field],"dd/mmm/yyyy")
 
Refer below image:
dateformat.PNG
 

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!

View solution in original post

6 REPLIES 6
Stives93
Frequent Visitor

You can now apply custom date formats within Model View, without having to convert to text in query editor or via a measure.

 

PBI Custom Date Format.jpg

 

mahoneypat
Employee
Employee

If you need to use this in the query editor (e.g., you have additional data transformation to do with it), you can use Date.ToText().  For example, a custom column with this formula

 

= Date.ToText([DateColumn], "dd/MMM/yyyy")

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anand24
Super User
Super User

Hi @Anonymous ,

 

You can achieve the DD/MMM/YYYY format by creating a new column with below DAX:

Date_Column = FORMAT(Tablename[date_field],"dd/mmm/yyyy")
 
Refer below image:
dateformat.PNG
 

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!

This works but it converts the date to text.
I want to keep the field as date wth the format "mmm/yy"
Once it is formatted as mmm/yy as a new column I  am forced to convert to date and then am stuck with the default formats in Power BI

Greg_Deckler
Super User
Super User

@Anonymous - There are custom date formats in the FORMAT function, 

https://docs.microsoft.com/en-us/dax/custom-date-and-time-formats-for-the-format-function

 

Also, you can do custom formatting using Custom Format Strings:

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-custom-format-strings

 

This is how Chelsie Eiden's Duration works: https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389


@ 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...
amitchandak
Super User
Super User

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.

Top Solution Authors
Top Kudoed Authors