Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Dynamically Rename a COLUMN pending a specific columns data to the front of the column

asmith314
8 - Asteroid

This is a little difficult to explain so I think it would be easier if I show a screenshot

 

In the sample below, I want to take the value from the ContractYear Column and append it to the column name (I've already ensured that this value is distinct upstream in my workflow). I need to assign it dynamically because my data input is pulling the year dynamically so this could change at runtime. Attached is a sample data file. I tried using the dynamic rename tool but I can't seem to get a formula to do what I need (The formula window in the dynamic input tool isn't as user friendly as the formula tool)

 

  Current Column NameNew Column Name
ContractYearResult NameValue2021 Value
2021CotinineNEGATIVE 
2021Total Cholesterol192 
2021HDL Cholesterol53 
2021LDL Cholesterol114 
2021Triglycerides136 
2021Glucose98 
2021Blood Pressure (Systolic)130 
2021Blood Pressure (Diastolic)80 
2021Body Mass Index (BMI)27.8 
2021Waist Circumference30 
2021Hemoglobin A1c4.7 
2021eGFR63 
2021Creatinine1.28 
2 REPLIES 2
Luke_C
17 - Castor

Hi @asmith314 

 

Try this:

 

Luke_C_0-1663614016070.png

 

 

asmith314
8 - Asteroid

@Luke_C  Worked like a charm! Thanks a bunch

Labels