Capturing multiple string value in a presentation variable - Page 2 — Oracle Analytics

Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Capturing multiple string value in a presentation variable

Received Response
172
Views
18
Comments
2»

Answers

  • Saro
    Saro Rank 5 - Community Champion

    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

  • asim cholas
    asim cholas Rank 6 - Analytics Lead

    Dear Saro,

    Why not find the last occurance of , and then take a substring from it?

  • Saro
    Saro Rank 5 - Community Champion

    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

  • asim cholas
    asim cholas Rank 6 - Analytics Lead

    Try LocateN or Position Function and use it in substring.

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    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.

  • asim cholas
    asim cholas Rank 6 - Analytics Lead

    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)

  • Saro
    Saro Rank 5 - Community Champion

    Thanks christain and asim for your time/replies.

    Regards,

    Saro

  • Saro
    Saro Rank 5 - Community Champion

    This syntax dint work joel

    ('@{v_period}['@']')

    Saro