Stop 14 · Security, Performance & GovernanceTopics · 5/9

Reducing Data Model Size

Part of the Power BI Roadmap

In short

A bloated model refreshes slowly, responds slowly and can hit size limits in the Service. A few simple habits can often shrink a model dramatically without losing anything users need.

Smaller models refresh and respond faster. Remove unused columns and rows, avoid high-cardinality text columns, prefer measures over calculated columns and use proper data types.

The jaadu kneels on an overstuffed suitcase, pulling out a heavy winter jacket and neatly rolling a few T-shirts to fit.

Think of it like this

Packing for a Goa trip

You don't pack your whole wardrobe for three days in Goa. You take what you'll wear, roll clothes tightly and leave the winter jacket at home. Model size works the same: keep only the columns and rows you need, and store them in shapes that pack small.

Watch it happen

Shrinking a Sales table step by step

Start 900 MB
0
Cut columns 520 MB
1
Split datetime 310 MB
2
Fix types 260 MB
3
Keep 3 years 180 MB
4

1/5An illustration of a Sales model as each fix is applied. Your numbers will differ, but the order of impact is typical.

The big ideas

What you need to know

Columns cost most

Import models compress each column separately. Removing unused columns is the single most effective fix.

Cardinality matters

Columns with many unique values, like transaction IDs or timestamps, compress badly. Reduce or remove them.

Turn off auto date/time

Auto date/time creates a hidden date table for every date column. Use one proper Date table instead.

Measures over calculated columns

Calculated columns are stored in the model. Measures are calculated at query time and take no storage.

See it in code

Walk through the code

text
1Power Query (Sales query):2  Remove Columns    -> OrderGUID, Comments, LastModifiedBy3  Split DateTime    -> OrderDate (Date), OrderTime (Time)4  Change Type       -> Quantity (Whole Number), Amount (Fixed Decimal)5  Filter Rows       -> OrderDate >= 01-04-20236 7Options > Current file > Data load:8  Auto date/time    -> Off

1/4Unused, high-cardinality columns go first.

A typical slimming pass. Doing it in Power Query means the extra data never enters the model.

Save yourself the pain

Common mistakes

Oops

Keeping every column 'just in case someone needs it'.

Do this instead

Remove it. Adding a column back later takes minutes. Carrying it costs refresh time and memory every day.

Oops

Creating calculated columns for things like Profit = Sales - Cost on a huge fact table.

Do this instead

Use a measure, or compute it at the source or in Power Query if it truly must be a column.

Your mission

Put your model on a diet

~35 min

Quick check

Which column is likely to take the most space in an Import model?

Go deeper

  1. 1Remove every column no visual or measure uses.
  2. 2Split datetime columns into separate date and time if you need both.
  3. 3Compare .pbix file size before and after.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge