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.
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