Alteryx Designer Desktop Discussions

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

Remove Trailing and Leading Spaces in Field Names

poles1c
8 - Asteroid

Hi,

 

I have a dataset of 430 fields, here is an excerpt :

 

Capture.PNG

 

I want to trim leading and trailing spaces from my field names. A simple transpose and then back to cross-tab does not work as I will lost all of my field names & vales. Help?

 

Thank you,

 

Courtney

2 REPLIES 2
Bob_Blackey
11 - Bolide

You can use the Dynamic rename tool in the Developer tool set.

 

For rename mode choose - formula

Select all the fields you wish to rename (use the all button)

Then the Expression would be Trim([_CurrentFieldName_])

 

 

This tool can have two inputs but the bottom input is not needed in this use case.

 

poles1c
8 - Asteroid

Thanks!

Labels