Jump to content


Photo

Subject ID "RIGHT" function


  • Please log in to reply
1 reply to this topic

#1 rxz

rxz

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 26 November 2023 - 11:55 PM

in data wizard:

  • for subject ID “1001-0001”, how do I remove the left 5 characters ("1001-").  (subject ID is a text column)

When I did a “RIGHT (ID, 4)” in phoenix, I got “1”, instead of “0001”. (the front leading zeros "000" are ignored).

 

thanks

 


  • DanielGon, Thomasgaks, RonaldAxon and 3 others like this

#2 jennyl

jennyl

    Newbie

  • Moderator
  • Pip
  • 1 posts

Posted 28 November 2023 - 01:09 AM

Hi rxz, 

You used the RIGHT() function correctly, but the software automatically typecasts the "0001" string into an integer. Simon has a good idea in this post:

https://support.cert...try/?hl=leading

Alternatively, you can send us an email to support@certara.com with just the subject ID column and I can covert it for you.


Edited by jennyl, 28 November 2023 - 01:21 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users