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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors