OBIEE rpd formula help

Hi All
My problem is mainly relating to the usage of operators and functions in the OBIEE repository...
I need to extract the file name from a given path... (this is basically for Usage Tracking purposes)
The path can be of 4 types:
1) /users/[email protected]/Charts Reports/Report\/test.) -- file Report\/test.
2) /shared/project/Reports \/ Charts/test \/ Report -- file test \/ Report
3) /shared/project/Reports \/ Charts/test Report -- file test Report
4) /shared/project/Reports/Report 1 -- file Report 1
The '\/' that you see happens, when you save a report/folder in Answers with a '/' in the name (it converts it to '\/' supposedly).
I am not able to write a formula for a logical column that can extract the file name given these 4 types of input paths.
I have a written a SQl query that does all this perfectly fine but am having a tough time converting this to the OBIEE formula. So I guess
I'll have to start off separately on the rpd formula.
I tried the following formula but it does not work for type 1) and 2) ... It works for types 3 and 4. Though I dont find anything wrong with
this formula, I think the CASE operator might be a problem.
CASE WHEN LOCATE ('\/',:PATH) > 0
THEN CASE WHEN LOCATE ( '\/',SUBSTRING(:PATH FROM LOCATE ('/', SUBSTRING (:PATH FROM 1 FOR LOCATE ('\/',:PATH,-1) ) ,-1 ) + 1 ) ) > 0
THEN SUBSTRING (:PATH FROM LOCATE ( '/',:PATH,-1)+1 )
ELSE SUBSTRING(:PATH FROM LOCATE ('/', SUBSTRING (:PATH FROM 1 FOR LOCATE ('\/',:PATH,-1) ) ,-1 ) + 1 )
END
ELSE
SUBSTRING(:PATH FROM LOCATE ( '/',:PATH,-1) +1 )
END
Can someone help me write a better formula to perform this function
Thanks a lot

Hi All
If this helps... When I said it does not work for the input types 1 and 2 (above post), this is the result that I get in Answers when I use my formula...
Input 1) /users/[email protected]/Charts Reports/Report\/test.) Result: test.) Expected Result: Report\/test.)
Input 2) /shared/project/Reports \/ Charts/test \/ Report Result: Report Expected Result: test \/ Report
Thanks a lot...

Similar Messages

  • How to Clean Unused object in OBIEE RPD.

    Hi Gurus,
    Kindly let me How to remove unused objects like subject areas , Initialization blocks etc in OBIEE RPD.
    Plz suggest me.we are using OBIEE 10g .If i use Utilities option to remove unused objects will other objects have any impact?Can i use this Utilities Option?
    Please any one help me i need do it as soon as possible.Project is in Production.
    Thanks ,
    Siva.

    Hi,
    The above link is good, but also use the below link:
    http://docs.oracle.com/cd/E12096_01/books/admintool/admintool_UtilitiesExprBldr10.html
    Regards,
    MuRam

  • OBIEE 11g Dashboard Help

    Hi,
    I have the following requirement needs to be implemented in OBIEE RPD/Answers/Dashboard. Please suggest
    Dimension:_
    1) Country
    2) Currency
    3) Time
    4) Customer
    5) Stage
    Fact:_
    1) ASOF
    Requirement:_
    a) User will be selecting the Start Effective Date & End Effective Date in Prompts and this filter is based on Time dimension
    b) Please note that, the time dimension has only Calendar Date Column and Fact Table also has data with respect to Calendar Date ONLY NOT LIKE Effective Start Date Revenue, Effective End Date Revenue
    b) once date range is selected, the report has to be shown with the following selected columns and filters applied
    Selected Columns:_
    Effective Start Date Revenue
    Effective End Date Revenue
    Effective Start Date
    Effective End Date
    Effective Start Date Stage
    Effective End Date Stage
    Effective Start Date Revenue - Effective End Date Revenue
    Filters Needs to be Applied:_
    For Effective Start Date Revenue, sum(Revenue) for the Calendar Date is less than or equal to Effective Start Date
    For Effective End Date Revenue, sum(Revenue) for the Calendar Date is less than or equal to Effective End Date
    Effective Start Date Stage, max(stage) for the Calendar Date is less than or equal to Effective Start Date
    Effective Start End Stage, max(stage) for the Calendar Date is less than or equal to Effective End Date
    Please let me know how to do it in OBIEE 11g

    Thanks. I would need only ONE Clarification.
    the Fact table has data at Date Level. For Example,
    Date Revenue Stage
    20120101 123.98 1a
    20120302 178.965 1b
    20120401 768.99 1c
    The report should contain the following columns based on date range selection:- Start Date & End Date
    Start_Date_Revenue End_Date_Revenue Start_Date_Stage End_Date_Stage
    So, I have used FILTER(Revenue using Date = 'Presentation Variable for Start Date') & FILTER(Revenue using Date = 'Presentation Variable for End Date') for Revenue Calculation.
    Similarly, is there any way to retrieve the stage columns data for each date and show it in report?
    Note:_ I have tried the filter function for Dimension Column to bring Stage but it works only for Measure Column

  • Is there any connectors between - OBIEE RPD & Big Data

    Is there any connector between - OBIEE RPD & Big Data? How we will get structured & unstructured data into OBIEE RPD to generate reports?

    Not sure what you want to achieve here... however.. what I read is that you would like to have a way to get unstructured data into structured so you can report on it using OBIEE. (Correct?).
    Depending on the amount of data and the things you need to do to it before you can structure it you can create a map/reduce function and use Hadoop. There is a connector to push the hadoop results into the Oracle database. Then you could use OBIEE to report on the now structured data in the Oracle database.
    As I do not know the details of what you like to achieve,..... this is a solution I would start looking into if I where you. :-)
    Regards,
    Johan Louwers

  • How does one access custom function in OBIEE RPD for Session Init Block SQL

    Hello:
    We are using SSO for authentication and authorization for OBIEE, using Init Blocks in the RPD and httpHeader as the source of variables in the Instanceconfig.xml file. (As long as the user is member of one group, the results are fine. However, as soon as the user is assigned to multiple groups, group values become URI-encoded.)
    To solve the problem of URI-encoding, we have deployed a function to the DB (ora 10gr2).
    The problem I am running into is that when I call the function from an Init Block (Security), OBIEE Presentation Services (OPS) acts as though the function does not exist or is not called.
    Initialization String: select group_OBIEE(WEBGROUPS) from dual
    ("group_OBIEE" is the function that was deployed.)
    Testing: Successfully tested the function in PL/SQL as well as using the Test button in RPD.
    Reason for the fuction: The function decodes the extra characters using a substr function. SSO uses Shibboleth for Authentication and Authorization.
    For example, for our group name, we expect to obtain the following value:
    edw:hrdir;edw:findir (2 groups separated by a semi-colon)
    However, we are obtaining the following: (Determined via the narrative view in Answers: @{biServer.variables['NQ_SESSION.GROUP']} )
    URI-ENCODED<edw%3ahrdir%3bedw%3bfindir>
    Please note: There are no such problems when we are passing only a single group value (i.e. edw:hrdir). So, in cases when we pass only for Group for the user, we are able to authenticate and authorize w/o a problem.
    Any suggestion on how to call the function or a better way to approach this problem?
    Thanks in advance for your help.

    You don't need a function to assign the groups in your Init Block. In fact you should not use it. You need to use a standard select and define the Init Block as Row-Wise. This means the BI Server knows the Init Block will return more than one row. You select statement should look like this:
    SELECT 'GROUP', YOUR_GROUP_NAME FROM YOUR GROUP_USERS_TABLE WHERE YOUR_USER_ID_COLUMN = ':USER'

  • Urgent - How to join multiple facts and dimensions in OBIEE rpd??

    Hi,
    In my RPD I have 3 facts and 4 dimensions and the joins defined are as below
    Physical layer - All joins are FK and inner (1:N)
    FACTA-------------- DIM_TIME, DIM_CUST,DIM_CAL
    FACTB-------------- DIM_TIME, DIM_CUST,DIM_CAL
    FACTC-------------- DIM_TIME, DIM_CUST,DIM_CAL, DIM_XYZ
    BM layer - All joins are complex, inner
    The logical table F1 pulls columns from FACTA, FACTB and FACTC . Complex join exists between all 4 dimensions DIM_TIME, DIM_CUST,DIM_CAL, DIM_XYZ to logical table F1.
    Issue: I need to build a report with $ column from FACTA, FACTB and FACTC and need to add filter conditions using columns from DIM_TIME, DIM_CUST,DIM_CAL, DIM_XYZ.
    However when ever I add a filter condition from DIM_XYZ the physical query generated is not generating code to access data from FACTA and FACTB. Instead it is subsituting a NULL and just pulls data frm FACTC.
    My Questions: What is the best way to build the physical and BMM layer using FACTA, FACTB,FACTC, DIM_TIME, DIM_CUST,DIM_CAL and DIM_XYZ??
    I need to resolve this issue ASAP so any help is appreciated. Thanks
    Edited by: user11935561 on Feb 10, 2010 6:27 AM
    Edited by: user11935561 on Feb 10, 2010 6:28 AM

    You can find the same issue in
    Logic of queries in OBIEE
    or
    Connection between 2 fact tables
    Follow the link
    http://there-n-back-again.blogspot.com/2009/04/oracle-analytics-how-to-report-over-non.html
    Put 'All' or 'Total' at levels for dim_xxx for those facts you need in your report from facta and factb
    Regards
    Nicolae

  • Need the topics that we need to mainly concentrate in OBIEE rpd development

    Hi All,
    Can you guys provide me a list of topics in OBIEE 11g development that we need to practice in obiee 11g rpd and front end...
    thanks in advance

    This is too vague a question. Google OBIEE 11g repository development (or just use your query keywords!) and you will find tons of posts and articles and Oracle Documentation. Come back with more specific questions. Here's a starter: http://docs.oracle.com/cd/E23943_01/bi.1111/e10540/toc.htm
    Please assign points if helpful/correct.

  • RPD Formula question

    I am trying to create a logical column that returns a % value. I can get the math to work correctly in Answers, but I am having a difficult time converting the formula to the RPD layer.
    Example:
    Assume data as below:
    Geography Channel Sales
    NYC A 100
    NYC B 200
    NYC C 300
    NYC D 400
    I want to take Sales at the Channel Level, and divide that by total of all Sales at the City Level (Regardless of Channel)
    Result would be like:
    Geography Channel Sales Index (Channel level sales, divided by sum of all sales for that city)
    NYC A 100 10% (100/1000)
    NYC B 200 20% (200/1000)
    NYC C 300 30% (300/1000)
    NYC D 400 40% (400/1000)
    In Answers, this is easy. Basic formula is:
    Sales / SUM(Sales BY City)
    How would I go about achieving this in the RPD, as it does not allow the SUM BY construct.
    I tried using FILTER, but I am getting confused with the syntax.
    Any help appreciated.

    You have to create a level based measure for this. Create a geography level sales metrics. what you need to is duplicate the sales metric rename to geography sales, and set the level as Geography. SO it will always return the sum(sales) at geography level. to set the level you need to have Dimensional hierarchy for geography dim.
    then create a new logical column saying sales/geography sales.

  • In OBIEE rpd convert varchar to datetime

    Hello,
    Can anyone help one how can we convert a column that is set to varchar to datetime in obiee;
    Suppose COLUMN_A is varchar and keeps value like '2008-12-30 10:11:22'
    and we want to convert it DATETIME.
    Thanks and Regards

    use cast(column as TIMESTAMP)

  • India localization oracle fast formulas help

    hi ..
    anybody help on oracle india localization fast formulas, absence mgmt setup, online payslip setup and tax declaration set up in payroll and sshr basic setups for absence mangt and transfer setup. plz send me on [email protected]

    send me a contract, buy me a ticket, and i fly over.

  • HOW TO FIND UNUSED initialization blocks  IN OBIEE RPD

    Hi Gurus,
    I have a task to remove unused initialization blocks and subject areas from RPD.
    how to find them ?how to check whether any reports are using these initialization blocks?
    Please reply me. I need to complete this task.Pls help me
    Regards,
    siva

    Unused Subject Areas -
    Use Catalog Manger - Tools - Create a report to with report name and subject area. You will get what are being used.
    Use RPD - Tools - Utilities export your RPD to CSV and check the Subject area.
    Compare both and remove unwanted subject areas.
    Initialization Blocks - We do not use these blocks directy but use Variables that are associated with it. Go to RPD - online - Mangesession - You will see the Variables tab in the window which give list of all variables thats get initialised with the session. --- Session Blocks
    Use Report Tools - Query Repository for searching.
    Try like this.

  • OBIEE RPD Descriptions in Physical Layer

    Is there anyway to auto-populate the Descriptions in the Physical Layer of the RPD. For example. all the Physical Tables and Columns allow for Descriptions. We'd like to keep these descriptions synced with what we have in our DB/ETL platforms. I don't think you could use variables with this option but didn't know of any way that may allow us to automatically push the descriptions into the RPD.
    The Presentation Layer has the Externalize Strings which is a great option on that side, however, anyone know of an applicable feature for the Physical Layer object descriptions?

    Dont think there is an option to import comments directly, nqudmlgen / XMLAPI approach is the best way. repeatable process may help to update description periodically
    hope this helps..
    Edited by: Kasyap on Mar 23, 2013 4:11 PM

  • Conditional formula help

    Post Author: scd07
    CA Forum: Formula
    Hi, Crystal Reports novice here...
    I have been asked to take out any lines in several reports with all "0s" in the columns.  I have tried formatting each field to suppress Zeros and then right click on the Description column and click "suppress if blank".  Didn't work.  I then tried to write a conditional formula that I put under the description field (field 1), "common", "formula" and "suppress".  The formula followed the following:
    If = 0 and = 0 and = 0 then true else false
    Unfortunately this also didn't work.  I don't know if my formula is incorrect or if I am entering it in the wrong spot.  Any help would be very much appreciated!  Thank you!!

    Post Author: Bandit07
    CA Forum: Formula
    Right click on what you want to suppress and click the x-2 button next to suppress.  Put your formula in there.
    = 0 and = 0 and = 0,  If all of these conditions are true then it will suppress.
    B

  • MDX formula help

    The formula below works just fine but I want to use a UDA driven member in Member Range and need help.
    IIF(
    Count(
    Intersect(
    {MemberRange( [Jan],[Apr] )},
    {[Time].CurrentMember}
    ) = 1, [Actual], [Forecast])
    I tried with
    IIF(
    Count(
    Intersect(
    {MemberRange( [Jan],UDA([Period],"CurrMonth") )},
    {[Time].CurrentMember}
    ) = 1, [Actual], [Forecast])
    but I get an error Error(1260052) - Syntax error in input MDX query on line 4 at token ')' CalcMbr
    not sure why is this not working - I think UDA() can result in a set but member range is expecting a member only??
    Please suggest any ideas to correct the code.

    also tried with {[Jan]:UDA([Period],"CurrMonth")}
    instead of {MemberRange( [Jan],UDA([Period],"CurrMonth") )} - but no luck
    Any suggestions?

  • OBIEE Customization - Removing Help (?) icon Across OBIEE11g Application

    Hi,
    I am using OBIEE 11g and I need to remove 'Help' (?) icon across OBIEE Application. Can you pls. guide me to achieve it.
    Thanks for your help.
    Regards,
    Ramesh

    Instead of removing I would suggest to replace the icon with some other icon
    look for the file loc
    OFM\Oracle_BI1\bifoundation\web\msgdb\uicomponents\obips.ToolbarHeader.xml
    replace ? mark icont with . or dot icon
    Hope this helps
    ~ http://cool-bi.com

Maybe you are looking for

  • Double allowances when transfer in mid of the month

    Hi Experts,       When I am transferring an employee in mid of the month(in same payroll area ), the only component changing is HRA ( as it is region specific ). Now two records exist for that employee in Basic pay infotype one from date range 01-15

  • How to I remove a credit card from my account

    There are some apps on my phone that need updating. When I try to update them after logging into my iTunes account it keeps asking me for credit card info.. I dont have a credit card.. but I previously put my VISA DEBIT card on the account and it has

  • Drop IE connection if PAC file not found

    When users are in the corporate network, their machines will grab the PAC file and use it. However, when they bring the machine back, since the machines are unable to grab the PAC file (without VPN), IE revert to direct connection, hence bypass PAC f

  • Intermittently nursery GC is taking very long pause time

    Hi, I have jboss application server running with JRockit R27.6.5 on RedHat Linux. I see that the nursery GC is taking very long time. Some times it takes more than 10 seconds. This causes TLA-fetch error for all the threads. High nursery time - [memo

  • Collaboration Launch Pad (CLP) problem

    Hi, We have implemented a Federated Portal Network. Our purpose is setting a chat between both federated portals. We have a problem when we activate the link for Launching the Collaboration Launch Pad (CLP) in the consumer portal (EP7 SP10). The prod