top of page

Visual Level Calculations in Power BI

  • mandarp0
  • Apr 10, 2024
  • 3 min read

Updated: Sep 4, 2025

The first excitement of interacting with Power BI  and realizing its possibilities is shared by many Power BI users. But that excitement may fade away fast when they have to create their first DAX measure. It can be very difficult to understand ideas like filter context, row context, and context transition, particularly for users who don't regularly code. The new visual level calculations saves the day in this situation by making DAX simpler for all users!

What are Visual Level Calculations?

A new, user-friendly method for creating DAX formulas directly within Power BI graphics is introduced via visual level calculations. These calculations remove the complexity of standard DAX, enabling users to complete routine operations like running totals, moving averages, and comparisons with a few clicks thanks to a simplified interface and useful templates.

How to Add a Visual Level Calculation:

Start by enabling Visual Calculation in preview features


Home Tab: In the Calculations group, click New calculation.



Formula Bar: At the top, you’ll see your visual. At the bottom, you can add your calculation.



Templates for Common Calculations


  1. Running sum: calculates the sum of values, adding the current value to the preceding values. Uses the RUNNINGSUM function.

  2. Moving average: calculates the average of a set of values in a given window by dividing the sum of the values by the size of the window. Uses the MOVINGAVERAGE function.

  3. Percent of parents : calculates the percentage of a value relative to its parent. Uses the COLLAPSE function.

  4. Percent of grand total : calculates the percentage of a value relative to all values, using the COLLAPSEALL function.

  5. Average of children : calculates the average value of the set of child values. Uses the EXPAND function.

  6. Versus previous : compares a value to a preceding value using the PREVIOUS function.

  7. Versus next : compares a value to a subsequent value using the NEXT function.

  8. Versus first : compares a value to the first value, using the FIRST function.

  9. Versus last : compares a value to the last value using the LAST function.


Implementation in Power BI

Implementing visual-level calculations in Power BI involves leveraging features such as calculated columns, measures, and DAX expressions. Users can create calculated columns directly within the data model to derive new fields based on existing data. These calculated columns serve as dynamic entities, recalculating as data updates occur, ensuring the integrity and relevance of analyses.


Furthermore, measures, defined using Data Analysis Expressions (DAX), enable users to perform calculations based on aggregated data. By crafting measures that operate at the visual level, users can unlock a myriad of analytical possibilities. Whether computing ratios, percentages, or custom aggregations, measures empower users to extract actionable insights directly within their visualizations.



Significance in Data Analysis

Visual-level calculations offer several compelling advantages for data analysis:


  1. Granularity: Visual-level calculations provide granularity, allowing users to perform computations specific to individual visualizations. This granularity fosters deeper insights and facilitates targeted analysis.

  2. Flexibility: By enabling calculations within visuals, Power BI users gain unparalleled flexibility in their analytical endeavors. Whether analyzing trends, comparing subsets of data, or deriving custom metrics, visual-level calculations adapt to diverse analytical requirements.

  3. Interactivity: Visual-level calculations enhance interactivity, empowering users to interactively explore data and uncover insights in real-time. This interactive capability fosters a dynamic analytical environment, where users can iterate on analyses and gain deeper insights with ease.


In conclusion, visual-level calculations represent a cornerstone of advanced data analysis in Power BI. By providing granularity, flexibility, interactivity, and customization, visual-level calculations empower users to elevate their analytical capabilities and derive deeper insights from their data. As organizations continue to embrace data-driven decision-making, the importance of visual-level calculations in Power BI cannot be overstated. Embracing this capability unlocks a world of possibilities, propelling data analysis to new heights of effectiveness and efficiency. 

For expert data solutions tailored to your business, contact us at Numlytics. Transform your data into actionable insights! 

 
 
 
bottom of page