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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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