Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.