Alteryx Designer Desktop Discussions

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

How to transpose vertical date to horizontal date

shahnawaz_khan
5 - Atom

Hi All

 

How to transpose vertical date to horizontal date, Samples are below.

 

From  below 
DateCountryCount
01-Jan-24US1
01-Jan-24Africa1
01-Jan-24UK1
01-Jan-24Canada1
01-Jan-24France1
02-Jan-24US1
02-Jan-24Africa1
02-Jan-24UK1
02-Jan-24Canada1
02-Jan-24France1
03-Jan-24US1
03-Jan-24Africa1
03-Jan-24UK1
03-Jan-24Canada1
03-Jan-24France1

 

 

To below   
Country01-Jan-2402-Jan-2403-Jan-24
US111
Africa111
UK111
Canada111
France111
5 REPLIES 5
flying008
14 - Magnetar

Hi, @shahnawaz_khan 

 

FYI.

录制_2024_07_15_16_07_30_862.gif录制_2024_07_15_16_10_13_928.gif

Raj
15 - Aurora

@shahnawaz_khan 
find the workflow attached

shahnawaz_khan
5 - Atom

Thanks, that helped allot.

😊

Raj
15 - Aurora

@shahnawaz_khan 
you can mark this done and close thread if solved.

happy to help

LindonB
8 - Asteroid

Use a cross tab tool, configured as below. Either convert your date field to a Date format prior to the cross tab tool using the datetime tool, or (if you want to keep it formatted the same), use a dynamic rename tool after to pivot to replace the underscores (that will replace the dashes. In the below, the dynamic rename expression is REPLACE([_CurrentField_],"_","-").

 

Community1294982.PNG

Labels