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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
HamidBee
Power Participant
Power Participant

Error: This query contains transformations that can't be used for DirectQuery.

I am importing data from an Azure Serverless SQL db. 

 

HamidBee_7-1662565111222.png

 

I chose DirectQuery for this.

 

HamidBee_8-1662565254977.png

 

Here is the full SQL script that I used:

 

-- This is auto-generated code
SELECT
TOP 100 *, result.filename()
FROM
OPENROWSET(
BULK 'https://xxxxx.dfs.core.windows.net/taxi/raw/trip_data_green_parquet/year=*/month=*/*.parquet',
FORMAT = 'PARQUET'
)
WITH (
VendorID INT,
lpep_pickup_datetime datetime2(7)
) AS [result]

 

 When loading the parquet file....

 

HamidBee_10-1662565485579.png

 

I get an error which reads:

 

"This query contains transformations that can't be used for DirectQuery."

 

HamidBee_0-1662582111473.png

 

 

Strangely, it works perfectly fine with Import Query. Why do I get such an error with DirectQuery?.

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @HamidBee

 

 restart Power BI, then copy and paste the old query into a new one, and delete the old one, it should refresh fine.

Reference:

DirectQuery errors on imported tables. July 2018 C... - Page 3 - Microsoft Power BI Community

Solved: this query contains transformations that can't be ... - Microsoft Power BI Community

 
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This answer is outdated. The composite mode is no longer in preview. I am currently using the June 2022 version of Power BI. Please update your answer. Thank you.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors