We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Cross Tab converting Date to String

rohin92
6 - Meteoroid

Hi All,

 

My output from the Summarize tool has 3 columns namely 

1. Country

2. Value

3. ReportDate

 

Report Date has date for 3 months for example 2023-08-01, 2023-09-01, 2023-10-01

 

When I do cross tab to convert Report Date into 3 columns for the 3 months, I get output with column headers as 2023_08_01, 2023_09_01 & 2023_10_01

 

I want the column headers to remain in the same format when I do crosstab.

 

Before Cross Tab

 
CountryValueReport Date
India102023-08-01
India152023-09-01
Japan202023-10-01

 

After Cross Tab

 

Country2023_08_012023_09_012023_10_01
India1015Null
JapanNullNull20

 

Why does "-" get converted to "_" in date

 

how can I get the date in original format as column header

3 REPLIES 3
alexnajm
18 - Pollux
18 - Pollux

Unfortunately this is just the behavior of the CrossTab tool - use a Dynamic Rename to replace those underscores back with hyphens!

rohin92
6 - Meteoroid

@alexnajm thank you so much it worked for me

alexnajm
18 - Pollux
18 - Pollux

Fantastic! If you could accept it as a solution then, that would be great 😊

Labels
Top Solution Authors