New The digna Engine: Choose Where Your Data Is Profiled
EN
Book a demo

Blog

Slimmer Power BI Models, Lower Fabric Bills: Highlights from SQLDay Lite

A smaller bill, earned by better engineering: few promises land better with data platform owners, and it was the promise of one of the BI sessions at SQLDay Lite 2026. The conference was organized by Data Community Poland at the Gdańsk University of Technology on 24-25 September 2026.

In "Slim Models, Lower Bills: Cutting Power BI and Fabric capacity costs from the inside", Dominik Szcześniak, Senior BI Developer, shared what he learned from two real projects, dozens of models and one very big fact table. Dominik has been in the data industry for about nine years, mostly on the Microsoft stack, and also runs the Dane Są Wszędzie ("Data Is Everywhere") podcast and blog. As semantic models become the serving layer for reports, Excel pivot tables and now LLMs and AI tools, keeping them lean is one of the most direct levers a BI team has on cost.

Why model size drives the capacity bill

The session starts with the big picture. Databricks holds the gold layer, and semantic models sit on top as the layer that reports, Excel pivot tables and AI tools query, which matches Dominik's current project, with Databricks and Power BI as the semantic layer. The pattern is simple: the bigger the company, the more data, the bigger the semantic models, and the bigger the capacity bill.

One slide puts the cost down to a single factor, model size, and explains why:

  • Size decides the SKU. Model size decides the capacity SKU you have to reserve.
  • Each model has a memory limit. A single model has to fit under the limit of its SKU.
  • Refresh needs room for two copies. A full refresh holds the old and the new copy of the model at the same time.
  • Refresh windows get tight. Bigger models refresh longer and run into timeouts.

Hence Dominik's first design advice: one model per domain (finance, sales, supply chain, risk), each with its own schedule, smaller peaks and a clear owner, rather than one model for everything.

He also points out that the techniques travel well. SQL Server Analysis Services on-premises, Azure Analysis Services and Power BI semantic models all run on the same VertiPaq engine, so DAX Studio, VertiPaq Analyzer and Tabular Editor 2 and 3 work against all three. As one slide puts it, nobody optimizes models for fun: the trigger is a migration or a mandated cost cut, and the two case studies started from exactly those.

Finding where the memory goes

The live demo asks where the memory actually goes, and Dominik's routine has three steps. Open DAX Studio's View Metrics, which runs VertiPaq Analyzer and shows size and cardinality per column. Sort by size, and look for the usual suspects: hash keys, duplicated values and long unique text. Then fix the model in Tabular Editor by removing columns, setting properties and deploying.

What he checks first: each column's percentage of table size, cardinality compared with row count, dictionary size and hierarchy size. As background: VertiPaq stores columns compressed, with a dictionary of distinct values, so a column with nearly one distinct value per row barely compresses and takes a large share of memory.

The same numbers are also available from metadata, through DMVs and the DAX INFO functions.

Case 1: a 120 GB model, and why to talk to the business first

The first case study is a model at the far end of the scale: 120 GB in memory, billions of rows in one fact table, 15 years of history, and full detail with every observation and no aggregates. The requirement behind it was the familiar "We need all of it." Dominik notes that he hears that sentence on almost every project, and that it is worth checking.

His order of work: talk to the business first, then tune the engine.

Ask about grain, history and audience

Three questions frame the business conversation. Grain: do users need every row, or would a daily or monthly aggregate answer the question? History: how many years do people really open at row level? Audience: which roles see which rows, and what does each role actually filter on? His usual starting point is the current year plus two years back at row level, with older data staying in the lakehouse or coming in aggregated.

The audience question produced what the slides call "the funny one". About 70% of the fact table had IsCurrent = 1 and about 30% had IsCurrent = 0. Every business role, mapped to Entra groups, had a row filter of 'Fact'[IsCurrent] = 1, so only admin roles could ever query the other rows. Those rows were still loaded every day. One question, "who actually needs IsCurrent = 0?", and that data was cut.

Model hygiene: keys and duplicated values

Two hygiene fixes followed. Legacy string hash keys had nearly one distinct value per row, so the dictionary was as big as the data. Replacing them with integer surrogate keys, generated once during the load in Databricks, gave the engine values that compress well.

The second fix addressed a value stored twice in the answers fact table: once as a high-precision decimal and once as text, such as 0.12355434364564 next to "0.12". The team kept the numeric value at four decimals and removed the numbers from the text column, which still holds real text answers.

A custom incremental refresh built on change detection

The standard incremental refresh policy from Power BI Desktop keeps an archive loaded once and a refresh window that rolls by date, not by change. Here, historical periods changed in the source, so the only safe option was a full reload, which stressed the capacity and often hit timeouts.

So the team built its own approach with year-month partitions refreshed only when they change. A GitLab pipeline triggers the batch reload, counts rows per year-month bucket, materializes the counts as a snapshot and compares them with the previous snapshot. From Dominik's slides, the counting step is as simple as this:

SELECT   bucket_partition,     -- e.g. 202503
         COUNT(*) AS row_count
FROM     gold.fact
GROUP BY bucket_partition;
SELECT   bucket_partition,     -- e.g. 202503
         COUNT(*) AS row_count
FROM     gold.fact
GROUP BY bucket_partition;
SELECT   bucket_partition,     -- e.g. 202503
         COUNT(*) AS row_count
FROM     gold.fact
GROUP BY bucket_partition;

Only the changed partitions are then sent to the enhanced refresh REST API, with maxParallelism capping how much runs in parallel. Load-test the source first, Dominik advises, because the Databricks SQL warehouse has to take that load. Some days only two partitions changed, so the team refreshed those two, not 15 years. Together with Delta table partitioning on the Databricks side, refresh time was cut in half.

IsAvailableInMDX: memory you get back for free

The last technique is an engine setting. VertiPaq builds a hierarchy for every column so Excel can query it with MDX, but hidden technical columns do not need one. Setting the property to false, either in Tabular Editor or directly in TMDL, frees that memory:

column AnswerKey
  dataType: int64
  isHidden
  isAvailableInMdx: false
column AnswerKey
  dataType: int64
  isHidden
  isAvailableInMdx: false
column AnswerKey
  dataType: int64
  isHidden
  isAvailableInMdx: false

Set it to false for hidden surrogate and hash keys, relationship-only columns and technical flags; keep it true for visible columns Excel users pivot on and for columns in user hierarchies, which Excel depends on.

The result

Business challenge, model hygiene, engine settings and refresh design together took the model from 120 GB to about 64 GB in memory, and next year's reserved capacity cost half.

Case 2: a mandated cost cut, guided by size and usage

The second case study starts from a different trigger. An FMCG enterprise with many teams, many environments and many models on each ran a mixed estate: Power BI models on Fabric capacities and Azure Analysis Services models on their own servers. After the migration, the first cloud invoices came in above the planned budget, a new director set a fixed date to bring costs down, and every owner said their model was needed.

Dominik's answer was to ask two questions of every model: what is in it, and who uses it?

  • Size: DAX Studio and VertiPaq Analyzer metadata give the size per model, table and partition.
  • Usage: Azure Log Analytics records every query, by model, user and time.
  • Combined: one dataset with every model and partition, its size, its capacity or server, and its query history, leading to one decision per model: keep, trim or retire.

Price every cut before deleting anything

The team priced each cut from partition sizes first. The rule of thumb: the saving is roughly the table size multiplied by the share of rows in the dropped partitions. A 10 GB table with half its rows in old partitions frees about 5 GB.

Log Analytics as the usage record

Log Analytics, which Dominik describes as basically "SQL Profiler, in the cloud", is switched on per workspace in Power BI and through diagnostic settings for Azure Analysis Services. It captures query and refresh events for the retention you set, and you query it with KQL; the example on the slide counts queries, distinct users and the last query time per model over 90 days. Ingestion and retention need a budget, with a bonus: the same data supports chargeback by team.

Keep, trim or retire

With size on one axis and usage on the other, the decisions become straightforward:

  • Big, barely used: retire first. One example was a large Azure Analysis Services model on a test environment, queried by one person.
  • Big, heavily used: optimize with shorter history, leaner columns and right-sized capacity.
  • Small, barely used: retire or merge when convenient.
  • Small, heavily used: leave alone.

The final step went down to partition level. Owners reported that they used the data a lot, while the logs showed zero queries on older partitions over the last three to six months. The director's decision was to drop them, summed up on the slide as "Harsh, but hard to argue with the logs."

What to try on Monday

Dominik closes with a checklist for any team running Power BI, Fabric or Analysis Services models:

  • Challenge the business: ask about grain, history and audience; check row-level security filters for rows no business role can see; keep row-level detail to the current year and two years back.
  • Tune the model: replace hash keys with integer surrogate keys; drop columns that duplicate each other; set IsAvailableInMDX to false on hidden technical columns; use custom partitions when history changes.
  • Measure, then cut: price every cut with VertiPaq Analyzer first; log every query with Log Analytics; retire big models and partitions nobody queries.

For next steps, the closing slide suggests treating these lessons as a framework, wrapping them up with the help of AI, and trying SemPy in a Fabric notebook.

Measuring before you cut is a data quality habit too

In both case studies the savings came from measurement: column cardinality, partition row counts, snapshot comparisons and query logs. The custom refresh in Case 1 rests on a check data teams know well, comparing row counts per period with the previous load.

The same metrics tell you whether the data in a model can be trusted. Tracking how record counts, missing values and averages develop over time shows unexpected growth before it reaches the capacity bill, and reveals loads that changed historical periods. That is the idea behind digna Data Analytics, which calculates trends and volatility on core statistics such as record counts and missing values, so a team can see how its data behaves over time and spot when a trend breaks.

Thank you, Dominik and SQLDay Lite

Many thanks to Dominik Szcześniak for a session built on two real projects, with concrete numbers, a live demo and a checklist BI teams can apply straight away, and to Data Community Poland for organizing SQLDay Lite 2026 in Gdańsk. The slides are available in the session folder of the SQLDay Lite 2026 repository, and more of Dominik's work is on his blog, danesawszedzie.pl.

Frequently asked questions

How can you reduce Power BI capacity costs?

Shrink the semantic models, since model size decides the capacity SKU you must reserve. In Dominik Szcześniak's SQLDay Lite 2026 session, challenging grain and history, replacing hash keys, setting IsAvailableInMDX to false and refreshing only changed partitions took one model from 120 GB to about 64 GB and halved next year's reserved capacity cost.

How do you find which columns use the most memory in a Power BI model?

DAX Studio's View Metrics is the starting point: it runs VertiPaq Analyzer and shows size and cardinality per column. Sort by size, look for hash keys, duplicated values and long unique text, and compare cardinality with row count, because columns with nearly one distinct value per row barely compress.

What does the IsAvailableInMDX property do?

It controls whether VertiPaq builds a hierarchy for a column so Excel can query it with MDX. Setting it to false in Tabular Editor or TMDL frees that memory. It suits hidden surrogate and hash keys, relationship-only columns and technical flags, while visible columns Excel users pivot on should keep it true.

How can incremental refresh handle changes in historical data?

A custom approach with year-month partitions refreshed only when they change works well. In the 120 GB case study, a GitLab pipeline counted rows per bucket, compared each snapshot with the previous one and sent only changed partitions to the enhanced refresh REST API, halving refresh time together with Delta table partitioning.

How do you decide which Power BI models to retire?

Size and usage together decide it. VertiPaq Analyzer metadata gives size per model, table and partition, and Azure Log Analytics records every query by model, user and time. Big, barely used models are retired first, big busy ones are optimized, and partitions with zero queries over three to six months can be dropped.

See what digna finds in your data

In a demo we show digna on data like yours, answering the questions your team asks every week.