Yes, Power BI has strict limits on the number of rows and columns in a table, but you can work around them by using DirectQuery, importing with compression, or limiting rows in the Power Query editor. The standard Desktop limit is 1,048,576 rows per table, but the service imposes stricter caps to maintain performance and data storage limits. To manage this effectively, you must understand how your data source, the import mode, and the specific Power BI service tier interact to determine these boundaries.

What You'll Need

  • A Power BI Desktop application installed on your computer.
  • A data source connection (such as SQL Server, an Excel file, or an online service like SharePoint).
  • A basic understanding of Power Query, the data transformation step in Power BI.
  • A Power BI Pro or Premium Per User (PPU) license if you plan to publish and share the report.

Step-by-Step

  1. Understand Your Data Source Limits. Before importing, check the native limits of your source. A SQL Server table might hold millions of rows, but Power BI cannot import them all at once. A standard Excel sheet is limited to 1,048,576 rows. Knowing this upfront prevents the frustration of importing data that will fail or perform poorly.
  2. Open Power BI Desktop. Launch the application and go to the Home ribbon. Select Get Data and choose your data source from the list. This creates a connection to your data.
  3. Connect and Load. Use the connection dialog to specify the server, database, or file path. Once connected, you will be asked how you want to load the data. The two main options are Load (import) and Load More (which opens Power Query Editor). For tables that exceed your limits, you must use Load More.
  4. Navigate to Power Query Editor. Clicking Load More opens the Power Query Editor. This is where you apply transformations to your data. This is the critical step for managing row limits.
  5. Apply a Row Limitation in Power Query. To prevent importing millions of rows, you can filter or sample the data right here. For example, if you only need the last 100,000 rows, use the Filter Rows option in the Home ribbon or the Apply Index feature to select the top rows. This drastically reduces the size of the table before it is ever imported into Power BI.
  6. Choose the Correct Data Model Mode. In the Power Query Editor, go to the Home ribbon and look for the Close & Apply button. Before clicking it, ensure you are in the correct mode. For small datasets, Load is fine. For larger datasets, look for the Data Model checkbox. Checking this creates a table in the relational model rather than a standalone table, which is more efficient for relationships.
  7. Use DirectQuery for Very Large Datasets. If your data is massive and you cannot limit it in Power Query, you can use DirectQuery. This mode connects to the source directly, pulling data on the fly rather than importing it. To do this, return to the Get Data step and select DirectQuery as the connection type. Note that DirectQuery has its own performance limitations and is not suitable for real-time user interaction on every cell.
  8. Check the Service Limits. Once your report is published to the Power BI service, the limits tighten. The free service has a hard cap of 1GB of storage per dataset. If your dataset exceeds this, you must upgrade to a Premium capacity or use a smaller dataset. The Premium capacity can handle much larger datasets, but the data source itself may still have its own limits.
  9. Optimize for Performance. If you have a large dataset, ensure your tables are compressed. Power BI uses columnar storage and delta compression. To help this along, ensure your data types are correct in Power Query. For example, convert text columns to data types like Whole Number or Date rather than leaving them as text. This makes the data smaller and faster.

Common Mistakes

The most common mistake is assuming that Power BI can import a table of any size without performance issues. Users often import a full SQL table with millions of rows, only to find their report is slow to load or that they hit a storage limit in the service. Another mistake is not checking the data type of columns before loading. Leaving numbers as text prevents compression and increases the size of the dataset significantly.

Tips

Always test your dataset with a smaller sample first. If your report runs smoothly with 50,000 rows, it is likely to run well with 100,000 rows. If it struggles with 50,000, it will definitely struggle with 500,000. Use the Sample from Table feature in Power Query to quickly test your transformations on a subset of data.

Troubleshooting

My dataset exceeds the 1GB limit in the service.

This is a hard limit for Pro users. To fix this, you must reduce the size of the dataset. You can do this by removing columns you don't need, filtering rows in Power Query, or converting data types to more efficient formats. If the dataset is still too large, you will need a Premium capacity.

Power BI is very slow when I try to filter the data.

This usually indicates that you are importing too many rows for the filter performance to handle. Try using DirectQuery instead of import mode, or apply a row limit in Power Query to reduce the amount of data being processed.

I get an error saying the table is too large.

This error typically means you are trying to import more rows than the Power BI Desktop limit of 1,048,576. You must use Power Query to filter or sample the data before loading it.

Frequently Asked Questions

What is the maximum number of rows in a Power BI table?

The standard limit is 1,048,576 rows per table in Power BI Desktop. However, the Power BI service has a 1GB storage limit per dataset, which effectively limits the number of rows depending on the data types.

Can I import more than 1 million rows?

Yes, you can import more than 1 million rows, but you must use Power Query to filter or sample the data to a manageable size. Power BI Desktop will not allow you to import a table with more than 1,048,576 rows directly.

Does DirectQuery have the same limits as import mode?

No, DirectQuery does not have the same row limits as import mode. It connects directly to the data source and does not import the data into Power BI. However, it has its own performance and compatibility limitations.

How do I limit the number of rows in a table?

You can limit the number of rows by using the Apply Index feature in Power Query to select the top rows, or by using the Filter Rows feature to remove rows you don't need.

Does the number of columns affect the row limit?

No, the number of columns does not affect the row limit. The limit is based on the number of rows. However, more columns will increase the size of the dataset, potentially hitting the storage limit sooner.