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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Sound advice on improving Query Refresh

Is there any sound advice on uploading large datasets (5 million rows from SQL server 2016) into Power BI?

It is tough for me to aggregate the data as I need it at the granular level.  I removed my parameters and disabled parallel loading, etc etc but it still is incredibly slow...like hours and hours to load a SQL query in import mode.

Any suggestions are appreciated.

 

 

1 ACCEPTED SOLUTION
HotChilli
Community Champion
Community Champion

Correct and hopefully it will be part of your long-term solution otherwise the refresh will take as long as the initial load.

Other things to consider : query folding,

auto date/time settings,

not returning fields from the db that are not required,

using table.buffer if the same table is being loaded repeatedly in query transformations,

what's going on in the db when the load is being run, and so on

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous ,

 

Loading large dataset in import mode always takes a lot of time. Do you consider to use DirectQuery mode instead?

 

Best Regards,

Jay

CNENFRNL
Community Champion
Community Champion

First of all, I'm a hardcore fan for PQ given so many fantastic native functions to manipulate dataset; but in practice, I still resort to sql for better perfomance either by query folding or by sql on the db side, i.e. join/aggregate/filter dataset by sql rather than by PQ query.

Frankly speaking, sql is more relaible than PQ query in terms of performance.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Anonymous
Not applicable

@CNENFRNL I am trying to aggregate some columns but I need all of them as they interact together.

 

HotChilli
Community Champion
Community Champion

Correct and hopefully it will be part of your long-term solution otherwise the refresh will take as long as the initial load.

Other things to consider : query folding,

auto date/time settings,

not returning fields from the db that are not required,

using table.buffer if the same table is being loaded repeatedly in query transformations,

what's going on in the db when the load is being run, and so on

HotChilli
Community Champion
Community Champion

Incremental refresh?

Anonymous
Not applicable

In order for me to set up Incremental refresh I need to load my dataset that I recently changes which is taking hours and hours 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.