Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Crosstab Changes Dashes to Underscores in Column Names

ClaytonA
7 - Meteor

I am running into an issue where I am using a cross tab to gather all details of a particular item into its own column. 

However by doing so, the crosstab changes the name of the field; instead of TEST1-PM I am getting TEST1_PM as my header. 

Is there a way to set the crosstab so it does not change the "-" to an "_"? 

 

Please let me know any suggestions. 

 

Attached is my file. 

 

Cheers, 

Clayton.

2 REPLIES 2
Amol_Telore
11 - Bolide

Hey @ClaytonA 

 

It is cross tab default behavior to convert any non numeric/word character into underscore '_'. To rename columns as per your need, You can use dynamic rename following cross tab tool. 

  1. You can use formula in dynamic rename tool to replace underscore with hyphen on column names.
  2. You can store columns names in text input tool and use dynamic rename tool to update fields dynamically.
  3. There is another way, using select tool to rename fields (Hardcoding)

Let me know if you need any assistance or have any questions with regards to dynamic rename tool.

messi007
15 - Aurora
15 - Aurora

@ClaytonA,

 

You can do that using a dynamic rename :

 

messi007_0-1658759303892.png

Regards,

Labels