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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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