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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
sunjin122
Helper I
Helper I

Changing Data Type problem

I load the data from SQL Sever by using Direct Query. The data type of Date column is Text, so I am trying to change the Text format to Date format, by going to Modeling tab and select the data column from the Fields pane, since this cannot be done in Edit Query due to the Direct Query mode. But it didn't work well.  Can someboday help me with this problem? Thank you!

Capture3.PNGCapture2.PNG

1 ACCEPTED SOLUTION
jahida
Impactful Individual
Impactful Individual

Basically that's saying that the column you're trying to convert to Date isn't all (valid) dates... Can't help without seeing your data but check for some weird/garbage values and try to filter them out.

View solution in original post

6 REPLIES 6
jahida
Impactful Individual
Impactful Individual

Basically that's saying that the column you're trying to convert to Date isn't all (valid) dates... Can't help without seeing your data but check for some weird/garbage values and try to filter them out.

@jahida

Yes. But it always should be possible to set type to Text, right? But sometimes Text type selection is greyed out - don't know why ...

Thank you for your advice! It works!

Hi,

Could you please let me know of the solution to this issue.

 

Regards,

Srinivas

@asriniva33 I found out  there is an invalid value in the column. So I deleted it and then everything works

@sunjin122

 

Thanks for the information.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors