Power BI

Handling Over a Million Rows in Power BI

What I learned about source filtering, semantic models and refresh performance when working with large financial datasets.

Article archive date

Working with Power BI becomes considerably more interesting when your dataset grows from a few thousand records to over a million rows.

At smaller volumes, inefficient transformations and unnecessary calculated columns may not cause noticeable problems. At larger volumes, those same design decisions can significantly affect refresh times, memory consumption and report responsiveness.

While working with large financial datasets, I realized that scalability is primarily an architectural challenge.

Start with the data source

One of the most important optimizations is reducing unnecessary data before it reaches Power BI.

When consuming OData APIs, I prefer retrieving only the required columns and applying appropriate filters at the source wherever possible.

Downloading an entire dataset and subsequently removing most of its contents creates unnecessary processing overhead.

Design the semantic model carefully

A well-designed semantic model is often more valuable than a collection of complicated DAX expressions.

Some principles I consider important are:

  • Separating transactional and master data.
  • Following a star schema wherever practical.
  • Avoiding unnecessary calculated columns.
  • Using appropriate data types.
  • Reducing high-cardinality columns when they are not required.
  • Using relationships instead of repeated lookups where appropriate.

Managing refresh performance

As historical data accumulates, repeatedly refreshing the entire dataset becomes inefficient.

Incremental refresh provides a way to retain historical partitions while processing more recent periods.

It is also important to understand whether transformations are being executed at the source or inside the Power Query engine.

Understanding licensing and capacity

A solution developed within Power BI Pro capacity constraints requires careful consideration of model size, refresh resources and processing complexity.

Adding more computationally expensive transformations is not always the answer.

Sometimes, redesigning the source data or moving transformations upstream provides substantially better results.

Final thoughts

Handling a million rows in Power BI is not necessarily difficult. Handling those rows efficiently, consistently and within available resources is the real challenge.

Performance optimization should begin during solution design, not after users start experiencing problems.

Keep reading