Here is another variation that also uses a self-join:
- Calculate next year dates by using addyears().
- Merge (self-join) sales amount where current date matches next year date - it will bring into one row last year sales and current year sales.
yoy-selfjoin.morph (4.0 KB)