Using calculation variables in OBIEE analysis

Hi,
I have a report where I have to calculate various ratios, including forecast calculations.  If I write a pseudocode for this, it will involve several variables (intermediate step values).
In BO, we have concept of variables in Webi to store intermediate results.  Is there anything similar in OBIEE which we can use ? Can you please help.
Thanks

Hi,
Global variables will work in the same way as local variables so you are using them correctly.
Business rules are just really glorified calc scripts, if you want to know about calc script commands have a read of the tech ref :- http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_techref/frameset.htm?launch.htm
It will have all the calculation commands and functions and descriptions on how they work.
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • How to pass the values to stored proc using presentation variable in OBIEE

    Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
    There are 6 reports say ‘A’,’B’,’C’,’D’,’E’,’F’ in the same subject area.
    The reports are being configured with prompts using either the repository/presentation variables.
    One of the reports say ‘A’ has been configured to pass the values using presentation variables from the prompt in Advanced Tab of the report request to the stored procedure defined in the Execute Before Query section of the connection pool.
    After running another report ‘B’ in the same subject area, upon visiting the report ‘A’ view display error is being seen ( Please have a look below screen shot for your reference) .
    Speculate the issue is around presentation variables of report ‘A’ getting initialized even before running the report.
    Appreciate your earliest advise as this is a prod issue.

    Hi Prasad,
    I got your note, you should not use Session variable syntax to call presentation variable.
    you should use like @{AIC_PROJ_PLAT_SEQ_NO}
    One more thing: first test the variable AIC_PROJ_PLAT_SEQ_NO value then try to pass to SP.
    Hope this helps

  • Problems using substitution variable in Web Analysis

    Dear all,
    I have a Web Analysis report that I need to show a raking table with the current month.
    For that I create a variable in Essbase that is updated with that date (E.g.: varCurrentMonth).
    After that I use it as my substitution variable to filter my date dimension in a report data source (E.g.: Scr5, row: product, column: date dimension & measure):
    2008 (current month)
    Product $ qty.
    AAA 100 10
    BBB 90 7
    CCC 80 5
    The problem is that in our cube we need to use an alias in every dimension not to have duplicate members (E.g.: DT.Date, MS.Measure, PD.Product, etc). And when we use it we need to set up the variable in Essbase using that alias (E.g.: DT.Feb/05/08). And if we use that variable as a substitution variable in the report data source the label displayed is the DT.2008 and not 2008 as expected.
    Does anybody have an idea how to solve that?
    Many thanks,
    Thiago Gabriel

    You usually get this error message if you are trying to assign a value from a sub var to a member that does not exist.
    e.g. trying to put FY08 which is a year member against a period dimension
    or trying to use a sub var of FY09 which does not yet exist in the essbase, so say you added a new year in planning FY09 and used the sub var in the form but have not refreshed the database then it would fail because the year would not have been pushed down to essbase yet.
    or the value of the subvar does not match a member name exactly
    or using a sub var name that does not exist in essbase, e.g. using &nextYear but the sub var has not been created in essbase.
    You can definitely use subsitution variables in columns in the version you are using and prior version.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Data and Dashboard Security using ROLES Variable in OBIEE 11g

    Hi all,
    I'm currently using OBIEE 11g. I'm wondering how to implement the security for data and dashboard in the 11g.
    Below is the sample of how the security matrix requirement when I use the 10g version. In 10g, we usually use GROUP (for the data filter in RPD) and WEBGROUPS (for dashboard objects) variables in my initialization block to read from database. As we have 2 different variables, it is possible to control security separately for data and dashboard.
    GROUP | Country
    G1 | US
    G2 | FR
    G3 | UK
    WEBGROUPS | Dashboard
    WG1 | D1
    WG2 | D1
    WG3 | D1
    WG1 | D2
    WG2 | D2
    WG1 | D3
    WG3 | D3
    WG3 | D4
    Now, in 11g, the recommendation is to use ROLES variable (for application role). So, how would I apply the required security matrix above in 11g using just ROLES variable? Do I still create G1, G2, G3, WG1, WG2, and WG3 as application roles then only use G1-3 in the RPD to filter the data and only use WG1-3 in the analytics to serve as webgroups?
    Any advice on this? Thank you very much.

    "...Could you elaborate more?"
    I mean that role creation and user->role assignment will be managed outside of to the obiee interface - whether that's via the database, LDAP, fmw etc.
    Webgroup creation and assignment is managed within the obiee interface and I think that has a lot of benefits - generally you have people responsible for shared folders and dashboard creation, so having them responsible for webgroups and presentation permissions is preferable for me.
    "are you saying that I use the role G1-3 only in the RPD, while using the role WG1-3"
    Yes .. I'm assuming you have something like
    G1 | US
    G2 | FR
    G3 | UK
    WG1 | Finance
    WG2 | Marketing
    WG3 | Sales
    Which becomes
    R1 | US
    R2 | FR
    R3 | UK
    R4 | Finance
    R5 | Marketing
    R6 | Sales
    And John belongs to R1 and R4, Fred belongs to R2 and R4 etc. So you would set your data filters against R1-R3 and use R4-R6 like webgroups in the presentation services.
    Regards,
    Robert

  • Use of variables in obiee

    Hello!!!
    I m new to the forum and wanna your help,next week i have to give a presentation on variables , i know how to create them and about their scope but wanna implement its use.(use of all types of variables ie,(repo sitory(static and dynamic),session(system and non system) and presentation.
    Furthermore i wanna know about the use and what are presentation variable
    So pls help, asap
    Regards,
    Priyanka

    And what do you don't know?
    How to set a presentation variable in dasboard? Answer: use a prompt see in here: http://gerardnico.com/wiki/dat/obiee/presentation_variable
    How to use a variable after is set? It is very well described in http://shivabizint.wordpress.com/2008/10/02/oracle-bi-ee-variables-overview/ @{var_name}{defaultvalue}
    you can filter data:
    - static 'col = value'
    - is prompted (in this case it will be filtered on value that comes from navigation or from a prompt)
    - on other request
    - finally from a variable
    you can use variable to make for example topn and the user wants to modify number of topn
    so you set a variable from a prompt and use that variable on topn(value, @{var_nr_values})
    you can find a lot of docs on this topic, kart give you some links...
    Make research, and when you have a problem please come back with the isue and we happily try to help...
    Regards
    Nicolae

  • Using presentation variable in OBIEE 11g

    Hi,
    Is is possible to use a prompt to filter data from two sections of a dashboard?
    My dashbaords contains two sections , each pointing to seperate reoport. Can I filter data in the two reports using parameter selected in one prompt?
    If not possible , the wht is the way to achieve this.
    Thanks and Regards
    Santosh

    Thanks Rondo,
    In our project we have e-Biz Oracle ERP application where actuals are captured. Customer is using a third pary tool called Neotix to buid RPD automatically based on Database (oracle) of this application.
    Nw we are building new application for planning and budgeting in Hyperion prodicut by oracle where Database is Essbase. I will be creating an RPD for budget/planning reports based on Essbase data source.
    For creating on report for Actual Vs Budget, I need to have both Actuals data from e-Biz and Budget data from Hyperion comming out of one RPD.
    So I want to merge those two RPDs and build by Actual vs Budget report based on the Business model from this merged RPD.
    I want to understand hw to build the buisness model in the merged RPD so that I can get the acutal and budget data together in the same report using Answers. I am using OBIE 11g.
    Please tell me wht should be my reporting strategy for achieving this. Can I create single business model for two dataa source which I will import in phyisical layer? How Do I join the two data sources in my RPD, in the business model? What are the challanges to do this kind of model in the merged RPD. ? Do u think there will be challanges to joing Essbabase members (since it is multidimensional cube ) with e-Biz data source in physical layer?
    If I build multiple subjects area (one for e-Biz datasouce and another for Essbase data souce) what modeling steps, I need to implement in presentation layer of the merged RPD?
    In answers how to I build report so that actual and budget data can be displayed together? Are there any technical challanges to implement such report in Answer? If yes, then what are the ulternative approaches?
    I came to know that if it is not possible to get both actual and budet data together in one report, then I should build a dashboard with two sections , and build two reports (one for actuals data and another for dudget data ) and then place one report in one section and another section in another section in the dashboard. Is it a good approach? Is there any better approach?
    I want to use one prompt to filter data for actuals and budget . eg. for year 2012, I want to dislpay Actuals as well as Budet values?
    Please provide your expert inputs...
    Thanks and Regards
    Santosh

  • Alternative for session variable in OBIEE Translation

    Hi all,
    I am working on translating OBIEE reports to various languages. I am using specific xmls for particular language which has entries for translated text.
    Now in few of the reports I have case statements/BINs defined in column formula. This 'column formula' content is not a part of xml and hence not getting translated.
    One of the solution that i found was use of language specific session variable defined in rpd. When user logins with specific language, corresponding translated text is provided by session variable. This approach was correct and is working fine.
    But the problem is in few of my reports there are about hundreds of such case statements and hence thousands of texts to be translated for each particular language. hence it is a cumbersome task to define session variable for each of these column formula. Plus I am not sure about the performance issue that will be there after defining thousands of such session variables.
    Is there any alternative available for use session variable in OBIEE translation? Please reply.

    Hi,
    Check if this helps-
    http://obiee10grevisited.blogspot.in/2012/05/changing-language-in-obiee-on-fly.html

  • Between-Filter on Column using calculated presentation-variable values

    Hello everyone,
    i'd like to know whether it is possible to filter a column with a Between-Statement using two calculations done on a single presentation variable in Oracle BI Answers
    What i have:
    - OBIEE 10g
    A line-chart, which shows earnings over a period of several years: In 1999 it might be 100.000€, in 2000 it might be 80.000€,..., in 2009 it might be 95.000€ and so on.
    What i want:
    Now i'd like to create a dashboard prompt to be able to choose a certain year, for example 2006.
    The chart then should show data for the year given (2006...) and two years before(2004, 2005) and two years after the chosen year(2007,2008).
    Example:
    If 2006 is chosen, then data from 2004 to 2008 should be shown in the chart
    If 2000 is chosen, then data from 1998 to 2002 should be shown in the chart.
    What i did:
    - I created the Prompt, set its presentation variable to var_year.
    - I then created a filter on my years-column, choosing "Between" from the DropDown-List.
    - I added two 'Variable-fields within the filter-dialogue', each filled with var_year and a default value.
    - I tried to add a +2 or -2 to the variable-expression field, but (ofcourse) got an error.
    Thanks in Advance and greetings from Germany,
    Chris
    Edited by: user12288481 on 04.08.2010 13:18

    Sorry for not answering to your Posts yesterday.
    I have to admit that i was unable to solve my problem, although the solutions posted, seemed to be quite promising.
    Hammett81's solution
    First, I gave Hammett81's solution a try and created a filter group using the 'Add filter' option/dialogue box.
    This Filtergroup consists of 5 single filter expressions, which have been connected by ORs:
    The way i created those filters:
    In the 'Create/ Edit Filter' i've chosen 'is equal/ is in' - Operator.
    Then i was given the chance to add a 'value' or to add 'Variable --> Presentation', which summons 2 textboxes (Variable Expression and Default)
    Everything i put into the variable expression field will be put into the @{} bracket by OBIEE, after clicking ok.
    So it is not possible to use +1, +2, -1,-2 etc. within this field, as this would lead to @{var_year +2} for example, which ofcourse does not match the presentation variable's name.
    On the other hand, if i do not use a Variable Expression but a "Value field", then i can write @{var_year} +2 for example.
    In my opinion, obiee wants to use the expression as a simple value though, rather than use it as a variable and therefore won't check the presentation variables value, when it tries to filter the data.
    John's solution
    Regarding Johns answer, i am not sure where to put the filter expression. Should this be added into the SQL-Query (Advanced-Tab) or do i have to add it within the columns formula? (fx)
    Edited by: Chris2010 on 05.08.2010 09:36

  • How to  use data function using characterstics variable for calculation on

    how to  use data function using characterstics variable for calculation on  attribute as key figure

    Hi Gayatri
    Did you not see my answer for CASE because CASE does indeed offer the use of the BETWEEN clause, but DECODE does not. Let me give you a little synopsis of DECODE.
    In its most simple form it takes 4 values and looks like this: DECODE(A, B, C, D)
    This essentially means, IF A = B THEN C ELSE D
    The trick to solving BETWEEN in a DECODE is to work out algoriths where A = B. Because we don't know how many values are between 00 and 99, although I could guess there were 100 we could of course have 100 parts in the DECODE but that would be awful. How about if we look at it another way and say this:
    IF PART_NUMBER < 'SDK00' THEN pay_amount
    ELSE IF PART_NUMBER > 'SDK99' THEN pay_AMOUNT
    ELSE pay_amount + 100
    This statement only had 2 hard coded values, but how to make DECODE work with less than? Easy, we use the LEAST function. The LEAST function takes 2 values and returns the one with the lowest value. So I use LEAST(PART_NUMBER, 'SDK00') then whenever the PART_NUMBER is lower than SDK00 it will be true. A similar situation exists for the opposite function GREATEST. Putting all of this together then, you can do this:
    DECODE(PART_NUMBER, GREATEST(PART_NUMBER, 'SDK00'), DECODE(PART_NUMBER, LEAST(PART_NUMBER, 'SDK99'), PAY_AMOUNT * 100, PAY_AMOUNT), PAY_AMOUNT)
    In English this can be read as follows:
    IF the PART_NUMBER is greater than or equal to SDK00 and the PART_NUMBER is less than or equal to SDK99 THEN PAY_AMOUNT x 100 ELSE 0
    Best wishes
    Michael

  • How to aggregate data with BI Publisher using an OBIEE analysis

    Hello,
    I'm new with BI Publisher, and I have a concern about the ability for BIP to aggregate data.
    I am creating a data source from an OBIEE analysis containing the columns "Year", "Month", and "Revenue".
    I want to use this source for 1 report containing several pages. One of the page has a simple table displaying only the Year and the Revenue.
    But I get as many rows as number of months is the year.
    And I cannot find any way to have the data aggregate inside my PIB table.
    Can someone help me finding the solution?
    Many thanks in advance

    Hi,
    Unfortunalty BIP doesn't aggregate anything, like the BI server does. It will always show data on the lowest level.
    If you use a query on the BI-server let the BI server do the aggregation and just remove the "Month" column. If you don't want to remove it from your OBI analysis, copy the logical SQL from this analysis to BIP. And select OBIEE as a datasource.
    Then remove month from your query.
    Regards, Machiel

  • Sort Order option disabled when using OBIEE analysis?

    Hi everyone
    I've build a BIP report using the online layout editor.  My data model is based on an existing OBIEE analysis. When I go into the data model and go into the properties of a column, the Sort Order option is somehow defaulted to "No Ordering" and the dropdown menu is actually disabled, so I can't change anything.  Is this normal/expected functionality or am I missing something somewhere?
    Thanks

    I don't think it is possible. Here are the sort statements in this program.
    <u>Without Serialization</u>
    sort t_idoc_control_r
      by sndprn sndprt sndpfc mestyp
         mescod mesfct test serial.
    <u>With Serialization</u>
    sort t_idoc_control_s
      by sndprt sndprn obj_type chnum chcou.
    In neither of them, the document number is used. There is no guarantee that they will be processed in the document number order, even if serialization is used.
    Regards,
    Srinivas

  • How can we use Session Variable in Answers or Analysis?

    How can we use Session Variable in Answers or Analysis?

    Again, duplicate cross-posting!
    See rukbat 's post here: Re: BI Apps 7.9.6.3(Agent Issue)

  • MDX Generation Issues (using Evaluate) in OBIEE Analysis Report

    Hello Everyone,
    I am trying to use Evaluate function in MDX (on a OBIEE 11g Analysis report) to restrict the number of values that i am pulling from the Essbase cube. The MDX Evaluate syntax looks something like this
    EVALUATE('TOPCOUNT(%1.members,100,([Dimension1],[Dimension2],[Dimension3],[Dimension4]))',"Accounts"."Gen10,Accounts")
    EVALUATE('TOPCOUNT(%1.members,100,([Dimension1],[Dimension2],[Dimension3],[Dimension4]))',"Products"."Gen10,Products")
    I am putting the above evaluate formula in the "selected columns" on the OBIEE Analysis report. So i am pulling accounts, products and the measure from the essbase cube.
    However I am getting the following error when the analysis report is run
    Query Status: Aggr Essbase Error: *Repeated dimension [Accounts] in MDX query*
    Do we need any configuration changes/ settings on the RPD model to ensure we dont get this error?
    Regards
    Aby

    Hi veeravalli,
    Thank you for you reply. I got it.
    However, any idea to solve the issue?
    I tried to do it in RPD by case when,
    e.g. Acutal Sales: case when scenario='Actual' then salesamount end
    Budget Sales: case when scenario='Budget' then salesamount end
    Actual/Budget%: (Actual Sales/Budget Sales) *100
    So there is no error, Actual Sales and Budget Sales are correct, but Actual/Budget % shows nothing in report
    Thanks.
    BCHK

  • Possible to use local variables in Calculation Manager

    Hi,
    I'm using calculation manager in EPMA for the first time. Have not found any function for using "local variables", i.e. variables that can be used for fixing on the current members a user has selected in a form. Do someone know if it is possible to use that functionality in calculation manager? And in that case, how do I find it?
    Thanks!
    Regards
    Mats

    Hi,
    I guess you are referring to local variables in Essbase Administration Console. When you are in calculation manager (System View), you can go to Tools->Variables. There you can create variables at application, database (global) or business rule level (local variable). You can use these in Business rules by placing the name in curly bracket {...}.
    The usage of the variables in the forms is the same as before.
    If however, what you meant to say by local variables is substitution variables, yes you can use them in Calc manager the same way you use in calc script.
    Cheers,
    Alp

  • Use of a Session Variable in another session variable in OBIEE

    Hi,
    I want to use a session variable say A to calculate value of another session variable B. I am using valueof(NQ_SESSION.A) in the initialization block of variable B. But the result is coming blank. I know that the value exists. I have also set the precedence for B to run variable A first.
    Am I missing something here?

    vkos, it works fine for me as my first variable it's initialized when a user logins so the second variable can use its value. What you are trying to do it's not possible. It's not clear if the OP is trying to do the same thing but I will agree that if it is trying to initiliaze a session variable at runtime this is not going to work. You will either have to use presentation variables or update the session variable via GO URL or via Advanced settings in Answers. See the following posts:
    http://oraclebizint.wordpress.com/2008/02/28/oracle-bi-ee-101332-updating-session-variables-through-go-url/
    http://oraclebizint.wordpress.com/2008/02/25/oracle-bi-ee-101332-updating-session-variables-from-dashboards-using-presentation-variables/

Maybe you are looking for

  • ICloud with multiple devices - one Apple ID

    2 ipads - one for me and one for my children 1 apple ID - mine (kids aren't technically old enough) 2 - emails - .mac and .me (currently the kids have aliases under the .me which are collected in a folder Somehow in the set up my original ipad was se

  • Bought a new mac pro but when i log in to my itunes account my music is not in my iTunes

    bought a new mac pro.  I authorized the laptop.  But I don't see my music when I logged in to my itunes account.  I'm not sure what else I need to do. 

  • I can't print complete pages from e-mails that I had no problmes with prior to using Firefox

    I received an online bill from an account of ours. I could open the pdf & view it but when attempting to print the bill, only portions of the bill would print. Today I tried to print a coupon with a bar code at the bottom of the message but only the

  • Screens list and thunderbolt external displays

    I'm on Mac os 10.7.2 with a macbook pro and an external monitor connected via thunderbolt. When I try to get a list of the screen with the Screen.screens I only get 1 display, which is the monitor from my macbook. The external monitor doesn't appear

  • 23.98 capture problems

    I keep getting the same error at the end of the capture for "Advanced Pulldown Removal" "Breaks in VFR/Pulldown Cadence were detected in CLIP during the last capture attempt." Some clips work fine. Others I get this. Everything was filmed on a DVX-10