Jump to content
  • 0

Add Text Values


taylorswiftlover

Question

3 answers to this question

Recommended Posts

  • 0

Hi Taylorswiftloverdover.

I am not sure if this would be the most efficient formula, but this works:

 CONVERT(FLOAT, (Substring([@field:a], 1, 255)))

I don't know, it might be silly. So the substring 1, means that it will be the starting point of the new text, then convert it to number. 

Works for me, but I know there could've been a better formula :D 

Link to comment
Share on other sites

  • 0

Hiya there!! I'm sure this one is deeefinitely not the best way to achieve this, but here's how I add my two text fields with a dollar sign

image.png.bf6d5d3f75aa3a87983025e9a6c4ae07.png

'$' + CONVERT(VARCHAR, CONVERT(FLOAT, IsNull(STUFF([@field:Text1],1,1,''), 0)) + CONVERT(FLOAT, IsNull(STUFF([@field:Text2],1,1,''), 0)))

I remove the first character, set the DEFAULT value to 0 when it is null, convert them to number, add them, then convert them to text again since I want the result to have a dollar sign too ^_^ 

Hope this helps!

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...