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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Imagauthamam
Helper III
Helper III

Will DirectQuery Mode won't work without query folding

I connected my Power BI Report to my SQL server through directquery mode. But when I went to transform data and in applied steps column, I went to last step and right clicked and found view native query option is disabled. The reason is I wrote an custom SQL statement. My question is still the storage mode of report shows DirectQuery. Will DirectQuery Mode have any impact if view native query option is disabled? 

Now the query cannot be folded

1 ACCEPTED SOLUTION
ppm1
Solution Sage
Solution Sage

Providing a native query breaks query folding, but if it does everything need it's ok. Is a native query really needed? In any case, if you want to fold subsequent steps, please see this article about the Value.NativeQuery function.

 

Chris Webb's BI Blog: Query Folding On SQL Queries In Power Query Using Value.NativeQuery() and Enab...

 

Pat

Microsoft Employee

View solution in original post

1 REPLY 1
ppm1
Solution Sage
Solution Sage

Providing a native query breaks query folding, but if it does everything need it's ok. Is a native query really needed? In any case, if you want to fold subsequent steps, please see this article about the Value.NativeQuery function.

 

Chris Webb's BI Blog: Query Folding On SQL Queries In Power Query Using Value.NativeQuery() and Enab...

 

Pat

Microsoft Employee

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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