Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Concatenate three fields that are separated by a special character

cstafford
8 - Asteroid

Trying to concatenate three fields separated by different special characters using the Formula In-DB tool. Thought the below formula would work but i am getting a syntax error. Not sure what I am missing.

 

[fieldname1] + "-" + [fieldname2] + "Z" + [fieldname3]

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus
This answer is based on an Oracle RDBMS.

fieldname1 || '-' || fieldname2 || 'Z' || fieldname3

SQL server is:

fieldname1 + '-' + fieldname2 + 'Z' + fieldname3

Cheers,

Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
cstafford
8 - Asteroid

Hi Mark,

Thanks for the assistance and direction. Took some trial and error but this was the final formula. The column names needed quotes.

 

"fieldname1" || '-' || "filedname2" ||'Z'|| "fieldname3"

CARLOS_ROM
5 - Atom

GRACIAS ASI SE SOLUCIONO. 

Labels