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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors