In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more 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
19 - Altair
19 - Altair

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
19 - Altair
19 - Altair

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

Labels
Top Solution Authors