Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

Select data depending upon column name stored in a row

sbatra116
8 - Asteroid

Hello everyone, 

 

Need helpw with below scenario.

 

scenario:  

 

Below is the sample table. generic headers

column4 (last column) sotres the header value of other columns. i need to replace data in column4 with the actual row value.

 

IDColumn1Column2Column3Column4
1Test11234sometextvalueColumn1
2Test26544sometextColumn3
3Test33445765dummytextColumn2
4Test44564556dummyColumn1

 

final data should look something like this 

 

 

IDColumn1Column2Column3Column4
1Test11234sometextvalueTest1
2Test26544sometextsometext
3Test33445765dummytext3445765
4Test44564556dummyTest4

 

 

 

1 REPLY 1
AkimasaKajitani
17 - Castor
17 - Castor

Hi @sbatra116 

 

By creating a header/value correspondence table for Columns 1 through 3, we can combine the Column4 value and the another header.

To do so, you need to use Transpose Tool. Then you use JoinTool to join them together.

The workflow is as follows.

 

AkimasaKajitani_0-1668311702055.png

 

Labels