cancel
Showing results for 
Search instead for 
Did you mean: 

PLD - Formula to get last 3 characters

beehoiphoebe_yeo
Active Participant
0 Kudos

Hi,

What is the formula to get the last 3 characters of a field?

Accepted Solutions (1)

Accepted Solutions (1)

former_member207541
Contributor

Sorry... just Substring(F_XXX, F_YYY) where F_XXX is the source field & F_YYY is Length(F_XXX) - 3

beehoiphoebe_yeo
Active Participant
0 Kudos

Thank you very much! it works!

Answers (3)

Answers (3)

gonzalogomez
Active Contributor
0 Kudos

For example, in the CardName

SELECT right(T0.[CardName],3) FROM OCRD T0

beehoiphoebe_yeo
Active Participant
0 Kudos

is PLD, not query.

beehoiphoebe_yeo
Active Participant
0 Kudos

I tried this, it truncate last 3 characters. But, what i need is to display last 3 characters.

former_member207541
Contributor
0 Kudos

Try: Substring(F_XXX,0,Length(F_XXX)-3)

Regards,

H.