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
Anonymous
Not applicable

Change text data type to date data type

Hi,

I have fiscal Period column and I want to convert in to “Date” format.When  tried to change data type to “date” format It has created very weired number.

I do not have any DATE column in my dataset.

Thanks

community.jpg

1 ACCEPTED SOLUTION

In Power Query, change the column type to Text.

Add a column like this

Text.Combine({[Fiscal Period], "01"})

That just adds 01 to the end of the data.

Change the new column type to Date

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous 

 

What is the error you are getting?

 

You can try this after converting it to date:

select the format of your date from this dropdown:

 

Capture9.PNG

 

let me know if this works.

 

Thanks,

Tejaswi

Anonymous
Not applicable

Hi,

When i have chaged Data Type to Date,I am getting below weird numbers,

community12.jpg

In Power Query, change the column type to Text.

Add a column like this

Text.Combine({[Fiscal Period], "01"})

That just adds 01 to the end of the data.

Change the new column type to Date

Anonymous
Not applicable

Thank you so much ...

Anonymous
Not applicable

Hi,

One more information i want to convert it to YYYYMM.Thanks

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.