Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 43 Oracle Analytics and AI Sharing Center
- 19 Oracle Analytics and AI Lounge
- 281 Oracle Analytics and AI News
- 57 Oracle Analytics and AI Videos
- 16.3K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 106 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
TRIM Trailing Not Working
Hello:
I have a column that I want to remove all characters after { and it isn't removing any characters. It is not erroring out, but shows the entire column.
Here is my formula:
TRIM(TRAILING '{' FROM "Opportunity"."Opportunity Name")
What am I doing wrong?
Thanks for any insight.
Answers
-
Hi @Tonya H,
Welcome to the Oracle Analytics Community.
Please find below the definition of TrimTrailing function and a working example, it might help to understand the working methodology.
TrimTrailing function Strips specified trailing characters from a character string.
Example:
Used the following to Trim Trailing 6.
TRIM(TRAILING '6' FROM "Worker"."Employee Mailing Address Line1")
If you want to remove any character after '{' then Trim Trailing is not the correct function to use.
Here's a high level steps that needed to be done:
- Identify the total length of the string.
- Identify the Position where '{' is occurring.
- Take the characters till to the number returned by Step2 from the total length return by Step1 from the beginning using SubString function.
Hope this help.
Thank You!
0

