Forum Discussion
RogerSteinberg
Post Patron
7 years agoLookup previous value based on criteria from another column
Hi All, I would like to get the value that preceedes based on the earlier date. The value needs to also match the group number. My table looks like that: +------------+-------+-------+------...
- 7 years ago
Hello,
You can try the following modification marked with blue:
RateChange = CALCULATE( VALUES(table[Rate]), FILTER( ALL(table), table[date] < EARLIER(table[date]) && table[group] = EARLIER(table[group]) ) )Regards,
ElenaN
- 7 years ago
You may refer to the post below.
ElenaN
Resolver V
7 years agoHello,
You can try the following modification marked with blue:
RateChange =
CALCULATE(
VALUES(table[Rate]),
FILTER(
ALL(table),
table[date] < EARLIER(table[date]) && table[group] = EARLIER(table[group])
)
)Regards,
ElenaN