Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Create new date column with updated data when data run the flow daily

h12
8 - Asteroid

I have an alteryx flow created which creates a table like this (from a transpose tool):

 

NameValue
Topic 21234
Topic 35634
Topic 43456

 

Please could you help me work out how I...

  • Updating the 'Value' title to today's date
  • If I run the flow again tomorrow, it creates another column with the new set of values with tomorrows date:
Name28/06/202329/06/2023
Topic 212344456
Topic 356342345
Topic 434564567

 

Many thanks!

3 REPLIES 3
binuacs
21 - Polaris

@h12 In your use case you need a backup file to save the records after each run.  Attaching a sample workflow for your reference

 

Screenshot 2023-06-28 125505.png

 

In this example I created a backup file with yesterday's date as the heading, the workflow creates the field heading with today's date and appends it to the existing file

 

 

DawnDuong
13 - Pulsar
13 - Pulsar

Hi @h12

To change the column name to today's date, you can use the Dynamic rename Tool, under "Formula" mode (see below)

Dynamic Rename.PNG

 

If I understand you correctly, you want to append the next day's column outputs to the previous days? That can be done by Join Tool.

 

Dawn.

 

P/S: Maybe I am overthinking it, usually when we want to have different columns for different days, we usually want to summarize obtain summary statistics with the Cross Tab (instead of using Transpose Tool). In such a scenario, you can change data at the input files by appending new records daily and process the file at one go. Just a though.

 

h12
8 - Asteroid

Thank you both! Both solutions worked well.

 

Dawn - good point re Cross Tab, I think i'll try that as it can append a new record automatically.

Labels