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
ChloeDL
Frequent Visitor

Cumulative value - show total - expenditures

Good mornign, 

 

We currently have a table showing the cumulative budgets per year but we would like to represent the data in a way that shows the total budget (end result of cumulative) - the yearl expenditures. See table below. 

 

Fiscal Year Budget ExpendituresFree balance 
2022-202320050150
2023-202415050100
2024-20251005050
2025-202650500
2026-2027050-50

 

What formula would help us achieve that?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ChloeDL ,

 

You can use the following formula in Power BI Desktop to show the total budget (end result of cumulative) - the yearly expenditures:

Total Budget = LASTNONBLANK('Table'[Budget],1) - LASTNONBLANK('Table'[Expenditures],1)

This formula will return the difference between the last non-blank value in the 'Budget' column and the last non-blank value in the 'Expenditures' column.

vstephenmsft_0-1689730374837.png

 

If the above is not what you want, please tell me what your raw data is and what your expected result will look like. It is best if one table is the original table and one table is the table of the desired result.

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @ChloeDL ,

 

You can use the following formula in Power BI Desktop to show the total budget (end result of cumulative) - the yearly expenditures:

Total Budget = LASTNONBLANK('Table'[Budget],1) - LASTNONBLANK('Table'[Expenditures],1)

This formula will return the difference between the last non-blank value in the 'Budget' column and the last non-blank value in the 'Expenditures' column.

vstephenmsft_0-1689730374837.png

 

If the above is not what you want, please tell me what your raw data is and what your expected result will look like. It is best if one table is the original table and one table is the table of the desired result.

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

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.