Are you struggling with a sluggish Power BI report? Is your dataset refresh taking longer than expected? If so, you’re not alone! Many users face these issues, but there are effective techniques to tackle them. In this blog, we’ll explore two powerful methods to reduce Power BI dataset size refresh and improve overall performance.
Understanding the Problem
When working with Power BI, you might encounter performance issues due to large dataset sizes. These can manifest as slow refresh times and sluggish report performance. Often, the solution lies in optimizing your data model. Let’s dive into some actionable tips that can help you identify and resolve these issues effectively.
Starting with Power BI Desktop
To optimize your model, begin by analyzing it in Power BI Desktop. Open your report, which is based on the Contoso Retail DW sample database, and modify it to increase the number of rows, making it larger than the default sample.
When facing performance issues, the first step is to open the Power BI Desktop file and add a blank page. This blank page helps avoid visual caching issues. After saving and reopening the file, go to the View tab and enable the Performance Analyzer. This tool is crucial for understanding how your report performs.

Using the Performance Analyzer
Once you start recording with the Performance Analyzer, navigate to your report page to see how the visuals render. Pay attention to the DAX queries and visual displays. Often, the performance might seem okay, but if users are reporting slow refreshes, it indicates deeper issues.
For instance, if refresh history shows a significant delay, such as an hour or more, it’s time to dig deeper. You might encounter error messages indicating the uncompressed data on the Gateway exceeded the limit. This is a sign that your model is too large and requires optimization.

Identifying Tools for Optimization
To address these issues, use tools like DAX Studio and VertiPaq Analyzer. Both tools are available for free and help analyze your model effectively. Start by connecting to your Power BI model through DAX Studio and then switch to VertiPaq Analyzer to manage the data model.
In VertiPaq Analyzer, you can see critical information about your model, including table cardinality and local date tables created due to the Auto Date/Time feature. This brings us to our first technique for reducing dataset size.
Technique 1: Disable Auto Date/Time
Auto Date/Time is a feature that automatically creates hidden date tables for each date column in your model. While it can be helpful, it adds unnecessary overhead, especially in large datasets. Disabling this feature can significantly reduce your model size.
To disable it, go to File > Options > Data Load, and uncheck Auto Date/Time. You can also set this as a global option for all new files. After making this change, refresh your data model to see the impact.

Technique 2: Remove Unused Columns
The second technique involves examining your data model and removing any columns that are not used for reporting or relationships. Each unnecessary column contributes to the overall size of your dataset and can hinder performance.
To implement this, go to the Power Query Editor and review the columns in your tables. Identify columns that are not essential for your reports or calculations. For instance, if you have identifier columns that are not being used in any relationships or calculations, consider removing them.

Analyzing Cardinality
While investigating your model, pay attention to cardinality. High cardinality columns can lead to inefficient storage and processing. For instance, if a sales table contains an ID column with millions of unique values, it can bloat your model size.
Ask yourself if you really need those columns. If they are not referenced in any relationships or calculations, removing them can dramatically improve your model’s efficiency.
Testing the Impact of Changes
After implementing these techniques, refresh your model and check the file size. You might notice a significant reduction in size, which can lead to faster refresh times. For example, reducing the model size from 600 MB to 74 MB is not uncommon when removing unused columns and disabling Auto Date/Time.

Final Thoughts
Optimizing your Power BI dataset size and refresh times can be a game changer for your reporting capabilities. By disabling Auto Date/Time and removing unused columns, you can streamline your data model significantly. Remember, these are just the initial steps in a broader optimization strategy.
For more in-depth training on Power BI, consider checking out this expert-led training course, which covers advanced techniques and best practices.


