Study Guide
Understanding VertiPaq: Why Your Data Types Decide How Fast Your Model Runs
By Dr. Rosario Feghali · October 30, 2026 · 8 min read
I've reviewed models where swapping a single column's data type cut the file size by half and made every visual noticeably snappier — with zero changes to the report itself. The person who built it had no idea the column mattered, because nothing in the Power BI interface tells you which columns are expensive. You have to understand how VertiPaq stores data to see it. This is also squarely a PL-300 topic: the "Model the data" domain expects you to know why some models are fast and lean and others are bloated, and the answer is almost always in the column design, not the DAX.
Rows aren't how VertiPaq thinks
A relational database like SQL Server typically stores data row by row — everything about one record sits together on disk. VertiPaq, the in-memory engine behind every Import-mode Power BI model, stores data column by column instead. Every value in the CustomerName column lives together, separate from every value in OrderDate, separate from every value in Quantity.
This matters because compression works on patterns, and a single column almost always has far more repetition than a whole row does. A Country column in a 10-million-row sales table might have only 15 distinct values. Store those 10 million rows together and there's little to compress. Store that one column alone, and VertiPaq can represent "Canada" once and reference it 2 million times instead of writing the string out 2 million times. That's the entire reason Import mode models can hold tens of millions of rows in a few hundred megabytes: the engine isn't storing your data, it's storing a compressed, deduplicated version of it, column by column.
Cardinality: the number that decides compression
The term for "how many distinct values a column has" is cardinality. It's the single biggest factor in how well a column compresses, and PL-300 case studies lean on it constantly without always using the word.
- Low cardinality (a
Gendercolumn with 2 values, aStatuscolumn with 5, aCountrycolumn with ~200) compresses extremely well. VertiPaq builds a small dictionary of the distinct values and stores a compact reference to that dictionary for every row. - High cardinality (a
TransactionIDcolumn where almost every value is unique, a preciseTimestampdown to the millisecond, a free-textNotesfield) compresses poorly almost by definition — there's nothing to deduplicate when nearly every value is different.
This is why a surrogate key column with a million unique integers is, counterintuitively, cheaper to store than a text column with only a few thousand distinct values. It isn't really about row count or even "how many distinct values" alone — it's about how much repetition the engine can exploit, and integers dictionary-encode and compress more efficiently than strings of the same cardinality.
Why data type choice isn't cosmetic
This is where a lot of models quietly bloat. Three choices come up constantly:
Don't import a full timestamp when you only need a date. 2026-03-14 09:42:17.335 has far higher cardinality than 2026-03-14 — every second of every day multiplies the distinct-value count. If your analysis is at the day level, split date and time into separate columns (or drop the time component entirely) rather than importing a single high-precision datetime column. This single change is one of the most common wins I find when auditing a slow model.
Prefer integers over text for keys and codes. A CustomerKey stored as an integer compresses and joins faster than the same key stored as a text string, even when the cardinality is identical. VertiPaq's dictionary encoding and its value encoding (used for certain numeric columns) are both more efficient over fixed-width numeric data than variable-length text.
Don't import columns you don't need. This sounds obvious, but it's the most overlooked rule. Every column you load — even one you never put on a visual — gets compressed, held in memory, and counted in every full reload. A wide source table imported in full because "we might need it later" is one of the most common causes of models that are far larger than the reporting actually requires. Remove unused columns in Power Query before they ever reach the model.
// In Power Query, drop columns the model doesn't use —
// this removes them before VertiPaq ever compresses them:
= Table.RemoveColumns(
PreviousStep,
{"InternalNotes", "LastModifiedBy_RawTimestamp", "DebugFlag"}
)
Encoding: dictionary vs. value
VertiPaq picks between two main compression approaches per column, automatically — you don't choose this directly, but knowing it exists explains some surprising behavior:
- Dictionary encoding builds a list of distinct values and stores a numeric reference to that list for every row. This is the default for text and works well for low-to-medium cardinality columns.
- Value encoding stores numeric values directly, sometimes with a mathematical transformation (like subtracting a common base value) so the stored numbers are smaller and compress tighter. This is why a column of whole numbers in a narrow range often compresses better than a dictionary-encoded equivalent.
You can't force one or the other from the Power BI interface, but you influence the outcome indirectly — by choosing narrower numeric types, by not needlessly inflating precision, and by keeping related values in a predictable range when the source system allows it.
What this looks like in a real review
When I'm asked to look at a model that's grown too large or refreshes too slowly, I don't start with DAX. I start with Manage Columns or an external tool that reports column size, and I look for the columns consuming the most space relative to how often they're actually used in a visual or a measure. Nine times out of ten it's one of: a high-precision timestamp that should have been split, a text column that should have been an integer key, or a column nobody uses that should have been removed in Power Query before it ever hit the model. Fixing the column design fixes the symptom at its source, instead of trying to optimize around it in DAX afterward.
What PL-300 expects you to know
You won't be asked to name VertiPaq's internal algorithms. You will be asked to recognize, in a scenario question, that a model is "too large" or "slow to refresh" because of column design choices — and to pick the fix that addresses storage, like reducing cardinality or removing unused columns, rather than a fix that only changes report visuals. The exam's framing is almost always: given a described problem, which modeling change addresses the root cause.
Want your model reviewed by a Microsoft Certified Trainer?
Gyromitra's PL-300 membership pairs the full self-paced course with a live weekly Q&A with a Microsoft Certified Trainer — bring a bloated model and we'll find the columns that are costing you. Join anytime, no cohort to wait for.