Articles in this section
Category / Section

How do I calculate Cumulative Values in Bold BI®?

Published: May 10, 2023

To views the cumulative values in Bold BI®, the platform includes an expression designer with built-in functions that allow you to create your own expression columns. Let's explore how to calculate the cumulative sum in Bold BI®.


Calculating Cumulative SUM

  1. Configure the widget with the required columns and click on Add Expression to open Expression Designer window.
  2. In Expression Designer, choose the RUNNINGSUM function from the Functions list and choose the required column. Once saved, new column will be added to the datasource.create-runningsum-exp.pngExpression Editor with Running Sum calculation
  3. Now bind the new added column from the measures to the required widget and you can see the RUNNINGSUM results.       bind-running-sum.pngRunning Sum Expression column added in Grid widget
Bold BI® has supported below built-in functions for Cumulative value calculation:
FunctionsSyntax, Descriptions & Examples
RUNNINGCOUNT
    Syntax:
    RUNNINGCOUNT(aggregate_expression)

    Description:
    Returns the running count of each row.

    Example:
    RUNNINGCOUNT(MAX([OrderID]))

RUNNINGAVG
    Syntax:
    RUNNINGAVG(aggregate_expression)

    Description:
    Returns the running average of each row.

    Example:
    RUNNINGAVG(MAX([UnitsInStock]))

RUNNINGMAX
    Syntax:
    RUNNINGMAX(aggregate_expression)

    Description:
    Returns the running maximum values of each row.

    Example:
    RUNNINGMAX(SUM([UnitsInStock]))

RUNNINGMIN
    Syntax:
    RUNNINGMIN(aggregate_expression)

    Description:
    Returns the running minimum values of each row.

    Example:
    RUNNINGMIN(SUM([UnitsInStock]))

RUNNINGSUM
    Syntax:
    RUNNINGSUM(aggregate_expression)

    Description:
    Returns the running sum values of each row.

    Example:
    RUNNINGSUM(MAX([UnitsInStock]))

Additional References:
Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
SM
Written by Sammanasu Mary Jesuraj
Updated Aug 01, 2024
Comments (0)
Please  to leave a comment
Access denied
Access denied