Alteryx Designer Desktop Discussions

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

YoY and WoW calculation

SDCI
7 - Meteor

Can anybody recommend or have an efficient way to calculate Year over Year and Week over Week percent change?

thanks

4 REPLIES 4
pcatterson
11 - Bolide

This will depend greatly on what your data looks like.

 

Could you show some data as a example?

SDCI
7 - Meteor

I'm attaching an example file which contains calculations showing YoY and WoW calculations.  The YoY is based on date divided by 364 days prior and WoW is based on date divided 7 days prior.

 

jdunkerley79
ACE Emeritus
ACE Emeritus

Looking at you example, I would add a record id (using the RecordID tool) and then use a formula tool to create the id for 1 year and 1 week earlier

 

You can then self join twice to get the value at those points.

 

sample attached

SDCI
7 - Meteor

Awesome...that works!  Thanks!

Labels