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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
SebSchoon1
Post Patron
Post Patron

Running total with List.Accumulate with calculations

Hello,

 

I have a question concerning a function that I have never used before

 

List.Accumulate. However i think my case can be handled by this function.

Here below de desired logic.

 

SebSchoon1_0-1660725951964.png

Something like a running total but according to informations located in multiple columns.

 

i don't no if it is really understandable 🙂

5 REPLIES 5
lbendlin
Super User
Super User

Yes, that is one of the options to handle your scenario.  Would you mind providing some sample data in usable format?

Hello here the link wetrasnfer with a simple file in which i've made the table as showed previously as if final result from my queries.

 

https://we.tl/t-vA9uZ94EVq 

Thank you for the sample data.  You may also want to provide an index column so that Power BI knows what the row order is. 

Please explain how you link lines 1 and 3.  Is it based on the first positive stock difference?

Hello @lbendlin 

 

Hope you are doing well.

 

Yes the idea is that the value from -5 on first warehouse encounter value+4 then -5 +4 =-1 

 

At that time, value from first warehouse is -1 

 

And the next value in line 4 is 1. 

 

So same way -1 +1 =0

 

Etc 

Hi @lbendlin , wow great,

 

i'll try to prepare this asap ^^

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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 Kudoed Authors