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
Karolina411
Resolver II
Resolver II

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

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
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.