Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Ramenboi11
New Member

Cumulative Measure

I have a column of an original budget revenue which I want to sum cumulatively with a column of budget change orders for each month, I can't find any helpful Formulas.

 

I can't show the real data for privacy but I wrote a table below with fake numbers that is what my matrix looks like right now.

 

Month.     Org. budget.    Change Order 

                200000.             00

jan.           00.                     -1600

feb           00.                      +17000

mar          00.                     +13000

2 ACCEPTED SOLUTIONS
techies
Super User
Super User

Hi @Ramenboi11 can you please check if this is as required

 

Cumulative Budget =
VAR SelectedDate = MAX('Date'[Date])
VAR InitialBudget =
    CALCULATE(
        MAX(BudgetData[OriginalBudget]),
        FILTER(
            ALL(BudgetData),
            NOT(ISBLANK(BudgetData[OriginalBudget]))
        )
    )
VAR TotalChange =
    CALCULATE(
        SUM(BudgetData[ChangeOrder]),
        FILTER(
            ALL('Date'),
            'Date'[Date] <= SelectedDate
        )
    )
RETURN
    InitialBudget + TotalChange
 
techies_0-1748018391397.png

 

― Power BI | Microsoft Fabric | PL-300 | DP-600 | Blog: medium.com/@cseprs_54978

View solution in original post

rohit1991
Super User
Super User

Hi @Ramenboi11 

To calculate the cumulative budget in Power BI, you need to start by identifying the original budget amount, which typically appears only once (often at the start or in a separate row).

Then, create a DAX measure that adds this original budget to the cumulative sum of monthly change orders. This can be done by using a measure that retrieves the maximum original budget from non-blank and non-zero entries, and then another measure that sums the change orders up to the current month.

 

To ensure proper ordering, especially if your month column is text (like "Jan", "Feb"), create a separate column that assigns a numerical value to each month and use it to sort the visual.

The final measure will calculate the cumulative budget by adding the initial budget to the sum of all change orders up to the selected month, allowing you to track how your budget evolves over time.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

View solution in original post

8 REPLIES 8
rohit1991
Super User
Super User

Hi @Ramenboi11 

To calculate the cumulative budget in Power BI, you need to start by identifying the original budget amount, which typically appears only once (often at the start or in a separate row).

Then, create a DAX measure that adds this original budget to the cumulative sum of monthly change orders. This can be done by using a measure that retrieves the maximum original budget from non-blank and non-zero entries, and then another measure that sums the change orders up to the current month.

 

To ensure proper ordering, especially if your month column is text (like "Jan", "Feb"), create a separate column that assigns a numerical value to each month and use it to sort the visual.

The final measure will calculate the cumulative budget by adding the initial budget to the sum of all change orders up to the selected month, allowing you to track how your budget evolves over time.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Hi @Ramenboi11 ,

If a community member’s response addressed your query, please mark it as Accepted Answer and click Yes if you found it helpful.

Should you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!

Hi @Ramenboi11 ,

we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.

 If the response addressed by the community member for  your query, please mark it as Accept Answer and click Yes if you found it helpful.

 

Thank You.

Hi @Ramenboi11 ,

If the information is helpful, please accept the answer by clicking the "Upvote" and "Accept Answer" on the post. If you are still facing any issue, please let us know in the comments. We are glad to help you.

 

We value your feedback, and it will help us to assist others who might have a similar query. Thank you for your contribution in enhancing Microsoft Fabric Community Forum.

Ashish_Excel
Super User
Super User

Hi,

I am sure that table should have atleast 3 columns - Date, budget amount and change amount.  Share a sample of the raw data table withthese 3 columns.

techies
Super User
Super User

Hi @Ramenboi11 can you please check if this is as required

 

Cumulative Budget =
VAR SelectedDate = MAX('Date'[Date])
VAR InitialBudget =
    CALCULATE(
        MAX(BudgetData[OriginalBudget]),
        FILTER(
            ALL(BudgetData),
            NOT(ISBLANK(BudgetData[OriginalBudget]))
        )
    )
VAR TotalChange =
    CALCULATE(
        SUM(BudgetData[ChangeOrder]),
        FILTER(
            ALL('Date'),
            'Date'[Date] <= SelectedDate
        )
    )
RETURN
    InitialBudget + TotalChange
 
techies_0-1748018391397.png

 

― Power BI | Microsoft Fabric | PL-300 | DP-600 | Blog: medium.com/@cseprs_54978
pankajnamekar25
Super User
Super User

Total Org Budget =

CALCULATE(

    SUM(BudgetData[OrgBudget]),

    FILTER(BudgetData, NOT(ISBLANK(BudgetData[OrgBudget])) && BudgetData[OrgBudget] <> 0)

)

Create the Cumulative Measure

Cumulative Budget =

VAR OrgBudget =

    CALCULATE(

        SUM(BudgetData[OrgBudget]),

        FILTER(BudgetData, NOT(ISBLANK(BudgetData[OrgBudget])) && BudgetData[OrgBudget] <> 0)

    )

 

VAR CumulativeChange =

    CALCULATE(

        SUM(BudgetData[ChangeOrder]),

        FILTER(

            ALLSELECTED(BudgetData),

            BudgetData[Month] <= MAX(BudgetData[Month])

        )

    )

 

RETURN

OrgBudget + CumulativeChange

 

Thanks,
 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

I tried This solution however the column just shows how much each change order was for what I wanted to see was

        Change.       Cumulative Budget

jan    0.                 2000

feb     +500.          2500

mar.   -750.          1750

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.