Data Analytics
  • All of Microsoft
  • Python
  • My Role
    • All in My Role
    • Data Analytics
  • Focus
    • All in Focus
    • Microsoft Ignite 2026
    • Microsoft Fabric
    • What's Hot
    • M365 Release
  • Security & Identity
Timespan
explore our new search
Direct Lake columns: how they differ from measures
Power BI

Direct Lake columns: how they differ from measures

by HubSite 365 about Guy in a Cube

Direct Lake on OneLake calculated columns can run at query time, but they remain row-level columns with important modeling limits.

Key insights

  • Calculated columns in Direct Lake on OneLake are in preview and evaluated at query time.
  • The current calculated-column support uses the User Context expression context.
  • Direct Lake calculated columns cannot be used in relationships.
  • Direct Lake on SQL does not support this calculated-column capability.
  • Use measures for aggregations and calculations that should respond to report filters.

Direct Lake on OneLake supports preview calculated columns that are evaluated at query time rather than stored as materialized values. This matters to Power BI model authors who want row-level logic in a Direct Lake semantic model. Guy in a Cube demonstrates the topic in a YouTube Short.

What it does

In a traditional Import model, a calculated column is generally evaluated during refresh and stored in the model. The preview capability for Direct Lake on OneLake works differently: the calculated column is unmaterialized and evaluated when a query runs. That query-time behavior is one reason the columns may seem similar to measures.

They are not measures, though. A calculated column represents a value associated with each row, while a measure returns a scalar result that can change with a visual’s filter context. The evaluation timing does not change the column’s role or turn it into a dynamic aggregation.

Who it is for and what you need

This feature is relevant to authors of Direct Lake on OneLake semantic models who need lightweight, row-level calculations. It is in preview and supports the User Context expression context. Direct Lake on SQL does not support the same calculated-column capability.

Import models continue to support traditional materialized calculated columns. In composite models, Import tables remain an option when calculated-column functionality is needed. Measures are supported in Direct Lake and remain the fit for totals, ratios, and other calculations that should respond to report filters.

How it works

  1. Create a calculated column in a Direct Lake on OneLake semantic model using the supported User Context expression context.
  2. Use it for suitable row-level logic, such as a simple calculation from existing columns.
  3. Use a measure instead when the result should aggregate or change according to the report’s filter context.

Because the calculated column is evaluated at query time, the work can occur during report queries. Test expressions with realistic report workloads, especially if the calculation is complex.

Limitations and alternatives

The preview columns cannot be used in relationships, so they are not a replacement for persisted key or lookup columns. The supported User Context requirement also means Import-mode calculated-column patterns may not transfer unchanged. Direct Lake on SQL is outside this capability.

For persistent values, relationship keys, costly calculations, or logic reused beyond one semantic model, move the calculation into the lakehouse, warehouse, or data transformation layer. Keep measures for context-sensitive analytics such as totals, margins, and ratios.

Sources

Frequently asked questions

Do Direct Lake calculated columns behave like measures?

Only in the sense that the supported Direct Lake on OneLake calculated columns are evaluated at query time. They remain row-level columns; measures return scalar results that respond to visual filter context.

Can Direct Lake calculated columns be used in relationships?

No. The unmaterialized Direct Lake on OneLake calculated columns cannot be used in relationships.

Does Direct Lake on SQL support calculated columns?

No. The preview calculated-column capability described here applies to Direct Lake on OneLake, not Direct Lake on SQL.

When should I use a measure instead of a Direct Lake calculated column?

Use a measure for aggregations, ratios, or other calculations that need to respond to report filter context. Calculated columns are for row-level values.