Forum Discussion
Rigoleto
8 years agoHelper II
get value from Previous row
Need a funtion or logic to read a previous row, for instance: How can you see Do I need is to sum up the previos record and build a new column with those values Ap...
- 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
Ashish_Mathur
3 years agoSuper User
Hi,
Share the download link of the working Excel file which you showed on Sunday. I need to check something in the formulas there.
Anonymous
3 years agoNot applicable
- Ashish_Mathur3 years agoSuper User
I really do not understand. How have you got the figure of 8613088 in the visual - in the Table, the figue for July is 7849667. What is the logic of picking up the budgeted sales figures? Is it that when the AR value is 0, then tak the budgeted sales figure? Please give a proper explanation rather than leaving thing to mere guess work.