Could Your Power BI Document Be Consuming Too Much Memory?
In my time working on Power BI projects for our largest clients, I’m often asked why a Power BI report is consuming so much memory as users navigate through their reports. I also get asked about the need to move to a more expensive tier when using Premium Capacity, even when there are just a few reports. It’s not surprising — Power BI performance is one of the key factors that drives business user satisfaction.
In this post, we’ll examine memory consumption by Power BI reports, how it can be measured, and how you can use this information to improve report performance. We’ll look at a report memory footprint to illustrate in a concrete way how it’s related to performance. We’ll also look at the Power BI-related Windows processes running on your machine and how measuring memory consumption can provide a path to fixing poorly performing reports.
Why Should You Care About Your Power BI Report Memory Footprint?
For Power BI Premium capacity, each tier has predefined computing resources assigned to it. These resources relate to how much memory and CPU are available on that Premium node. Having the ability to assess a Power BI report’s memory requirements allows you to ensure acceptable report performance and adequate memory capacity when you need it. This also allows you stay at the lowest cost Premium Capacity tier while maintaining healthy Power BI performance.
Measuring Power BI Document Memory Consumption
While using Power BI desktop to create a Power BI report, you can use the Windows Task Manager to review the current memory footprint of the report. To do this:
- Open the report in Power BI Desktop
- Insert a blank page
- While in the blank page, save and close the report
- If possible, close all open applications
- Launch Power BI Desktop again, and open the previously saved report
- Once the report is open, you should be in the blank page that you had added (the report should open to the blank page added in Step B, above)
- Open Windows Task Manager by pressing Ctrl-Alt-Del, and selecting Task Manager from the list provided. Expand the Power BI Desktop Group under the process tab (Detailed information about these processes can be found at the end of this post.)
- Wait for the report CPU % to approach zero, which means that it has completed loading it into memory. See this sample report on the blank page.
I. Next, navigate to one of the pages where memory consumption is very high due to an underperforming DAX formula.
J. Once you’ve optimized DAX formulas that were causing the memory spike, you can do a side by side memory comparison between the initial version and the optimized version.
Repeat the process as you build new reports or rework slow reports will allow you to minimize memory usage and get the most out of your premium capacity.
The associated processes are defined below:
- This process allows Power BI Desktop to simulate the Power BI Service
Console Windows Host
- Microsoft internal process
Microsoft Mashup Evaluation Container
- The Power Query Engine
- It is responsible for processing all the steps in the Power Query Editor, which gets data from my sources, transforms it and then loads it into my data model
Microsoft Power BI Desktop
- This is the starting point executable and container for all the processes run within Power BI Desktop
Microsoft SQL Server Analysis Services
- The analytical data engine
- This is where all the data gets loaded from Power Query into the data model.
- This process can have the highest memory usage
- An expensive DAX measure that must get most of its data from the storage engine will see an increase in memory utilization and CPU during the evaluation and running of the DAX measure
Power BI Performance Improvements Are Attainable
Now you know how to gain insight into Power BI report memory consumption to avoid problems once the reports are run within the Power BI Service. Our team at DesignMind has years of experience designing, developing, and architecting Power BI solutions for organizations, both large and small. You can see more tips from our Power BI experts here.
Elevate your Power BI reports and learn more about our suite of Power BI services or contact us to schedule a free consultation.
Tomas Santandreu Polanco is a Senior BI Consultant at DesignMind.