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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
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