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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Karolina411
Helper V
Helper V

Getting Dates to Match w/o reloading SQL code

Hello
So both my YYYYMM are text so whey do they not align?  They are both text too. Should I create a new date table and link them????

I tried this but it fails: 

Karolina411_0-1683763538987.png

 

How can I get them to align?  Can a text column be turned into a date column at all? I ask as formatting my SQL will take a long time!

MY DATE TIME:

Karolina411_1-1683763737625.png

 

LINKING TO THIS TABLE:

Karolina411_2-1683763793551.png

 

 

1 ACCEPTED SOLUTION

I ended up grouping month and date then connecting it to the original date table after making a reference table and it worked like a charm!!  thank you for your reply

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Karolina411 , Try like

Date(left([Month Year],4), Right([Month Year],2),1)

 

I have checked in the past too, it does not work great with YYYYMMDD format. You can log an idea for that

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I ended up grouping month and date then connecting it to the original date table after making a reference table and it worked like a charm!!  thank you for your reply

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.