Alteryx Designer Desktop Discussions

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

Dynamically change column headers each day ran

JSheppard98
8 - Asteroid

Hi there,

 

I am wanting to try and change the below which would be column headers for my input data. This would ideally be ran daily, and columns A and B would be the current day, columns C and D would be the next working day (+1 from current day, unsure how to get around skipping weekends as would only want to count "workdays" as Mon-Fri) and then Column E and F (+1 from columns C and D).

 

Is this possible in Alteryx? As I am able to use "DateTimeFormat(DateTimeToday(),'%d/%m')+' Balance'" for columns A and B to rename those but unsure how to proceed with the other columns.

 

Please let me know if you require anything further.

 

JSheppard98_0-1673007597531.png

 

16 REPLIES 16
FinnCharlton
13 - Pulsar

Hello, here is one way of doing this. This will work as long as the workflow is run on a weekday. You can edit the calculations so they say "Movements" when they should

FinnCharlton_0-1673008360825.png

FinnCharlton_2-1673008393902.png

 

 

 

JSheppard98
8 - Asteroid

Hi Finn, thanks for the quick response. This seems to work but fills the rest of the column with the wanted header column. I've used the dynamic rename tool to take field names from the first row of data for these columns I want to dynamically change each workday ran. 

grazitti_sapna
17 - Castor

@JSheppard98 , This is what I figured out as per your requirement.

 

grazitti_sapna_0-1673008913002.png

 

Sapna Gupta
ShankerV
17 - Castor

Hi @JSheppard98 

 

Please find the below expected output.

 

ShankerV_0-1673008906701.png

 

Input was:

ShankerV_1-1673008921632.png

 

As per your expectation, all the headers will be modified ignoring the weekends.

 

If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.

 

Many thanks

Shanker V

 

 

binuacs
20 - Arcturus

@JSheppard98 One way of doing this#

binuacs_0-1673009126337.png

 

ShankerV
17 - Castor

Hi @JSheppard98 

 

Workflow:

ShankerV_0-1673009059011.png

 

Step 1: Input

ShankerV_1-1673009078314.png

 

 

Step 2:

 

Creating another text input

ShankerV_2-1673009106738.png

 

 

Step 3: Formula tool

 

ShankerV_3-1673009127699.png

ShankerV_4-1673009137681.png

 

Step 4: Generate rows

ShankerV_5-1673009156530.pngShankerV_6-1673009181336.png

 

 

 

ShankerV
17 - Castor

Hi @JSheppard98 

 

Step 5: Formula tool

 

ShankerV_1-1673009273185.png

 

 

ShankerV_0-1673009250875.png

 

Step 6: Filter

ShankerV_2-1673009294327.png

 

Step 7: Formula tool

 

ShankerV_3-1673009319096.png

 

step 8: Transpose tool

 

ShankerV_4-1673009340820.png

 

 

 

ShankerV
17 - Castor

Hi @JSheppard98 

 

Step 9: Select tool

ShankerV_0-1673009385998.png

 

step 10: Dynamic rename

ShankerV_1-1673009414200.png

 

ShankerV_2-1673009443602.png

 

Output:

ShankerV_3-1673009461692.png

 

If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.

 

Many thanks

Shanker V

 

 

 

ShankerV
17 - Castor

Hi @JSheppard98 

 

The workflow shared is very dynamic where the data's in the table will not get affected but it will dynamically rename the column header.

 

Please find the below output.

 

ShankerV_0-1673009726248.png

 

Input: 

 

ShankerV_1-1673009739609.png

 

If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.

 

Many thanks

Shanker V

Labels