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
joshua1990
Post Prodigy
Post Prodigy

Reverse/ cumulative running total

Hello everyone,

 

I am looking for a function that sums up reverse the values - from today to past.

I have a table like that:

ArticleValueDate
0150001.01.2019
0125002.01.2019
0150003.01.2019

 

In the end the result should be something like that:

DateValue
01.01.20191250
02.01.2019750
03.01.2019500

 

 

How would you do that?

This function is not working:

=VAR currentDate = 'Calendar'[Date]
RETURN
CALCULATE (
SUM ( 'Item'[Value] );
FILTER ( ALL ( 'Calendar' ); 'Calendar'[Date]>= currentDate )
)

 

Best Regards

Joshua

4 REPLIES 4
az38
Community Champion
Community Champion

Hi @joshua1990 

try

Measure = calculate(SUM('Calendar'[Value]);FILTER(ALL('Calendar');'Calendar'[Date]>=selectedvalue('Calendar'[Date])))

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Thanks!

is there any chance to do this without SELECTEDVALUE?

Anonymous
Not applicable

@joshua1990 Replace selectedvalue with MAX.

Solution works well, thank you - noticed that it doesn't matter if I have MAX or MIN in place of 'selectedvalue', can't figure out why - any clarification would be helpful...

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!

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.