Forum Discussion
get value from Previous row
- 8 years ago
I think this calculated column would work.
See the attached sample file as well
Calculated Column = VAR PreviousRow = TOPN ( 1, FILTER ( Table1, Table1[Month] < EARLIER ( Table1[Month] ) && Table1[Employee] = EARLIER ( Table1[Employee] ) ), [Month], DESC ) VAR PreviousValue = MINX ( PreviousRow, [Sales] ) RETURN Table1[Sales] + PreviousValue
Hi;
My problem is a very closed I've find on diff forums, but not exactly the same. So:
I want to calculate [start current daily stock] with the formula:
[start current daily stock] of the current day = [start current daily stock] of the previous day + [delivery] of the previous day - [daily consumption] of the previous day.
Please note that the value of [start current daily stock] for Today comes from an another source, so it's not calculated with the formula than further days.
Does Anybody to help me to solve my problem ?
Thx very mych in advance.
Hi,
I have solved a similar question in the attached files.
Hope this helps.
- zbikra6 months agoFrequent Visitor
Hello Ashish,
Thanks very much for your help. It's just I'm looking for !
- Ashish_Mathur6 months agoSuper User
You are welcome.