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
xiumi_hou
Post Partisan
Post Partisan

How to create a new column and display the date format

Dear all,

 

I have a date column, it show like : September 10, 2019

                                                        March 20, 2018

I want to create a new column, to use the key word to show:  Sep 10,  2019

                                                                                                  Mar 20, 2018

 

Thank you 

1 ACCEPTED SOLUTION

Hi @xiumi_hou ,

 

We can create a calculated column using following formula to meet your requirement:

 

KeyDate = FORMAT([Date],"MMM dd,YYYY")

 

14.PNG

 

But it will be the text format, if you want it as date type but show as  MMM dd,YYYY, we can create another calculated colmun then set it as this format. Or just changet the origin column using following solution.

 

DateAnotherFormat = [Date]

 

Enter the Model View, select the column, set the format as custom, use the following code

 

mmm dd\, yyyy

 

13.PNG15.PNG

 


BTW, pbix as attached.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
SriKandimalla
Helper I
Helper I

Hello @xiumi_hou ,

 

Review this post, you may apply this for your case

https://community.powerbi.com/t5/Desktop/Date-Format/td-p/120348

 

Good luck!

@SriKandimalla Sorry I can not quite understand, can you help me work this out? Thanks

Hi @xiumi_hou ,

 

We can create a calculated column using following formula to meet your requirement:

 

KeyDate = FORMAT([Date],"MMM dd,YYYY")

 

14.PNG

 

But it will be the text format, if you want it as date type but show as  MMM dd,YYYY, we can create another calculated colmun then set it as this format. Or just changet the origin column using following solution.

 

DateAnotherFormat = [Date]

 

Enter the Model View, select the column, set the format as custom, use the following code

 

mmm dd\, yyyy

 

13.PNG15.PNG

 


BTW, pbix as attached.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
xiumi_hou
Post Partisan
Post Partisan

UP

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.