Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 208 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 76 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Capturing multiple string value in a presentation variable
Answers
-
Hi christian,
This is what my real scenario and hence inorder to tackle this only im finding to get the string values in a variable inorder to use substring to get the last month name alone.
Saro
0 -
Dear Saro,
Why not find the last occurance of , and then take a substring from it?
0 -
Hi Asim,
Im using obiee 11.1.1.7.150120.
Why not find the last occurance of , and then take a substring from it?
How can i do that. Kindly explain it.
Thanks,
Saro
0 -
Try LocateN or Position Function and use it in substring.
0 -
SUBSTRING('@{v_Period}{PleaseBeProperAndPutDefaultsLikeDEC-17}' FROM LENGTH('@{v_Period}{PleaseBeProperAndPutDefaultsLikeDEC-17}')-5 FOR 3)
Ugly as sin but that yields "DEC"; but as I said if you have to do contortions like this it most probably points to a seriously messed usage of the solution.
0 -
if it is in the format JAN-17 use below
substring('@{PVT}',Locate(';','@{PVT}',-1)+1,6)
or if you have
JAN-2017
substring('@{PVT}',Locate(';','@{PVT}',-1)+1,8)
For JAN only
substring('@{PVT}',Locate(';','@{PVT}',-1)+1,3)
0 -
Thanks christain and asim for your time/replies.
Regards,
Saro
0 -
This syntax dint work joel
('@{v_period}['@']')
Saro
0