Alteryx Designer Desktop Discussions

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

Converting first column as header

Usman_Ahmad
6 - Meteoroid

Hi Everyone,

 

I want to convert the input data to output as mentioned below.

Input:

Client NameProject
AX1
AX2
AX3
BY1
BY2
BY3
Z1
Z2
Z3


Output:

ABC
X1Y1Z1
X2Y2Z2
X3Y3Z3

 

Many thanks in advance.
Cheers!

9 REPLIES 9
AkimasaKajitani
17 - Castor
17 - Castor

Hi @Usman_Ahmad 

 

You can use CrossTab tool to achieve this output.

But before using it, you have to use Tile tool to get sequence number of each Client Name.

 

 

AkimasaKajitani_0-1623326801398.png

 

Tile Setting

AkimasaKajitani_1-1623326829208.png

 

CrossTab Setting

AkimasaKajitani_2-1623326847165.png

 

Please refer the uploaded file.

 

 

Usman_Ahmad
6 - Meteoroid

Thanks @AkimasaKajitani . 
But my actual data has multiple words as client name i.e ABC Co limited. When I transpose the data it give me "ABC_Co_limited"
How can I get rid of "_" in the headers?

Thanks again.

mceleavey
17 - Castor
17 - Castor

Hi @Usman_Ahmad ,

 

I've used a bit of transpose and cross-tab magic for this:

mceleavey_0-1623327358209.png

 

mceleavey_1-1623327371157.png

 

I've also used a tool I built which I've attached. You'll need to save this in your macro folder.

 

M.

 

 



Bulien

AkimasaKajitani
17 - Castor
17 - Castor

Hi @Usman_Ahmad 

 

You can use Dynamic Rename tool to delete "_".

 

AkimasaKajitani_1-1623328670838.png

 

 

AkimasaKajitani_0-1623328649390.png

 

Usman_Ahmad
6 - Meteoroid

@mceleavey  @AkimasaKajitani Thanks.

Transpose replaces special characters "()" and spaces with "_" how can we fix that. Please

mceleavey
17 - Castor
17 - Castor

@Usman_Ahmad ,

 

Use the Dynamic rename tool.

Rename with formula:

 

replace(names,"_"," ") etc.

 

M.



Bulien

AkimasaKajitani
17 - Castor
17 - Castor

Hi @Usman_Ahmad 

 

I would like to show the another way.

I added the Unique tool and change the option of Dynamic rename tool.

 

AkimasaKajitani_0-1623332294416.png

Unique tool setting : 

AkimasaKajitani_2-1623332335533.png

 

Dynamic Rename tool setting :

AkimasaKajitani_1-1623332308695.png

 

 

 

Usman_Ahmad
6 - Meteoroid

Thanks a ton buddy...!

Usman_Ahmad
6 - Meteoroid

@AkimasaKajitani Perfect ....!

Labels