cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors