Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Dynamic Column Names

Taxautomation
6 - Meteoroid

We only take into consideration work weekdays during the month. These days are numbered from the start of the start to the end of the month. For example, October has 23 days in which a daily report is needed. I want my columns to be dynamic relative to the day of the month we are in. 

 

I have data that looks like this, where [ABC] is yesterday, and [XYZ] is the day before yesterday.

XYZ 3ABC 4
35
27

 

Ideally, my output would look something like this. Where I don't need to do manual input to change column names.

Workday 06_9-30-24Workday 07_ 9-30-24
35
54

 

If it takes holidays into consideration even better.

1 REPLY 1
KGT
13 - Pulsar

Look into Business Days solutions. There are a couple of macros floating around for it

 

The way I see this being successful is by labelling the day of the month and essentially using a lookup table. You will need to connect to your local holidays to filter that out. Either an API, or just download and parse from a holiday site.

 

I've attached a workflow with some techniques that I would use. It is definitely not a finished product, just a couple of ideas. (and a dynamic rename will go on the end).

Labels
Top Solution Authors