Free Trial

Alteryx Designer Desktop Discussions

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

Alteryx - how to populate a column with section name?

yilingchen02
8 - Asteroid

Hi there,

 

Is it possible to achieve the following transformation in Alteryx?

 

Before:

IDValue
Height 
1160
2162
3170
  
  
Weight 
1120
2130
3140

 

After

IDValueField
1160Height
2162Height
3170Height
1120Weight
2130Weight
3140Weight

 

Thanks,

Yiling

6 REPLIES 6
acarter881
12 - Quasar

Hi @yilingchen02 

 

Please see the attached workflow. It can be done with multi-row formulas and a filter tool.

 

There are likely other methods as well.

 

Spoiler
acarter881_0-1666120316872.png

 

 

robaimes
Alteryx Alumni (Retired)

Hi @yilingchen02 

 

Similar to the previous solution, this can be done with Multi-Row Formula and Filter.

 

This method is more specific to this data, but variables can be altered in the Multi-Row Formula for whatever data you need to transform.

binuacs
21 - Polaris

@yilingchen02 One way of doing this

binuacs_0-1666126092815.png

 

yilingchen02
8 - Asteroid

Thank you all very much. I have several solutions and gets me 95% there. One more challenge: my actual IDs have sth like 1a, 1b, 1c (see below), so when I implement @binuacs's method, these IDs are recognized as 'Field' as opposed to 'ID'. Any way we can address that?

 

IDValue
Height 
1160
2162
3170
1a180
1b190
1c200
  
  
  
  
Weight 
1120
2130
3140
1a150
1b160
1c170

 

Thanks,

Yiling

acarter881
12 - Quasar

Yes, I believe this will fix it (see attached).

 

acarter881_0-1666135541182.png

 

 

yilingchen02
8 - Asteroid

Very neat. Thank you

Labels
Top Solution Authors