Skip to main content
Version: Version 22

Visual Calculations in Embedded Power BI Dashboards

You can now add visual calculations to embedded Power BI dashboards in the Insights App and on the Dashboard tab in the Portfolio App. Visual calculations let you enrich visuals with additional computations (such as running sums, moving averages, or custom DAX expressions) without modifying the underlying data model.

Visual calculation being added to a Power BI visual in an embedded dashboard


Adding a visual calculation​

  1. Open a dashboard in edit mode in the Insights App or the Portfolio App Dashboard tab.
  2. Right-click on a visual (table or chart).
  3. Select New visual calculation.
  4. Choose a built-in template, or select Custom to write a DAX expression.

The calculation appears as a new column or value in the visual.


Available templates​

TemplateDescription
Running sumCumulative total across rows
Moving averageAverage over a sliding window
Percent of parentValue as a percentage of the parent group
Percent of grand totalValue as a percentage of the overall total
Versus previous / nextRow-to-row comparison

Templates can be customized by adjusting the fields and parameters.


Custom calculations​

For scenarios beyond the templates, write a DAX expression directly. Example:

Profit = [Sales Amount] - [Total Cost]

Visual calculations operate on the aggregated data already displayed in the visual, so you do not need to add aggregation functions like SUM unless your scenario specifically requires them.

For a full function reference, see the Microsoft Learn Power BI documentation.