Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

How to achive swapping columns

sonal
6 - Meteoroid

Hi,

I am working with a dataset where I need to swap the 'value' of 'Attribute Label' field with 'Attribute Value' field. I have marked to color red to signify the swap.

Please note that value of each attribute label changes with each product. So, Value of Attribute Label1: Type should be swapped with Name Attribute Value1. 

 

Input Data and Expected result is attached. Please guide me how to achieve this. 

 

 

 

Input DataInput DataExpected ResultExpected Result

  

3 REPLIES 3
Greg_Murray
12 - Quasar

hi @sonal,

 

I think this is what you are looking for.

Greg_Murray_0-1589231904263.png

 

fmvizcaino
17 - Castor
17 - Castor

Hi @sonal ,

 

I've used regex to separate your label name into header and line number and used a cross-tab to achieve what you are looking for. Take a look!

 

fmvizcaino_0-1589232104666.png

 

 

Best,

Fernando Vizcaino

sonal
6 - Meteoroid

Thank you It worked like a charm.

Labels