Alteryx Designer Desktop Discussions

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

pivot the data desired formate

Kaustubh17
8 - Asteroid

Hi team,

 

I have data in the below format.

 

dap_idsap_codecounter_namedistrictcounter_typebrand_nametotal_potential_tytwv_tytrv_tywv_tyrt_ty
3725177060595APANG NYANING ENTERPRISEKURUNG KUMEYSUB-DEALERDALMIA28002800160
3725177060595APANG NYANING ENTERPRISEKURUNG KUMEYSUB-DEALEROTHER2800280060
3725177060595APANG NYANING ENTERPRISEKURUNG KUMEYSUB-DEALERAMBUJA2800280030
3725177060595APANG NYANING ENTERPRISEKURUNG KUMEYSUB-DEALERTOPCEM2800280030

 

 

Output:

 

dap_idDLR CODEsap_codecounter_namedistrictcounter_typebrand_nametotal_potential_tyRTWSDALMIA_WSAMBUJA_WSTOPCEM_WSOTH_WSDALMIA_RTAMBUJA_RTTOPCEM_RTOTH_RT
37251 77060595APANG NYANING ENTERPRISEKURUNG KUMEYSUB-DEALERDALMIA280280000001603030

60

 

Note: wv_ty = WS and rt_ty = RT

 

Request you to help the same. 

 

Best Regards,

Kaustubh

2 REPLIES 2
MeganBowers
Alteryx Community Team
Alteryx Community Team

Hi @Kaustubh17,

 

You can use cross-tab tools and dynamic renames to get your data into the structure above. If you want the brand name, RT, and WS as columns as well in the output, you would have to join back in the original dataset.

 

Screenshot 2024-08-23 at 9.23.44 AM.png

Screenshot 2024-08-23 at 9.23.07 AM.png

CoG
13 - Pulsar

When trying to Cross Tab multiple fields at once, it is generally more efficient to Transpose the data first so that you can avoid redundant tools and unnecessary joins:

Screenshot.png

 

Happy Solving!

Labels