Jump to content
  • 0

Concatenate two fields


Kuroshi

Question

Hi.

I need a Formula to combine two fields. Here's the formula that I'm using:
CONVERT(VARCHAR, [@field:FieldA]) + ' '  + COVERT(VARCHAR,Year[@field:DateField]).

 I am trying to write a formula that will pull the year out of the date in this field. I am getting an Invalid Formula. Can you help?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi,

You can use the formula below to concatenate these two:

CONVERT(VARCHAR(10), [@field:FieldA], 101) + ' ' + CONVERT(VARCHAR(10), (DatePart(year,[@field:DateField])), 101)

I converted these fields to text so that they can concatenate as two different fields instead of having a sum as a result.

- Barbie

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...