Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Compare amount of Month year N vs same month year N-1

adina
6 - Meteoroid

Hi, 

 

I am trying to create a column where I have the variation of sales of this month's year vs last year.

ex: 01-2019 vs 01-2020 variation (see attached file)

I tried using a filter to segregate 2 years but can't do that for more than 2 years. thanks a lot!

 

 

2 REPLIES 2
echuong1
Alteryx Alumni (Retired)

This can be achieved using a cross-tab tool to "pivot" your data.

 

This will work for any number of years and is grouped by the month. Hope this helps!

echuong1_0-1596807701954.png

 

adina
6 - Meteoroid

Thanks a lot!!!

Labels
Top Solution Authors