Calculated tables and visual calculations
Choose the scope of a calculation
A calculated table is a model object defined by a DAX table expression, not a measure returning a table to a card. In Import models its contents are materialized on model processing, and report slicers do not rebuild it. Its columns can participate in relationships if keys and cardinality are appropriate. A visual calculation is authored for one visual and uses the fields and aggregated values present there. Its definition lives with that visual, not as a reusable semantic-model measure. Use the clean V007 Import model from labs/relationships/README.md with FactSales, DimProduct and DimRegion and active single-direction relationships. The five order lines are dated January 5–7, 2026; all amounts are USD. Quantity, price and cost are validated nonblank numbers. Use a disposable local copy and clear unrelated filters. Each formula belongs in the explicitly named editor, with English comma separators. All outputs are expected, not observed in Power BI; native DAX/M NOT RUN.
Example 1: make a model table
Select New table and enter:
Region Review =SELECTCOLUMNS(DimRegion, "Review Region", DimRegion[Region])SELECTCOLUMNS takes a table and name/expression pairs; the expression is evaluated for each input row. The result contains two rows, North and South, in no guaranteed order. Leave the new table disconnected and confirm no relationship was automatically created. A slicer on the original DimRegion does not rebuild Region Review; a slicer on the disconnected table does not filter FactSales. This diagnostic table duplicates data deliberately for learning, not as a recommended production region dimension. A table may be useful for a distinct modeling purpose, but avoid copies with no defined grain or relationship plan.
Example 2: a running total on a visual
Create a table with DimRegion[Region] and the Chapter 09 [Total Revenue] measure, sorted by Region ascending, one row per region, no totals row. If your Desktop build exposes New visual calculation on this supported visual, enter:
Running Region Revenue = RUNNINGSUM([Total Revenue], ROWS)Expected visible results: North 104, South 200. If South is the only selected region, the sole row should be 96. Reverse the region order and the expected sequence becomes South 96, North 200. The total depends on the order and members of the visual, not on time or geographic proximity. It is an illustration of scope, not a useful time-series KPI. If the feature is unavailable, use the worksheet and mark native execution NOT RUN.
What changes and when
For this Import lab: source or M custom column values become part of the loaded table; DAX calculated columns and calculated tables are persisted model data; measures respond to query filters; visual calculations respond to the visual matrix. A calculated table based on DirectQuery data is not a live copy that updates on each source query. Composite/live connections and permissions may restrict creating model objects. Visual calculations have build-specific visual/function limitations and cannot be reused as model measures. Do not assume every feature can filter, sort or serve as a slicer; use the documented limitations for the installed build.
Avoid duplicating business definitions
Use a shared model measure for Total Revenue so multiple reports can agree on it. Use a visual calculation for a display-specific running total when supported, with a documented sort and reset policy. Use a table only for a justified modeling purpose. Test changes in visual layout and filters, and distinguish actual observed results from predicted ones. No performance, license or compatibility claim is established by the offline exercise.
Practice
Complete worksheet task 3: predict the calculated table row count, the behavior of its disconnected slicer, and the visual running sums in both orders. Choose a placement for a shared KPI and a row-level grouping.
Official reading
tables · select · visual · options · directquery. Documentation checked; exact installed build and native execution pending.