New Logical Column using repository variables

Hello all,
Can anyone let me know how we create a new logical column in OBIEE 11g in the BMM layer using the repository variables..Is there any way/chance to create such new logica columns.If so please let me know how we will be doing that

This is alwayz possible.
Here is the syntax.
CASE WHEN VALUEOF(VAR1) ='ABC' THEN
"Sample App Lite Data"."".""."F10 Revenue Facts (Order grain)"."Units"
WHEN VALUEOF(VAR1) ='XYZ' THEN
"Sample App Lite Data"..."F10 Revenue Facts (Order grain)"."Discnt_Value"
END

Similar Messages

  • Derived logical column using Row values in OBIEE11g

    Hi Experts
    I have a requirement whereby I need to create say 100 new logical column in obiee using the row values of one dimension.
    For eg. say I have dimension values like A and B in one of the table ,  I need to create logical columns like C=A+B and D = A/B and E = AxB as such when the user drags this to the analysis the calculation should happen automatically.
    The problem is they are in the rows and not the coulmn , so I can't do plain calculation like sales per Unit = Sales/Units - as Sales and Units are two differnet measure column.
    How to achieve this in RPD.
    Regds

    Hi
    Pls. find below the examples :
    You have a dimesion called KPI which has soem KPIs.
    KPI           Measure Values
    KPI1          10
    KPI2          20
    KPI3          50           
    etc
    Now I need to calulate a driven KPI i.e KPI10 which is KPI10 = KPI2/KPI3 , and I need to do that in RPD.
    I know I can do it in Front end analaytics by using Pivot or Selection steps . But I want to do it in RPD.
    Regds

  • New Logical Column w/Case Statement

    OBIEE 11g
    I have a created a logical column in the BMM that I would like to display a certain output if certain criteria are met. I have a case statement like the following:
    CASE WHEN COLUMN1 = 'Honda'
    AND COLUMN2 = 'Accord'
    THEN 'Sedan' ELSE NULL END
    However when I run a report in Answers with just the new logical column created it is not showing any values. I have validated that in the dimension table there are rows that meet the above criteria.

    I dont see anything wrong in the condition, I've tried with similar case for both based on logical columns and physical columns.
    Can you check the physical query for the same to see how its executing?
    Between: I think you can go with COLUMN2 to define the type of vehicle is? values you might have used for example, but the more specific column is enough to define the type.

  • New Logical Column Datatype

    I am trying to add a new logical column to the BMM layer. But by default the data type is showing as UNKNOWN and is grayed out. How can i change it? I am trying to perform a calculation on the new column added.
    Thanks!

    Hi,
    user10797474 is correct. It takes the default datatype depending on your logic. So in the properties of the column, check the "Use existing columns as source" and then click the button with the three dots. Then create your logic in this expression builder. Select the columns and formulas from the list so you do not have to type them. Once you save from the expression builder, the default datatype should be set.
    Rajesh

  • Can we use repository variables in bi publisher like in anwers

    can we use repository variables in bi publisher like in anwers
    if possible then how

    Yes,
    but you should be using Oracle BIEE as Datasource in order to use the variable of repository
    you 'll have to follow this syntax: valueof("variable")

  • Logical column using data source from 2 generations of same hierarchy

    Hi experts,
    I'm using Essbase as my data source in CEIM physical layer,
    and I have a hierarchy called "Entity" which contains different level of companies,
    in Generation 2 I have only one member called "group totals" and in Generation 3 are 5 members representing 5 different industries,
    I need to use these total 6 members as slider on the top of the view(a Dial),
    and the measure I want to show is scaled in rate, which I can't simply sum up those five members in Gen3 to get Gen2 measurement.
    I tried to create a logical column using Entity-default(the alias table) as datasource, it worked but was not sorted in outline style.
    I tried to sort them using calculate items in selection steps, but calculate items seemed cannot be shown as section or slider.
    So I wonder if I can simply create a logical column that sourced from different generations(in this case, my Gen2 and Gen3) of same hierarchy,
    is it possible to do such things?
    Thanks for reply.

    You could try General Database Discussions the main db foum.
    What are you using to migrate your database? Why is it being mapped from varchar2(8) to varchar2(32). It sounds like someone/something is intervening here.
    Barry

  • Is it possible to use repository variable in conditional formatting

    Is it possible to use repository variable in conditional formatting . if no then is there any workaround for implementing the same....
    Also i came across a sql of an init block.. which goes like 'exec OracleBi..procedure_name'
    Is 'OracleBi..' a keyword or something like that....

    Refer http://www.biblogs.com/2008/09/03/obiee-repository-variables-filtering-and-conditional-formatting/
    Init blk is calling any procedure here with name OracleBI here...no any specific significance.
    Hope this help
    Edited by: Deepak Gupta on Aug 12, 2011 8:27 AM

  • One logical column used twice in the prompt

    Hello Gurus,
    I have a report which is presently showing
    Sales across country
    COuntry Name | Sales
    USA 100$
    Japan 100$
    Country NAme | Statename 1 | Satename 2 |
    Usa 50$ 100$
    But State 1 and state 2 are one logical column called state in the RPD.
    User should have the ability to slect some states in state1 prompt and slect some states in state 2 prompt.
    If it is not clear let me know?
    With regards!
    Alan

    In the prompt take the state column... edit the fx as
    Case when 1=0 then "any varchar column name" else "State" end
    Drag the same column twice in the prompt.. edit the fx as
    Case when 1=0 then "any *other* varchar column name" else "State" end
    for the both the columns define the presentation variable pv_state1 , pv_state2
    so now you have the same column being used in prompts for two states..
    In the Report filter add the filters as
    state is equal to pv_state1
    OR
    state is equal to pv_state2
    Note-> to add presentation variable in filter, you have to click on Add-->presentation variable
    Your report is ready...
    Hope it helps...
    Thanks
    Ashish Gupta

  • Help using repository variable in dashboard text

    Hi,
    we have a dashboard section that shows current announcements regarding data issues, etc. This is just using a plain text object on the dashboard. I need to add the following to the top of the text: "Data loaded on xx/xx/xxxx".
    I've created a static repository variable called "DW_LOAD_DATE" and populated it with the proper date/time.
    I'm 100% able to use this in an answers query, but I'm stuck trying to figure out how to get it to show up in a dashboard plain text section with no Answers behind it. I've tried:
    {biserver.variables['DW_LOAD_DATE']}
    @{biserver.variables['DW_LOAD_DATE']}
    {biserver.variables[DW_LOAD_DATE]}
    @{biserver.variables[DW_LOAD_DATE]}
    In all cases, the only thing that shows up is the exact text from above - the substitution isn't being done properly. Can someone help, I'm obviously doing something dumb.
    Thanks!
    Scott

    Ok, I got the following to work (kind of):
    @{biServer.variables['DW_LOAD_DATE']}
    I was thrown off because the "preview" window shows it as the above string without doing the variable substitution.
    Now my last question - the above variable is stored as a TIMESTAMP, because in some cases we need to know the time in addition to the date. When it's showing in the dashboard text, I see the following:
    Data was last loaded on TIMESTAMP '2011-01-06 18:00:00'
    Is there a simple way to format this so it shows up like:
    Data was last loaded on 1/6/2011 18:00:00
    Thanks!
    Scott

  • Logical column using union

    Hello All,
    I have posted a similar thread before,now the requirement is little different ,so i am posting as a new thread
    I have a column organization code with values 1000,1001,1002,1003,1004,1100,1101,1200,1201,1300,1301 ....
    My customer asked me to create groups like this
    Group1 = All 1000's,All 1200's
    Group2 = All 1000's,All 1300's
    Group3 = 1001,1003,1004,1201
    Group4 = 1002,1200,1201,All 1300's
    and one logical column should contain all these groups.
    create a logical column Logical_Groups which contain all the groups as values.
    Its very urgent.please help me out.
    Thanks in advance.

    Hi,
    Thanks for your replies.I have tried your solution(yet to try Nico's ).
    I have created a logical column like this.
    CASE WHEN
    "TestDB".""."Nat_RBM"."PROJECTDATA"."ORG_CODE" IN ('1513', '1532', '1535', '1593') THEN 'Tina' else ''end||''||
    case WHEN ("TestDB".""."Nat_RBM"."PROJECTDATA"."ORG_CODE" LIKE '20%') OR ("TestDB".""."Nat_RBM"."PROJECTDATA"."ORG_CODE" LIKE '12%') OR ("TestDB".""."Nat_RBM"."PROJECTDATA"."ORG_CODE" LIKE '36%') THEN 'Jan' else ''end||''||
    case WHEN ("TestDB".""."Nat_RBM"."PROJECTDATA"."ORG_CODE" LIKE '20%') OR ("TestDB".""."Nat_RBM"."PROJECTDATA"."ORG_CODE" LIKE '12%') OR ("TestDB".""."Nat_RBM"."PROJECTDATA"."ORG_CODE" LIKE '75%') THEN 'Zack' else'' end
    The results its giving is:
    Jan : All 3600's
    Jack : All 7500's
    Tina: '1513', '1532', '1535', '1593'
    JanJack : All 2000's,All 1200's
    But,what i want to acheive is this
    Jan : All 2000's, All 1200's , All 3600's
    Jack : All 2000's, All 1200's, All 7500's
    Tina: '1513', '1532', '1535', '1593'
    Is it possible to acheive this?
    Thanks in advance

  • Accessing logical columns using metadata table

    Hi,
    I have a requirement to store data coming from multiple sources in various format into single table as the number of tables required is not determinable at development phase. Hence I have defined 2 tables,
    1. Metadata table storing the information about logical columns in the incoming data.
    2. Raw generic table where the actual data would be stored.
    While accessible the logical data first I need to access the metadata table to fetch the column details and then access the raw table to provide actual data in those columns. Even though this option is available the code might not remain readable as need to use actual raw table column names in the code.
    I have thought of view based access but again number of views required is not known at development time. Is there any option/feature available which would be able to provide logical view for the raw data?
    thank you in advance.

    Hi
    Firstly, this sounds rather messy and is not something I would consider doing - but I shall give you the benefit of the doubt that all other options have been exhausted.
    A way I can think of is that you could define your metadata a bit like the oracle data dictionary, then you could use something like APEX where you can use dynamic SQL to show a report on the data. Imagine something like this
    DECLARE
    l_sql VARCHAR2(32000);
    BEGIN
    l_sql : = 'SELECT ';
    FOR i IN
    (SELECT column_name
    FROM my_table_data
    WHERE table_name = :TARGET_TABLE)
    LOOP
    IF i = 1
    THEN l_sql := l_sql||i.column_name;
    ELSE l_sql := l_sql||', '||i.column_name;
    END IF;
    END LOOP;
    l_sql := l_sql||' FROM '||:TARGET_TABLE;
    RETURN l_sql;
    END;Obviously you can make stick in predicates etc. if you need to but that would be a starting point?
    Not very pretty though...
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Select Column using Session Variable

    I have set a session variable to hold the name of a column
    dependent on who the user is. Is it possible to use a session
    variable to select a column in a database table? If so, how? Does
    it need a where statement?
    Something like this?:
    <cfquery name="rsSelectColumn" datasource="Test">
    SELECT Column 1, Column 2, Column 3 = Session Variable
    FROM tbl_data
    </cfquery>
    Thanks,
    Dave

    I think you want to do this, if the value in the session
    variable is the actual column name:
    <cfquery name="rsSelectColumn" datasource="Test">
    SELECT Column 1, Column 2, #Session Variable# AS Col3
    FROM tbl_data
    </cfquery>
    this way you can call any column stored in the session
    variable, and it will always be usable from the QUERY as COL3
    regardless of what column you used.
    If that is what you want to do - it IS that simple.
    Sometimes we over think things too much.

  • Date prompt using repository variables adds "DATETIME" literal to narrative

    We are using repostiory variables to set initial date prompt filter values for our report. When we do that we get the "DATETIME" literal string show up on our report as in TIMESTAMP &#39;2011-08-18 00:00:00&#39 (I am posting the exact literals from the report.
    Is there any way to fix this so "TIMESTAMP" does not show?
    by the way the following procedure was followed in trying to create this narrative.
    http://bischool.wordpress.com/2009/06/17/set-yesterday-or-some-date-value-as-default-in-obiee-dashboard-prompt/
    We are doing this in OBIEE 10.1.3.4.1

    Double click on the connection pool and got to General tab.
    In the excute on the connect field add the following Script.
    ALTER SESSION SET NLS_DATE_FORMAT = 'MM/DD/YYYY'.
    Thant will solve the problem of time stamp.
    I tried this in my recent project and it works. Let me know if you have any issues
    Thanks
    If it is the only issue coming up in the narrative view then follow Ashish method.
    If the date problem persists for prompts and everywhere in the answers follow my method
    Edited by: Venkat Krishna on Aug 19, 2011 11:01 AM

  • Can we use repository variables in SQL statement of column prompt?

    Hi Dudes,
    Below is the query
    SELECT "- End Date"."End Fiscal Year" FROM "Consumer Sector" WHERE ("- End Date"."End Fiscal Year" = valueof (current_year)) or ("- End Date"."End Fiscal Year" = valueof (current_year) -1)
    when use this sql in criteria prompt getting error.
    Please suggest .
    thanks.sri

    Make sure your syntax is correct it should be like VALUEOF("CURRENT_YEAR")-1
    If you still have issues then VALUEOF("CURRENT_YEAR")-1 cast it to int before you subtract.
    If helps pls mark as correct else let share error message

  • Name of column using text variable in Query Designer

    Hello!
    I have 3 columns with amounts, 1 characteristic value variable and 1 text variable.
    For example, names of this columns - 2005 year, 2006 year, 2005/2006.
    I fill names using only one text variable and I can call first 2 column. I use set offset of variables for second column.
    How can I call third column ''2005/2006"?

    Hi,
    u need a second Text varaible and u need to correct your existing text variable.
    Prerequisite: u need for your key figures the same KF-variable
    1. Edit your existing text variable  lets say its called &Text1&
    2. Select your Text variable and go to tab "replacement path"
    3. Choose a) InfoObject b) Choose key
    4. In section "use value range" choose from  value
    5. Create a new text variable lets call it &Text2&
    6. make exact the same settings as for your first text variable butchoose for "value range" to value
    Now u use this text variables for your KF:
    KF 1 -> &Text1&
    KF 2 -> &Text1&
    KF 3 -> &Text1& / &Text2&
    This should make it!!
    Regards
    Tobias

Maybe you are looking for

  • Newly added discoverer responsibility does not open the workbook sheets

    Adding reports to newly added discoverer responsibility does not open the workbook sheets Actually its a new responsibility where i add existing workbook, also shared the business area but when trying to execute the report through my user firstly it

  • Remove ADC port, add second DVI to G5??

    Is it possible to remove the ADC port from my dualG5 and replace it with a second DVI port? I want use a second monitor with my system - Any suggestions on how to accomplish this would be most appreciated. I already have a 20"cinema display attached.

  • HT204053 imac- setting up icloud- no icloud display in preferences. How do i install it?

    trying to set up my sisters imac do do back-up on cloud. Under system preferences there is no icloud icloud icon- only wireless etc. Where/how do i turn on the icloud icon

  • Select for all entries

    Hi,       I am new in abap reports. Now i want to know why we should use select for all entries in query. We can do retrieve directly by accessing the table in database dictionary.       Experts please give me the reasons I want to know the concepts

  • How to store XML data into Oracle Table

    I had trouble to store XML data into Oracle Table with XDK (Oracle 8.1.7 ). The error is: C:\XDK_Java_9_2\xdk\demo\java\Test>java testInsert Dept.xml <Line 1, Column 1>: XML-0108: (Fatal Error) Start of root element expected. Exception in thread "mai