Visual calculations Functions


Visual calculations functions can only be used in Power BI visual calculations and cannot be used in regular measures, calculated columns, or calculated tables.

The visual calculation functions have an axis parameter that is defined in the VISUAL SHAPE query syntax produced by the visual calculation feature in Power BI.
Function Description
COLLAPSE Retrieves a context with removed detail levels compared to the current context. With an expression, returns its value in the new context, allowing navigation up hierarchies and calculation at a coarser level of detail.
COLLAPSEALL Retrieves a context with removed detail levels along an axis. With an expression, returns its value in the new context, enabling navigation to the highest level on the axis and is the inverse of EXPANDALL.
EXPAND Retrieves a context with added levels of detail compared to the current context. If an expression is provided, returns its value in the new context, allowing for navigation in hierarchies and calculation at a more detailed level.
EXPANDALL Retrieves a context with added detail levels along an axis compared to the current context. With an expression, returns its value in the new context, enabling navigation to the lowest level on the axis, and is the inverse of COLLAPSEALL.
FIRST The First function retrieves a value in the Visual Calculation data grid from the first row of an axis.
LAST The Last function retrieves a value in the Visual Calculation data grid from the last row of an axis.
MOVINGAVERAGE Calculates a moving average along the specified axis of the Visual Calculation data grid.
NEXT The Next function retrieves a value in the next row of an axis in the Visual Calculation data grid.
PREVIOUS The Previous function retrieves a value in the previous row of an axis in the Visual Calculation data grid.
RANGE Retrieves a range of rows within the specified axis, relative to the current row.
RUNNINGSUM Calculates a running sum along the specified axis of the Visual Calculation data grid.

Last update: Dec 16, 2024   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo

2018-2024 © SQLBI. All rights are reserved. Information coming from Microsoft documentation is property of Microsoft Corp. » Contact us   » Privacy Policy & Cookies

Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

Row Context

This expression is executed in a Row Context. Click to read more.

Iterator

Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

Not recommended

The use of this parameter is not recommended.

Deprecated

This function is deprecated. Jump to the Alternatives section to see the function to use.

Volatile

A volatile function may return a different result every time you call it, even if you provide the same arguments. Click to read more.

Deprecated

This parameter is deprecated and its use is not recommended.

DirectQuery compatibility

Limitations are placed on DAX expressions allowed in measures and calculated columns.
The state below shows the DirectQuery compatibility of the DAX function.

Contribute

Want to improve the content of RUNNINGSUM? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.