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

Change data type of a conditional column in DirectQuery mode

Hello,

I created a conditional column and the values in this column are 0s and 1s. I tried to change the data type from "ABC123" to "Whole number" so I can calculate Sum or Average on the column. But I am getting the error "This step results in a query that is not supported in DirectQuery mode." Is there a work around?

Any help will be appreciated.

Thanks,

Xin

1 ACCEPTED SOLUTION
gipiluso
Resolver II
Resolver II

If you are using direct query you will not be able to perform some action (here the limitation of direct query).

 

I suggest to make this directly on the data source (if you have SSAS just change the datatype on it or cast if you have a sql source).

If you doesn't have the chance to edit on the source I suggest to use import.

 

GP

View solution in original post

2 REPLIES 2
gipiluso
Resolver II
Resolver II

If you are using direct query you will not be able to perform some action (here the limitation of direct query).

 

I suggest to make this directly on the data source (if you have SSAS just change the datatype on it or cast if you have a sql source).

If you doesn't have the chance to edit on the source I suggest to use import.

 

GP

Okay, I will have to work with the source then.

Thank you,

Xin

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.