We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun 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