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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
felix-chong
New Member

Text to Date

Hi there

 

I am new to BI and have the below format of table in Data.

 

SalesFYFM
5002021May
6002021Jun

skipped 50000 rows

 

System doesn't read it as date and i am struggled to compare. Could anyone advise please?

 

Thanks

F

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @felix-chong 

 

You can use DAX or M, here is a column in DAX

Vera_33_0-1616654035447.png

 

Date = DATEVALUE('Table'[FY]&"/"&'Table'[FM]&"/"&"1")

And one in M

Vera_33_0-1616654362818.png

Date.From( "1."&[FM] &"."&Text.From([FY]))

 

View solution in original post

Hi Vera_33

Thanks for the suggestions. 

I tired and the following errors come up.How could i fix it please?

 

felix-chong_0-1616654509828.pngfelix-chong_1-1616654539847.png

Thanks

F

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @felix-chong 

 

You can use DAX or M, here is a column in DAX

Vera_33_0-1616654035447.png

 

Date = DATEVALUE('Table'[FY]&"/"&'Table'[FM]&"/"&"1")

And one in M

Vera_33_0-1616654362818.png

Date.From( "1."&[FM] &"."&Text.From([FY]))

 

Hi Vera_33

Thanks for the suggestions. 

I tired and the following errors come up.How could i fix it please?

 

felix-chong_0-1616654509828.pngfelix-chong_1-1616654539847.png

Thanks

F

Anonymous
Not applicable

Hi @felix-chong 

 

You need to change Table to your real table name...

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.