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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

data load best practice for relational source but complex transformations

All of my data sources are SQL Server, making them a candidate for query folding.  However, my transformations are complex, which prevents query folding.  I have found that writing the transformations in SQL (as opposed to M) gives me much better load performance (as if query folding were occurring).  In this scenario (all SQL sources, but complex transformations), is it best to continue avoiding M and instead writing all transformations in SQL? 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

I would say yes and you also want to be building views in SQL then just pulling the view into PowerBI.  Take a look at this article on the topic.

https://www.sqlbi.com/articles/data-import-best-practices-in-power-bi/

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

I would say yes and you also want to be building views in SQL then just pulling the view into PowerBI.  Take a look at this article on the topic.

https://www.sqlbi.com/articles/data-import-best-practices-in-power-bi/

mhossain
Solution Sage
Solution Sage

@Anonymous 

I think it is better to write all the complex transformation and transformations which are not query folded in your sql, performance will be better. However If all the steps in M query are folded then more or less it will be the same as native query.

If you are good at sql query then you will write better optimized query which gives you better performance. Hope this makes sense.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.