Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Historical TIme Series

adnuta1
5 - Atom

Hi All - I have a table from SF which tracks changes to certain fields; the table includes an account ID, an edit date, the old value, the new value, and the current value.

I want to create a snapshot table (i.e. the value as of a certain date) using this data. My thought was to work backwards from the current values to display the old values for dates equal to or before the edit date.

 

Data:

Account IDEdit DatePrevious ValueNew ValueCurrent Value
AA1236/22/20 12:00 AMRyan FitzpatrickSam DarnoldSam Darnold
AA1236/21/20 12:00 AMMark SanchezRyan FitzpatrickSam Darnold
AB1236/21/20 9:00 PMEli ManningDaniel JonesDaniel Jones
AB1236/21/20 2:00 AMKerry CollinsEli ManningDaniel Jones
AA1236/18/20 12:00 AMChad PenningtonMark SanchezSam Darnold
AA1236/10/20 12:00 AMJoe NamathChad PenningtonSam Darnold
AB1236/20/20 12:00 AMPhil SimmsKerry CollinsDaniel Jones
AB1236/1/20 12:00 AMFran TarkentonPhil SimmsDaniel Jones

 

Desired Output:

Account6/1/20206/2/20206/3/20206/4/20206/5/20206/6/20206/7/20206/8/20206/9/20206/10/20206/11/20206/12/20206/13/20206/14/20206/15/20206/16/20206/17/20206/18/20206/19/20206/20/20206/21/20206/22/20206/23/2020
AA123Joe NamathJoe NamathJoe NamathJoe NamathJoe NamathJoe NamathJoe NamathJoe NamathJoe NamathJoe NamathChad PenningtonChad PenningtonChad PenningtonChad PenningtonChad PenningtonChad PenningtonChad PenningtonMark SanchezMark SanchezMark SanchezMark SanchezRyan FitzpatrickSam Darnold
AB123Fran TarkentonPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsPhil SimmsKerry CollinsDaniel JonesDaniel Jones

 

 

Any thoughts? 

3 REPLIES 3
RolandSchubert
16 - Nebula
16 - Nebula

Hi @adnuta1 ,

 

it looked easy at first, but had some special challenges,  I've attached a sample workflow.

.

Let me know, if it works for you.

 

Best,

 

Roland

JonMcMillin
8 - Asteroid

Hi @adnuta1,

 

In general I would suggest learning to read the structure of the data you are receiving, however if you are giving the snapshot table to a less technical user you can try the attached workflow.

 

Note there are 2 tools with hard coded dates, that you may need to make dynamic if you are looking to run regularly based on your business requirements.

 

In high level logic the workflow generate rows between a start and end date for each account, and then joins this onto the data stream and then leverages a cross tab tool to get the dates as columns.

 

Capture.PNG

 

EDIT: @RolandSchubert  beat me too it 🙂 glad we have similar approaches

 

adnuta1
5 - Atom

Thanks Roland; quick follow up (hopefully). I have another table showing all the quarterbacks for each team at the moment and I'd like to append that table to the workflow which you shared if the team isnt in the original table with the assumption being that if it isnt in the first table it hasnt changed. 

Labels