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. Make sure to check your account preferences in my.alteryx to make sure you have filled out your security questions. 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

Eliminate leading and trailing whitespace in the headers

BautistaC888
8 - Asteroid

Hello,
I used the data cleansing tool on the input:

BautistaCaparelli_0-1617364982977.png

But the headers keep getting leading and trailing whitespace:

BautistaCaparelli_1-1617365102379.png

I want to know how could i fix it.
Thank you.

2 REPLIES 2
PhilipMannering
16 - Nebula
16 - Nebula

Hey @BautistaC888,

 

You can use the Dynamic Rename Tool set to formula and use formula,

trim([_CurrentField_])

 

PhilipMannering_0-1617365595229.png

 

JosephSerpis
17 - Castor
17 - Castor

Hi @BautistaC888 the data cleanse tool will work on the data and not on the headers. You would need to use a Dynamic Rename tool or pivot your data and then fix the headers. I've mocked up both approaches in the attached workflow.

 

Headers.JPG

Labels
Top Solution Authors