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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
EnrichedUser
Helper III
Helper III

Write your own SQL query vs views vs table imports

I am trying to optimize my future models. Previously, I have been writing my own queries joining tables, making aggregates, etc. 

 

I have since learned that I lose out on the built in query folding and the subsequent access to things such as incremental refresh. 

 

What is the best way to pull SQL data into the model?

 

Writing your own scripts

Creating Views and pulling in the entire view like a table in PQ

Pulling in entire table (import) and using PQ ETL

Something else

 

if there are any solid articles written about what the optimizal method is, id love to read about it as well.

 

Note:

 

No single table exceeds 10mm rows, but many have 100+ columns

 

Thank you

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@EnrichedUser 

Is always recommended to do all your ETL at the source level and bring in the data to PBI. Creating Views is the best option as per your case. It will enable Query Folding and Incremental Refresh as well.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

1 REPLY 1
Fowmy
Super User
Super User

@EnrichedUser 

Is always recommended to do all your ETL at the source level and bring in the data to PBI. Creating Views is the best option as per your case. It will enable Query Folding and Incremental Refresh as well.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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