I have the following table:
Year test is the list of previous year:
=SUMX(Datasrc;Datasrc[Year]-1)
How do I get something similar for "Calculated field 1
"? In other words, I want to get the previous "Price/kg
" so it match column C, "Year test
".
I have tried with the formula from Find rows relative to current row's value in excel (DAX):
=SUMX(
FILTER(Datasrc; EARLIER([Year]) = [Year] + 1 );
Datasrc[C_Total Asset Per Share]
)
But only get: "Calculation error in measure 'Datasrc'[Calculated field 2]: EARLIER/EARLIEST refers to an earlier row context which doesn't exist."
The column A is [Year]
Calculated field 1
"? In other words, I want to get the "C_Total Asset Per Share
" in Column D to "jump" one row upward so B26 value will be at D25 and B25 will be at D24. see link: i.stack.imgur.com/DCvoI.png Thanks in advance :P – Wizhi