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.

How to transpose vertical date to horizontal date

shahnawaz_khan
8 - Asteroid

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
15 - Aurora

Hi, @shahnawaz_khan 

 

FYI.

录制_2024_07_15_16_07_30_862.gif录制_2024_07_15_16_10_13_928.gif

Raj
16 - Nebula

@shahnawaz_khan 
find the workflow attached

shahnawaz_khan
8 - Asteroid

Thanks, that helped allot.

😊

Raj
16 - Nebula

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

happy to help

LindonB
11 - Bolide

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
Top Solution Authors