How to remove column header's whitespace/leading spaces
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Alteryx Community,
How to remove field names' whitespaces or leading spaces or special characters?
I used the transpose tool and cleanse tool but I was not able to reverse the way it was originally arranged using cross tab tool. I think I might still be figuring out how to use the Cross Tab tool.
Example: One data set has these field names:
Active*
Cancelled_Status
Company (with leading spaces)
Thank you in advance.
Solved! Go to Solution.
- Labels:
- Tips and Tricks
- Transformation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @PassION_es you can use the dynamic rename tool in Alteryx Designer if you hover over the tool in the Developer category it has some examples you can click to review how to setup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Use the Dynamic Rename function, set Rename Mode to Formula and then in the Expression section, use this: replace([_CurrentField_], ' ', '') to replace any spaces
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Either clean them before the Crosstab with a Formula tool, or clean them with a Trim function in the Dynamic Rename tool after the Crosstab!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks all :)
