Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Transpose logic

susukavi
7 - Meteor

Team,

 

Need your help in developing below logic in Alteryx.Thanks in advance.

 

I/P:

        
 City1City2City3City4   
 ChennaiDelhiMbiKolkata   
Temp35233031   
Humidity99989796   
Airflow55666666   

 

O/p:

 

TempChennai35  
TempDelhi23  
HumidityChennai99  
HumidityDelhi98  
AirflowChennai55  
AirflowDelhi66  
     
     
     
     
3 REPLIES 3
KGT
13 - Pulsar

What have you tried? Do you have a workflow with your data in it?

This is a simple transpose and so if I was to build a workflow to show, it wouldn't match your data. You have blank rows on the Input and then no headers on the output and so cleansing the headers would be the bulk of it. Then there's 2 messages of back/forth... all for a one tool solution.

 

Transpose. All you need to do is remove the line that has City in it, and make the cities the headers.

Genevieve
8 - Asteroid

Hi @susukavi 

 

Once you have transposed, separate the row which has the names of the cities before mapping them with a Find/Replace.Transpose workflow 2025-07-04 142043.png

 

1 Transpose config 2025-07-04 142422.png  2 Filter 2025-07-04 142449.png

 

3 Find_Replace 2025-07-04 142536.png

 

aatalai
15 - Aurora

@susukavi the attached workflow should do the trick, showed you 2 different methods, please let me know how you get on 

Labels
Top Solution Authors