SUBSTRING based on non-numeric character in the expression (OTBI Analysis)
SummarySUBSTRING based on non-numeric character in the expression for OTBI Report
I have a requirement in OTBI Report, to get the 20 characters after the string 'XYZ' from an expression. If the expression doesn't have the string 'XYZ' then the first 15 characters. The expression is not fixed length.
If the expression is fixed length, i can use SUBSTR(<expression>,1,20) if the expression has 'XYZ' if not SUBSTR(<expression>,1,15).
So, instead of 1 i have to use XYZ because this string 'XYZ' may be anywhere in the expression.Could anyone help me on this scenario