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

Adding new "Date" Column using Date Interface

EKBS83
7 - Meteor

Hi all,

 

I've been using the date interface tool to update dates in filters in my workflows with no issues at all.

I can't seem to get this to work in a formula tool.

 

I want the user to be able to select "today's date" in the interface, and for a new column to be created later in my workflow that applies this date to all rows.  This sets an anchor date for a number of outputs which are uploaded to a server to use as data sources for Tableau.

 

I've tried doing this in two main ways with some variations in each:

 

1 - Formula tool was configured as DateTimeToday()

a) action tool "Formula" highlighted - existing DateTimeToday() formula overrode date selection by user (apparent when server time ticked over to next day in Singapore when I am in UK).

b) action tool "@expression - value = "Date" highlighted - returned an error

 

2 - Formula tool was configured as "2021-11-04"

a) action tool "Formula" highlighted only - value remained the same regardless of date selected in action tool

b) action tool "@expression - value = "Date"" highlighted - value remained the same regardless of date selected in action tool

c) I tried b) with replace string and this also did not work

 

Hope the community can help here - feels like it should be a really simple solution i just can't see the wood for the trees anymore!

 

EKBS83_0-1636101988562.png

 

ATTEMPT 1

 

EKBS83_5-1636102674702.png

 

 

EKBS83_6-1636102690097.png

 

OR

 

EKBS83_7-1636102724266.png

 

 

ATTEMPT 2

 

EKBS83_1-1636102433659.png

EKBS83_4-1636102543511.png

 

 

EKBS83_2-1636102476284.png

 

with or without below

 

EKBS83_3-1636102502928.png

 

 

 

 

 

 

 

2 REPLIES 2
ArtApa
Alteryx
Alteryx

Hi @EKBS83 - There is a couple of ways how you can do that, with or without the Action tool:

 

ArtApa_0-1636104353262.png

 

EKBS83
7 - Meteor

This is great thank you!  Looks like I both over-simplified and over-complicated either of my efforts!

 

 

 

Labels