Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Cross Tab tool adds _ in new header

Pascal_R
8 - Asteroid

Hi Community,

 

I try with attached dataset to change column headers with the Corss Tab tool.

Do you know why the header names are changing (adding "_" )?

 

I need to have the exact naming.

 

Pascal_R_0-1644498920252.png

 

9 REPLIES 9
JosephSerpis
17 - Castor
17 - Castor

Hi @Pascal_R a number of tool don't like a space in the header such as some of the Transforms tool. Typically in this usecase you would use a dynamic rename tool to achieve the desired results. I mocked up an approach that demontrates that.

 

Dynamic_Rename_10022022.JPG

atcodedog05
22 - Nova
22 - Nova

Hi @Pascal_R 

 

My usual workaround for this is like this

 

atcodedog05_0-1644499908266.png

 

This is something I picked up from @OllieClarke long back 🙂

 

Hope this helps : )

 

Pascal_R
8 - Asteroid

@atcodedog05  With your solution I still get the issue for below:

 

Pascal_R_0-1644500458657.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @Pascal_R 

 

Sorry my bad slight formula change.

 

atcodedog05_0-1644500682886.png

 

Hope this helps : )

 

OllieClarke
15 - Aurora
15 - Aurora

@atcodedog05 the cross-tab tool will replace any instance of a non-alphanumeric/underscore with a single underscore, so actually you want your formula to be:

Regex_replace([field],'\W','_')

(i.e. remove the '+')

 

Hope that helps

JosephSerpis
17 - Castor
17 - Castor

Hi @Pascal_R this why the Field Info tool is useful it has the orginal Name in the Source field which you can then extract and use in the Dynamic Rename tool.

 

Field_Info_10022022.JPG

atcodedog05
22 - Nova
22 - Nova

Hi @OllieClarke 

 

Yes got it. Had added it there by mistake rectified it 😅

atcodedog05
22 - Nova
22 - Nova

-

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Pascal_R 

Cheers and have a nice day!

Labels