Alteryx Designer Desktop Discussions

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

Dynamically rename the header by user input

Sshasnk
8 - Asteroid

Hi I have 4 columns that I have dynamically renamed the header it based on user input.

 

Example:

 

FundCost in CY (Currency)Purchase in PY (Currency)CostCost in PY (Currency)
ABC1455232132
NKL4566545221
AMN45675645623

 

Rules:

 

1. Take text input from the user for example in text input (alteryx app) we give input as USD

2. Then we have to change the column name which has Currency in it and replace it with the currency

3. Below is the output example

 

FundCost USDPurchase USDCostCost USD
ABC1455232132
NKL4566545221
AMN45675645623

 

3 REPLIES 3
Hsolmaz
7 - Meteor

Hi,

 

I believe the app attached is what you are looking for. Please let me know if you have any question.

binuacs
20 - Arcturus

@Sshasnk One way of doing this

binuacs_0-1671102425616.png

 

 

 

DataNath
17 - Castor

Hey @Sshasnk you could do something like this, whereby you look for the presence of '(Currency)' in your starting header and replace that with the user-provided currency. The only issue you'll have here is dealing with headers that end up with the same name - Alteryx doesn't allow duplicate field names and so in the example above you'd end up with [Cost USD2] in the far right column. Here's an example of the app:

 

DataNath_0-1671102494113.png

DataNath_1-1671102516554.pngDataNath_2-1671102530169.png

Labels