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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors