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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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 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.