Hi All!
I want to set the column name as a variable, in this case a constant (I think this is how Alteryx terms it).
| | Account Number | 27/01/2023 | 28/01/2023 | 29/01/2023 | 30/01/2023 |
| Total Sales | 123 | 10 | 12 | 12 | 123 |
| Total Expenses | 234 | 32 | 15 | 16 | 234 |
| Total Income | 345 | 33 | 84 | 5 | 345 |
Basically, I want my constant to be [30/01/2023]. I'm currently transferring data from a trial balance into this spreadsheet, I insert my Account Number values into [30/01/2023], then using the Find and Replace tool to match the columns and populate into 30/01/2023 with the real values (above). There are, of course a lot of expressions and formulas to total and subtotal a bunch of columns in the process.
HOWEVER, down the line, when I want the same for the the next date, I really don't want to have to edit every single forumula I have and update the old date ([30/01/2023]) with the new one.
I want to know if there is a way to set a variable/constant as New_Date = [30/01/2023]. I would then use New_Date in my expressions and formulas, and would only require to change the value of New_Date at the beginning of the workflow when I need to move to the next desired column!