Calculated Columns, Calculated Tables, and Measures in Power BI

Three digital objects distinguish a calculated column, a calculated table, and a measure.

Use a calculated column when each row needs a value you can group or filter by. Use a calculated table when the model needs a new set of rows. Use a measure when a value should recalculate as readers filter the report. In Power BI, the decision comes down to what shape the result needs and when it should change.

Use a calculated column for a value on each row

Suppose your orders have an order date and a ship date. A fulfillment report needs a category such as Same Day or Later for each order. A calculated column can give each order its category and let you put that category in a slicer, on an axis, or in a filter.

Calculated columns are evaluated for the rows in the table. In an Import model the calculated values are stored, so additional columns can increase model size. When the logic is part of cleaning or preparing the source, check whether the transformation belongs in Power Query or the source system instead.

Use a calculated table when you need model rows

A calculated table is a separate table defined with DAX. For example, a dedicated date table can give a model a consistent calendar for filtering order data. Once the table exists, you can relate it to other tables and put its fields in report visuals. If both order date and ship date matter, decide which one the default calendar should filter. Test a shipment ordered at the end of one month and shipped in the next so the team can check which period it appears in.

A calculated table is not rebuilt each time a reader changes a slicer. If you need to show a filtered list of the existing order rows, use a visual that responds to the slicer. If you need a model object shared across reports, discuss whether the model, the source, or a common data preparation layer should own it.

Use a measure for a number that depends on filters

A measure is calculated for the current filter context. A Total Sales measure answers the question for whichever months, customers, or regions the visual and slicers select. It returns another result when a reader changes those selections.

If a percentage changes when the reader selects a region, that is often the behavior you want. If the amount is the same for every region when it ought to change, test the model relationship before replacing the measure with another calculation.

Try the three choices on the same example

Consider a report that tracks late shipments. You might use a column to assign a shipment status, a date table to group results by fiscal period, and a measure to calculate the share of orders shipped after the promised ship date. Each object serves a distinct purpose.

For the late share, decide which rows count in the denominator. Suppose a region has twenty shipped orders and four went out after their promised ship date. Its late share is twenty percent. If the report also shows orders waiting to ship, keep them out of that calculation unless business owners agree on a separate definition. Verify that changing regions uses the appropriate denominator each time.

Check a known order first. Then check a small date range and a second region. A row-level classification should stay attached to the same order. The measure should change as different orders enter or leave the current selection.

Keep the model easier to maintain

Choose the simplest place to calculate a business rule and document who owns it. Write down whether the result should stay attached to a row, be reused as a table, or change when a reader filters the report. Future authors can use that test before moving the logic. Connection and storage modes can affect which options are available, especially with live or DirectQuery models. Microsoft’s calculation options guide compares these options and explains where the results live. The Power BI beginner’s guide shows how the model fits into the reporting workflow. If readers need a recurring copy of the finished report, PBRS can schedule a supported export to an approved destination. Check the delivered measure against the same region and period you used to validate it.

Calculated Columns, Calculated Tables, and Measures in Power BI
3:46
Discussion