Hello,
I am trying to reference a column based on a user input when running the Alteryx app.
I have setup a "date" text input that saves into Question.Date and Question.DatePrev
Question.Date = '2023-04-30'
Question.DatePrev = '2023-03-31'
Attached is a sample of my data
In my Formula field, I want to calculate Newfield = [2023-04-30] - [2023-03-31]
Is there any way I can reference these columns using the reference shortcut "%Question.Date%" syntax in the formula tool? User date input will determine what columns are used for subtraction:
e.g. Newfield = [%Question.date%] - [%Question.dateprev%].
Would like to keep in this table format and avoid transposing my data / multi row formulas / then cross tabbing data again. Thanks!
Solved! Go to Solution.
Looks like this might work for what I need:
User | Count |
---|---|
18 | |
15 | |
13 | |
9 | |
8 |