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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Having trouble calculating a running total with regular 'corrections'

I am tracking a stock. Rough movement to and from the stock gets reported every 12 hours, and there is an irregular stocktake.

 

I want to calculate a running total, which then gets updated when there is a stocktake survey performed.

 

misterpok_1-1670815368492.png

 

I believe I am getting caught up in my 1to1 and 1tomany relationships leading to me using things like LASTNONBLANK incorrectly, and not able to LOOKUPVALUE within my IF statements. I've also attempted to calculate a new column to track the previous day's result, but I run into circular depencies when I try and update that with the stocktake result.

Could someone please advise a good approach to this?

Sample dataset with some of my more basic attempts at calculation in this WeTransfer. https://we.tl/t-TELsXTudH5

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

To my knowledge, your requirement could not be realized currently. Because DAX functions are not support loop call.

 

Best regards,
Community Support Team_Binbin Yu

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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