Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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