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
rosscortb
Post Patron
Post Patron

Date Formatting Help

Hello,

 

I am trying to change the date format,  I want the start date to showing in a Table Chart as numbers not text, i.e YYYY - MM, so 2019 -10 but when I was adding a column in the query the year works but the month goes to single digits meaning Jan displays as 1 not 01, any ideas, thanks Ross

 

screenshot.PNG

 

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi  @rosscortb ,

 

Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

View solution in original post

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi  @rosscortb ,

 

Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

rosscortb
Post Patron
Post Patron

Or if I can get just get the Start_Date column to show as YYYY/MM then that would work

Hi @rosscortb ,

 

Enter into Query Editor, click on Add Custom Column and then put in the following syntax:

 

Text.PadStart(Text.From([Start_date-Copy.1]),2,"0")

 

3.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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.