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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
akkitek
Helper III
Helper III

Creating a measure to calculate cumulative total in table visual

Hey Everyone,
I am trying to create a measure to calculate a cumulative total in of a summerized table. I created a measure called "Cumulative Budget" to get the cummulative totals of the budget column but it doesn't seem to work. My desired result is to get 10,800 for 8/31, 34,560 for 9/30 and so on. 

akkitek_1-1663621849730.png

 

Here's the link to the test file: https://drive.google.com/file/d/1zrqIqMyksFj-x6hggzSKKP9Xae_sIKMf/view?usp=sharing

Any help is appreciated. Thanks!


 

 

 

1 ACCEPTED SOLUTION
Seanan
Solution Supplier
Solution Supplier

Hi @akkitek 

Try this code:

Budget Running Total = 
CALCULATE(
	SUM('Baseline_Variance'[Budget]),
	FILTER(
		ALLSELECTED('Baseline_Variance'[Baseline End Date]),
		ISONORAFTER('Baseline_Variance'[Baseline End Date], MAX('Baseline_Variance'[Baseline End Date]), DESC)
	)
)

View solution in original post

2 REPLIES 2
Seanan
Solution Supplier
Solution Supplier

Hi @akkitek 

Try this code:

Budget Running Total = 
CALCULATE(
	SUM('Baseline_Variance'[Budget]),
	FILTER(
		ALLSELECTED('Baseline_Variance'[Baseline End Date]),
		ISONORAFTER('Baseline_Variance'[Baseline End Date], MAX('Baseline_Variance'[Baseline End Date]), DESC)
	)
)

This worked! Thanks!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.