Calculated columns in Direct Lake: what works (preview)

Direct Lake on OneLake models can now have DAX calculated columns, in preview. They are worked out at query time for each viewer, so they suit translations and user-aware logic, not relationships.

Short answer: since the August 2026 update you can add a DAX calculated column to a table in a Direct Lake on OneLake model, in Power BI Desktop or in web modelling, without changing its storage mode. It is in preview, and its Expression Context must be User Context: the column is not stored, it is worked out at query time for whoever is looking. That makes it right for things like a product name in the viewer's language, and wrong for anything a relationship or a heavy visual depends on.

Direct Lake models used to have no calculated columns at all: every column had to exist in the Delta table. That is still the right home for most columns. But some values depend on who is looking, like their language, and no table in the lake can hold those. This is the gap the preview fills.

Where can you use them?

Each storage mode stores, or does not store, a calculated column differently:

Storage modeStandard (default)User Context
Importstored at refreshworked out at query time
Direct Lake on OneLakenot availableworked out at query time (preview)
Direct Lake on SQLnot availablenot available
DirectQueryworked out at query timeworked out at query time
Calculated columns by storage mode and Expression Context

So on Direct Lake on OneLake there is one kind: User Context, never stored. On Direct Lake on SQL there are still none.

What does a good one look like?

A Product gold table has an English and a German name. Viewers whose language is German should see German, everyone else English:

Product Name =
SWITCH (
    LEFT ( USERCULTURE (), 2 ),
    "de", Product[Name_DE],
    Product[Name_EN]
)

Set the column's Expression Context property to User Context. USERCULTURE returns the viewer's locale, from their language setting in the Power BI service (by default, their browser's language):

Viewer's localeLEFT of itProduct Name shown
en-USenRoad bike
de-ATdeRennrad
fr-FRfrRoad bike
The same row of Product for three viewers

French has no column of its own, so it falls through to English. Adding "fr", Product[Name_FR] and the column in gold would fix it.

Why not put every column here?

Because nothing is stored, every query that uses the column works it out again, row by row. A stored column costs time at refresh; an unstored one costs time on every visual. For a few thousand products that is nothing. For a price band on a 50-million-row fact table it is felt on every page.

Same for every viewera price band, a full name, a fiscal year: build it in the gold table, in SQL or a notebook
Depends on the viewera language, a user's own label: a User Context calculated column
Needed by a relationshipa key: only in the table, never calculated here
Where a new column belongs

What goes wrong?

  • Using it in a relationship. Unstored columns cannot be keys of a relationship. Build keys in the lake.
  • A slow fact table. A calculated column on the largest table runs on every query that touches it. Move the logic to gold, or onto a smaller dimension.
  • Expecting the old Import behaviour. In an Import model with the default Standard context, USERCULTURE in a column is fixed at refresh with an invariant locale, so everyone saw the same value. Here it changes per viewer. Test with two language settings before you publish.
  • Relying on a preview. Preview features can still change. Keep the model working without the column, or be ready to adjust it.

Where can you check this?

Where do you start?

List the calculated columns you dropped when you moved a model to Direct Lake. Most belong in gold; the one or two that depend on the viewer can come back as User Context columns. How Direct Lake reads the lake is in Direct Lake: Power BI reports straight from the lake, and when a column beats a measure in measures vs calculated columns in DAX.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.