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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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