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
sunjin122
Helper I
Helper I

text to time cancels direct query mode

I  load a dataset from sql server by choosing direct query. When I try to change the data type of a column to Time, a message always popped up like the screen shot shows below. Can anyone help me with this? Thanks ahead. Capture.PNG

1 ACCEPTED SOLUTION
KGrice
Memorable Member
Memorable Member

Changing the data type in direct query mode is not supported through the query editor. However, you should be able to do this after your data is loaded. In your Fields list, select the field you want to change, then select the Data Type in the Modeling tab of the ribbon.

 

This article (go to the section titled "Ability to change the datatype when connected to Direct Query") and this community post have good screenshots of the process.

View solution in original post

2 REPLIES 2
KGrice
Memorable Member
Memorable Member

Changing the data type in direct query mode is not supported through the query editor. However, you should be able to do this after your data is loaded. In your Fields list, select the field you want to change, then select the Data Type in the Modeling tab of the ribbon.

 

This article (go to the section titled "Ability to change the datatype when connected to Direct Query") and this community post have good screenshots of the process.

Thank you very much!

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.