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. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

Remove comma from the name of a column if it's the last text in that column

cowannbell
9 - Comet

I have column names that have comma's but I need to remove the comma if it's the last character in that column name.

 

Smith, John,   To     Smith, John

 

I have tried using the multifield formula with these and neither work.

 

TrimRight([_CurrentFieldName_],',')

 

if EndsWith([_CurrentFieldName_], ",") then trimright([_CurrentFieldName_],",")
else [_CurrentFieldName_]
endif

 

1 REPLY 1
cowannbell
9 - Comet

Never mind,  I had to use the rename tool and that worked.

Labels
Top Solution Authors