Forum Discussion
running total in calculated column
Hi TheoM
You need to show the structure of your data model and sample data to make things easier for people answering.
What do you mean by 'accumulated stock changes'?? The sum? An example based on your sample data would certainly help.
NewColumn =
CALCULATE (
SUM ( Table1[Stock] ),
FILTER ( Table1, Table1[Date] < EARLIER ( Table1[Date] ) )
)but you provide too little info
Hi AlB,
Thanks for your quick reply!
Here is simplified structure of my fact table. It contains various items which have multiple planned changes. There can be several changes on the same item at the same date (see line 4 and 5). In order to calculate the planned stock level at the date shown on the current row, I want to sum all changes until the date in the current row. The Running Total column shows the desired result. FYI: date format is d-m-yyyy
I hope you can help me with this.