how to find the last 2 characters of a string

David Gornichec
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 22, 2024

in the table transformer macro under SQL query, I would like to find the last two characters of a string and convert to numeric values.

1 answer

2 votes
Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 23, 2024

Hi @David Gornichec ,

If you are talking about our Table Filter, Charts & Spreadsheets for Confluence app and its Table Transformer macro, you may refer to our support portal that is confidential.

And also here, in our documentation, there is a list of supported functions with step-by-step examples: https://docs.stiltsoft.com/tfac/cloud/general-syntax-and-sql-functions-available-42246251.html#GeneralsyntaxandSQLfunctionsavailable-Functionsandkeywords

For your case, seems that the 

SUBSTRING(T1.'Column 1', LENGTH(T1.'Column 1')-1, 2)

or

SUBSTRING_VIEW(T1.'Column 1', LENGTH(T1.'Column 1')-1, 2)

expression will do the trick.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events