Columnar storage
Why a wide model can cost more
VertiPaq is the compressed column-oriented storage engine used for Import tables. Each column has its own stored representation, so a report that sums one numeric field need not read every field in a wide row. A model is not a CSV file: the column values, their distributions, encoding, relationships and partitions all contribute to memory use. Begin by counting distinct values, then measure actual memory rather than estimating savings from file length.
Encoding, compression and segments
A dictionary is a mapping from distinct values to codes. Repeated values may then be represented compactly; runs of identical codes may admit additional compression. This is a conceptual picture, not an exact VertiPaq format. Numeric values can also be encoded without a string-style dictionary; value ranges and data distribution matter. The engine selects encoding and compression under its processing rules. A partition is a logical processing unit; segments subdivide column storage. Do not assume a universal segment length or one segment per table. A small fixture may not exercise production-size segmentation.
Example 1 — measure cardinality before optimization
In the lab, WideSales has twelve rows. ProductKey repeats 1, 2 and 3, SaleDate has two values, but TraceId and EventTime each have twelve distinct values. Run this query after importing the baseline model (see lab setup).
EVALUATE ROW("Rows", COUNTROWS(Sales), "ProductKeys", DISTINCTCOUNT(Sales[ProductKey]), "TraceIds", DISTINCTCOUNT(Sales[TraceId]), "Timestamps", DISTINCTCOUNT(Sales[EventTime]))Expected: 12, 3, 12, 12. DISTINCTCOUNT includes blank if present; this fixture has no blank keys. These are counts, not compressed bytes. A high-cardinality column can be necessary even when costly.
Example 2 — inspect a tiny dictionary model
For codes [A,A,B,A,B,C], one illustrative dictionary assigns A=0, B=1, C=2. The encoded list is [0,0,1,0,1,2]. A run-based representation could use (0,2),(1,1),(0,1),(1,1),(2,1). Here six values become three distinct dictionary entries and five runs. Sorting yields [0,0,0,1,1,2] and three runs, but this is not evidence that sorting source rows changes VertiPaq compression by a given amount. Real processing can reorder or encode columns differently. Use actual metrics to test the hypothesis.
Common mistakes
Hiding TraceId does not remove its stored values or secure the field. Removing it destroys trace-level drillthrough, distinct trace counts and any dependencies. Converting a business code such as 001 to integer may merge it with 1; retain business identifiers if their text matters. Truncating timestamps to date changes time-of-day analysis, ordering and uniqueness. Use a typed date only if date-grain reporting is the approved contract, and retain full source history under an appropriate access policy.
Practice — prioritize a column audit
Using WideSales.csv, count distinct values for ProductKey, SaleDate, TraceId and EventTime. Identify a candidate for removal and a report that would break. Explain why cardinality alone cannot predict bytes. Use the independent lab oracle to check counts, then record native metrics when a compatible local model is available. Sources: https://learn.microsoft.com/en-us/power-bi/guidance/import-modeling-data-reduction ; https://learn.microsoft.com/en-us/analysis-services/tabular-models/column-properties-ssas-tabular?view=sql-analysis-services-2025 ; https://learn.microsoft.com/en-us/dax/info-storagetablecolumnsegments-function-dax