I have three years of data, and I need to add a conditional column based on [Date] that will return a TTM period so I can filter. I want TTM current year (CY), TTM prior year (PY), and TTM (2Y) two years ago. And if possible, I would like it to be dynamic so that it will update. I have tried a couple of different formulas but without success.
So the periods would look like this:
CY = TTM Current Year - January 1, 2022 - December 31, 2022
PY = TTM Last Year - January 1, 2021 - December 31, 2021
2Y = TTM Two Years - January 1, 2020 - December 31, 2020
Thanks for reading and any assistance !