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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to speed up "Apply Query Changes" after updating Power Query.

When I make changes to Power Query and then apply changes PowerBI thinks forever. What are some things I can do to figure out what is causing my refresh to take so long?

8 REPLIES 8
Terrance
New Member

It turned out that the folder where the input CSV was being held was extraordinarily slow. When we moved it to test alternatives, the speed problem went away.

 

I am not sure that you can avoid multiple rereads of an input Excel file in Power BI.

StephenK
Resolver I
Resolver I

What kind of datasource(s) are you using and how many rows?

Are you doing any big transformations like merging queries?

Anonymous
Not applicable

My data sources are Excel and SAP Business Warehouse. I'm not sure on the # of rows (how do I figure that out?)

 

Regarding merging...yes I have a ton of merging queries. 

Row count in power query you have to use the count rows function under the Transform tab.

 

Easier way is to go into table view and PBI will give you the row count in the bottom left corner.

 

 

Have you removed all unecessary columns from your model and filtered the data down to just the measurement period you will use in your analysis?

Anonymous
Not applicable

Across 8 tables my largest table is 90K rows. Most of the other tables are around 20K rows.

 

Yes, I only have needed columns and time period in question.  

Your merge queries are definitely going to slow things way down. Don't know if there is a way around that.

 

Depending on the granularity you need, you could try aggregating using Group By in PQ to reduce your size more.

 

I'm assuming your model is also properly optimized by breaking into fact and dimension tables?

 

 

Anonymous
Not applicable

Please tel lme more about Group by in PQ and using a fact and dimension tables? I'm not familiar with these. 

See here for guidance on fact and dimension tables:

https://docs.microsoft.com/en-us/power-bi/guidance/star-schema

 

Group By is on the home tab of PQ.

Annotation 2020-04-23 131701.png

 

 
 

 

 

You can reduce the size of your data model by reducing your granularity. Say you have transactions by day, but you are only analyzing by year or month. You can select your year or month column and aggregate your data by this column. You lose the granularity of drilling down to the day level, but you reduce your row count and potentially improve performance.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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