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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
mf123
Frequent Visitor

is Import data from a database using native database query good option

I Need to use direct query for my reports that make my impossible to us power query,so i dont can format my data the right way ,so i try to use the sql server native query option,but i see on the documentation that its can have the limitashon,first that its will not have query folding,second its can have security issues (i don't expierence this issue), so my question is if i  am doing all my querys in the native sql and i dont need the power query editor, if its a good idea to use the sql native query option,for my now its looks amazing its works even faster from the regular dataverse connector,and i can make the querys much better and format the datat much better,but maybe when i will have large data its will get slower,so if anyone can help my to make a decision if to use native query and explain what its will be the bad side and the good side from it, i will appreciate!

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@mf123 Not sure I 100% understand the ask. First, it is generally optimal to push data transformation as far back as possible. So, if you need to do data transformation then do it by creating a SQL View for example and then just connect directly to that view. You can do a query that executes a SQL query. That is perfectly fine as long as you don't need to do any additional data transformation within the query itself because at that point you can't preserve query folding.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

thanks for your answer,my problem is that i use dataverse so i can't create views 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors