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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.