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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
rdnguyen
Helper V
Helper V

Complex query

To complex query with multiple conditional joins; and several Sum or Count following group by after the join to extract more data; would you confidently arrange at Power Query or push back to SQL Server if any chance?

 

Kindly suggest with your best practices

 

Thanks and best regards.

Rich

 

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @rdnguyen ,

 

Absolutely 100% send to the SQL server instead of Power Query.

 

Almost all of the operations you've listed require Power Query to load the entire table into memory to perform, and therefore performance will be poor, especially if all these operations are done in the same query, one after another.

 

Nothing beats an SQL server at performing these types of operations.

 

However, with Power Query and the Power BI/DAX front-end you quite often don't need to do any of these things structurally at all. Properly constructed/optimised DAX on the VertiPaq engine will often outstrip or at least match SQL Server performance in many areas, depending on what you want to do.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

1 REPLY 1
BA_Pete
Super User
Super User

Hi @rdnguyen ,

 

Absolutely 100% send to the SQL server instead of Power Query.

 

Almost all of the operations you've listed require Power Query to load the entire table into memory to perform, and therefore performance will be poor, especially if all these operations are done in the same query, one after another.

 

Nothing beats an SQL server at performing these types of operations.

 

However, with Power Query and the Power BI/DAX front-end you quite often don't need to do any of these things structurally at all. Properly constructed/optimised DAX on the VertiPaq engine will often outstrip or at least match SQL Server performance in many areas, depending on what you want to do.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors