Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Power BI Table Partitions: How to Set Up and Manage Them

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Power BI table partitions allow you to divide large datasets into smaller, manageable chunks for improved performance and refresh efficiency. By splitting data by date, region, or another logical key, Power BI can refresh only the changed partition instead of the entire table, reducing load times and resource usage. This is especially valuable for tables with millions of rows or frequent incremental updates. Before proceeding, ensure your data source supports query folding and that you have sufficient permissions to modify the dataset in Power BI Service. You must also be using Power BI Desktop (not Power BI Service alone) to create partitions.

What You'll Need

  • Power BI Desktop (latest version)
  • A data source that supports incremental refresh (e.g., SQL Server, Azure SQL Database, Oracle, PostgreSQL)
  • Permissions to edit the dataset in Power BI Service
  • A column in your table that can be used to partition data (e.g., Date, Region, Year, Month)
  • Access to the Power BI Service (cloud) to publish and manage partitions after creation

Step-by-Step

  1. Open Power BI Desktop and load your large table using a supported data source. Ensure the table has a column that can logically segment the data — for example, a Date column for monthly partitions or a Region column for geographic splits.
  2. Go to the Modeling tab in the ribbon, then select Incremental Refresh. A dialog box will appear titled Incremental Refresh Policy.
  3. Toggle Enable incremental refresh to On. Power BI will prompt you to select two date columns: Range start and Range end. Choose the same column (e.g., OrderDate) for both if you’re partitioning by time. If your data uses different columns for start and end dates (like CreatedDate and UpdatedDate), select the appropriate ones.
  4. Set the Range start to the earliest date you want to include in refresh (e.g., January 1, 2020). Set the Range end to today’s date or a future date if you expect new data.
  5. Under Partitioning, define the Number of days to refresh. This determines how many days of data will be refreshed each time. For monthly partitions, set this to 30 or 31 days. For yearly, set it to 365. Power BI will automatically create partitions based on this interval.
  6. Click Apply. Power BI will generate a query that filters data by the selected range and creates partition boundaries behind the scenes. You’ll see a new section in the Query Editor labeled Incremental Refresh Policy with the defined ranges.
  7. Go to the Home tab, then click Advanced Editor on your main query. You’ll see a new M code block labeled IncrementalRefreshPolicy — this confirms the partition logic is active. Do not modify this block manually.
  8. Click Close & Apply to save your changes. The dataset is now partitioned.
  9. Publish the report to Power BI Service. Once published, go to the workspace, select the dataset, and choose Settings > Incremental refresh. Verify that the partition settings appear correctly. If not, return to Power BI Desktop and reconfigure.
  10. Test the partitioning by manually triggering a refresh in Power BI Service. Monitor the refresh history to confirm only the most recent partition is being updated, not the entire table.

Common Mistakes

  • Using a non-date column for time-based partitions without proper sorting — Power BI requires the partition column to be ordered chronologically or logically. Using a string like "Region_A", "Region_B" without consistent ordering can cause refresh failures.
  • Setting the number of days too low (e.g., 1) for large datasets — this creates hundreds of tiny partitions, which slows down query performance due to overhead.
  • Forgetting to publish after configuring in Power BI Desktop — partitions are not active in the service unless the dataset is published.
  • Using a column that contains nulls or inconsistent data types — partitions fail if the partition key has blank values or mixed types (e.g., date and text).
  • Assuming partitions work with all data sources — Excel files, web APIs, or flat files do not support incremental refresh or partitioning.

Tips

  • Start with monthly partitions for large transactional tables — they balance performance and manageability better than daily or yearly.
  • Use a computed column in your source query to extract Year-Month as a numeric or text key (e.g., 202406) to make partitioning more reliable than raw dates.
  • Combine incremental refresh with query folding — ensure your source query filters data at the database level, not in Power BI, to avoid loading unnecessary rows.
  • Monitor refresh durations in Power BI Service — if a partition refresh takes longer than expected, check for slow queries or missing indexes in your source database.
  • Use the Partition section in the Transform Data view to view all generated partitions. Each partition appears as a separate query step, which helps you audit the logic.
  • For tables that grow rapidly, set a retention policy — delete partitions older than 24 months to reduce storage and improve query speed.

Troubleshooting

  • If the Incremental Refresh option is grayed out, your data source doesn’t support it. Switch to SQL Server, Azure SQL, or another supported source.
  • If refreshes fail with "The partition range is invalid," check that your Range Start is earlier than Range End and that the column contains valid date values. Fix any null or malformed dates in the source.
  • If only partial data refreshes, verify that the partition window includes the date range of new data. If new data falls outside the range, increase the Range End date in the Incremental Refresh settings.
  • If the dataset refreshes the entire table instead of just one partition, ensure you’re not using a custom query that overrides the incremental logic — remove any manual filters in the query that conflict with the partition range.
  • If you see "Cannot refresh because the data source does not support incremental refresh," confirm your connection type is DirectQuery or Import with a supported source. Live connections to Analysis Services do not support this feature.
  • After publishing, if settings don’t appear in Power BI Service, republish the .pbix file and wait 5 minutes. Sometimes the service takes time to register the policy.

Frequently Asked Questions

Can I create partitions manually in Power BI?

No, partitions are created automatically by Power BI when you enable incremental refresh. You cannot manually define partition boundaries or names.

Do partitions reduce storage space?

Not directly. Partitions improve refresh performance but do not compress or reduce the total size of your dataset. However, deleting old partitions can free up space.

Can I use partitions with DirectQuery mode?

Yes, but only if your DirectQuery source supports incremental refresh (like Azure SQL or SQL Server). Power BI still needs to be able to filter data at the source.

Will partitions work with dataflows?

No, incremental refresh and partitions are not available in dataflows. Use datasets based on direct queries or imported tables instead.

How many partitions can a table have?

Power BI supports up to 1,000 partitions per table. Beyond that, performance degrades. Keep partitions in the hundreds, not thousands.

What happens if I disable incremental refresh?

All partitions are removed, and the table reverts to a single full refresh on each scheduled update. You cannot restore the partitions without re-enabling the setting and reconfiguring it.