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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Working with huge data(Pro license)

Hi Experts,

 

What optimization methods does power bi have when dealing with huge data? When I connect to Azure DB, the running speed of SQL script is very slow. When SQL completed, it will also be very slow to load data into PBI. How to solve this issue(Pro license)?

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Really difficult for me to give detailed help on this as there's hundreds of things that could be causing a slow query/acquisition process.

 

I guess the first places to start would be:

 

1) Optimise your SQL. I'm afraid that this suggestion is proportionally as vague as the description of the problem.

 

2) Ensure that query folding is enabled for your native query:

Value.NativeQuery(
    previousStep,
    "select * from table etc...",
    null,
    [EnableFolding=true]    // add this argument if it isn't currently present
)

 

3) Aggregate the data in the SQL as highly as possible for the expected use.

 

4) Remove any columns from the query that are not absolutely necessary. Recreate them in DAX if required.

 

5) Fully prepare the data at source via views then pass straight to the data model with Direct Query.

 

If you can provide more detail around your SQL query, the number of tables and their structures/row counts, your subsequent Power Query transformations, and your end use-case I may be able to provide more detail in my suggestions.

 

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

3 REPLIES 3
BA_Pete
Super User
Super User

Hi @Anonymous ,

 

When dealing with huge data the (only) way to go is Direct Query Composite model with aggregation tables:

 

https://radacad.com/power-bi-fast-and-furious-with-aggregations 

 

Pete



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

Proud to be a Datanaut!




Anonymous
Not applicable

Hi @BA_Pete ,

 

Thanks for your reply,Now my SQL script runs very slowly. When the preview table is loaded, the apply query often causes the PBI to freeze. Do you have any good suggestions?

Hi @Anonymous ,

 

Really difficult for me to give detailed help on this as there's hundreds of things that could be causing a slow query/acquisition process.

 

I guess the first places to start would be:

 

1) Optimise your SQL. I'm afraid that this suggestion is proportionally as vague as the description of the problem.

 

2) Ensure that query folding is enabled for your native query:

Value.NativeQuery(
    previousStep,
    "select * from table etc...",
    null,
    [EnableFolding=true]    // add this argument if it isn't currently present
)

 

3) Aggregate the data in the SQL as highly as possible for the expected use.

 

4) Remove any columns from the query that are not absolutely necessary. Recreate them in DAX if required.

 

5) Fully prepare the data at source via views then pass straight to the data model with Direct Query.

 

If you can provide more detail around your SQL query, the number of tables and their structures/row counts, your subsequent Power Query transformations, and your end use-case I may be able to provide more detail in my suggestions.

 

Pete



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

Proud to be a Datanaut!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.