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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PersephoneK
New Member

Cumulative sum has strange behavior on table with other columns

Hello, I just created a "cumulative total" column and it works fine when I add it to a table with just the dates and the original total values (by date). But when I add another column that is a completely different metric, the cumulative metric gives the same value as the original total value.  See screenshots below of the two versions of the table (with and without the extra column (Total Time).  I have one page level filter applied in the filter pane, and a Year filter applied for the page (top corner slicer). 

 

This is the formula for my Cumulative total: 

Distance Cumulative = CALCULATE(Data_Master[Distance Total], FILTER( ALLSELECTED( Data_Master[Date] ) , 'Data_Master'[Date] <= MAX('Data_Master'[Date] )))

 

 

PersephoneK_0-1647965784883.png

Any help would be appreciated! Thank you!

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

I think that the Time is being added to the filter context, try removing that filter like

Distance Cumulative = CALCULATE(Data_Master[Distance Total], REMOVEFILTERS(Data_Master[Time in hours]), ALLSELECTED( Data_Master[Date] ) , 'Data_Master'[Date] <= MAX('Data_Master'[Date] ))

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

I think that the Time is being added to the filter context, try removing that filter like

Distance Cumulative = CALCULATE(Data_Master[Distance Total], REMOVEFILTERS(Data_Master[Time in hours]), ALLSELECTED( Data_Master[Date] ) , 'Data_Master'[Date] <= MAX('Data_Master'[Date] ))

That worked brilliantly! Thank you!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors