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

Similar Messages

  • Essbase data crossjoin error in OBIEE analysis report

    Hi all,
    Anyone got the following error in OBIEE analysis report:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 96002] Essbase Error: Syntax error in input MDX query on line 13 at token 'crossjoin' (HY000)
    The OBIEE version is 11.1.1.6.2
    Data is from Essbase Cube, version 11.1.2
    The report is a simple cross tab table and we added 'After' aggregation to show grand total.
    The error show up when we drill down on dimension, click '+'.
    However, if I remove the 'After' aggregation. There is no error at all
    Thank you
    BCHK

    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

  • Issue while opening the web analysis reports

    Hi,
    One of our user is not able to open a web analysis report with an error messages saying
    "Java.Lang.Exception: Unexpected HTTP status code of 500 received from server"
    "Document does not exist or no authorization to open the document"
    Other users with the same level of access are able to open the report fine and also the same user is able to access the report fine with a test id from his machine.
    What could be wrong? Any suggestions please.
    The only thing I see here, something wrong with userd ID or password.
    Thanks
    Prasad

    Hi,
    I had also faced this problem earlier. I was using HFM as data source for WA reports. After searching I found that there was some change at HFM level. Some dimensions/members had been deleted or added in HFM. And I was using those missing members in WA Grid.
    I had to recreate my reports again as I didn't get any other way to deal with this problem.
    Please shared any other alternative option, if you found while working on this issue.
    Thanks & Regards,
    Mohit Jain

  • XML File Generation Issues using DBMS_XMLGEN

    Hi,
    I am using DBMS_XMLGEN package in a stored procedure to generate an XML file on Oracle 10 G R2 .But, the problem is the format in which the file is generated.
    CREATE OR REPLACE TYPE "state_info" as object (
    "@product_type" Number
    CREATE OR REPLACE TYPE prod_tab as TABLE OF "state_info";
    CREATE OR REPLACE TYPE state_t as object (
    "state_code" CHAR(2),
    "state_info" prod_tab
    CREATE OR REPLACE PROCEDURE get_xml_serviced_state (p_clob OUT clob)
    IS
    v_xmlctx DBMS_XMLGEN.ctxhandle;
    v_str VARCHAR2 (1000);
    BEGIN
    v_str := 'SELECT state_t(a.st_cd,CAST(MULTISET(select veh_type_id from svcd_st where st_cd =a.st_cd)as prod_tab)) as "state_info"
    from svcd_st a where a.st_cd in (select distinct st_cd from svcd_st) group by a.st_cd having count(*)>=1';
    v_xmlctx := DBMS_XMLGEN.newcontext (v_str);
    DBMS_XMLGEN.setrowsettag (v_xmlctx,'serviced_state');
    DBMS_XMLGEN.setrowtag (v_xmlctx,NULL);
    p_clob := DBMS_XMLGEN.getxml (v_xmlctx);
    printclobout(p_clob);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    WHEN OTHERS
    THEN
    RAISE;
    END;
    SHOW ERRORS
    Output :
    <serviced_state>
    <state_info state_code="VA">
    <state_info>
    <state_info product_type="2"/>
    <state_info product_type="5"/>
    <state_info product_type="9"/>
    </state_info>
    </state_info>
    <state_info state_code="AB">
    <state_info>
    <state_info product_type="2"/>
    <state_info product_type="5"/>
    <state_info product_type="9"/>
    </state_info>
    </state_info>
    </serviced_state>
    Required it in below format:
    <serviced_state>
    <state_info state_code="VA">
    <state_info product_type="2"/>
    <state_info product_type="5"/>
    <state_info product_type="9"/>
    </state_info>
    <state_info state_code="AB">
    <state_info product_type="2"/>
    <state_info product_type="5"/>
    <state_info product_type="9"/>
    </state_info>
    </serviced_state>
    I just need to put in all the rows under one single tag.Appreciate your early responses.
    Thanks.

    Your wanted XML output is NOT VALID...(try it yourself on http://tools.decisionsoft.com/schemaValidate/)

  • Using EVALUATE function

    Hello to all!
    I have a problem using EVALUATE function in BI report column. In my schema I have created stored function.
    Call looks like
    evaluate('PKG1.GET_STAMP_DATE(%1)' as date,"Доп. аналитики"."Документ")
    Состояние: HY000. Код: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 904, message: ORA-00904: "PKG1"."GET_STAMP_DATE": invalid identifier at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    I tried function IN package and OUTSIDE package. The same.
    What's wrong???
    Tnanks in advance...

    Hi,
    Check this function in database wether it is working or not.
    The identifier (column name, function, …) entered is invalid or unknown.
    This can have a number of reasons:
    It can be an unknown function, a column name that does not belong to a table, an invalid table alias, …
    The following function is not known
    SQL> select unknown_function from dual;select unknown_function from dual
    *ERROR at line 1:
    ORA-00904: "UNKNOWN_FUNCTION": invalid identifier
    The following column does not exist in the table:
    SQL> select X1 from dual;select X1 from dual
    *ERROR at line 1:
    ORA-00904: "X1": invalid identifier
    Please refer the below thread might be help u..
    DB Function errors out when trying to use in both Answers and RPD file.
    Urgent: Error while displaying data in OBIEE answers
    Thanks,
    Satya

  • Use EVALUATE function in obiee

    Hi ALL
    i hv a database query like this;
    select
    deptno,
    rtrim (xmlagg (xmlelement (e, ename || ',')).extract ('//text()'), ',') enamesfrom
    emp
    group by
    deptno;
    now, i want to use this using Evaluate function in obiee column formula.
    thn how to do it.
    Please reply.
    THX
    SAP

    Hello SAP,
    I have seen you for sometime and one thing I came to know is you are creating threads and once you got your solution or you dont feel to follow up you are just leaving the thread.
    see few here,
    Sorting month name
    Drill down problem
    Re: Filter in Union Request
    so please better close the threads which are answered and proceed further.

  • 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

  • @Rank function using EVALUATE

    Hi short question,
    I'm trying to get the @rank function to work in combination with OBIEE 10.1.3.4 (using EVALUATE). Anyone here already tried using this with Essbase version 9.2? In some of the documentation it states this can not be done using anything below Essbase 9.3 but the @Rank function is available within v9.2 Is there any limit on using this from the OBIEE side?
    I used this reference:
    (how to:) http://oraclebizint.wordpress.com/2008/04/28/oracle-bi-ee-101332-handling-sort-order-in-hyperion-essbase-931-evaluate-and-mdx/
    (Essbase 9.2 doc --> @Rank available) http://download.oracle.com/docs/cd/E12032_01/doc/epm.921/html_techref/techref.htm
    Evaluate function I'm trying to launch is:
    EVALUATE(’RANK(%1.dimension.currentmember,%2.members)’ AS INTEGER,Period."PeriodGen4",Period."PeriodGen4")
    Am I doing something wrong here, or am I trying to do things which can't be done?
    Thanks in advance,
    Mathijs

    I tried the syntax
    EVALUATE ('RANK(%1,%2)' as integer,"Account"."Gen4,Account Default","Account"."Gen4,Account Default")
    but still i am getting the error as:-
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 96002] Essbase Error: Syntax error in input MDX query on line 6 at token 'RANK' (HY000)
    SQL Issued: SELECT s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7 FROM ( SELECT 0 s_0, "FINRPTC#1"."Account"."Gen3,Account Default" s_1, "FINRPTC#1"."Account"."Gen4,Account Default" s_2, "FINRPTC#1"."FinancialYear"."Gen2,FinancialYear" s_3, "FINRPTC#1"."Period"."Gen3,Period" s_4, EVALUATE ('RANK(%1,%2)' as integer,"FINRPTC#1"."Account"."Gen4,Account Default","Account"."Gen4,Account Default") s_5, "FINRPTC#1"."FINRPTC"."Actual" s_6, REPORT_AGGREGATE("FINRPTC#1"."FINRPTC"."Actual" BY "FINRPTC#1"."Account"."Gen3,Account Default","FINRPTC#1"."Account"."Gen4,Account Default","FINRPTC#1"."FinancialYear"."Gen2,FinancialYear","FINRPTC#1"."Period"."Gen3,Period") s_7 FROM "FINRPTC#1" WHERE (("FinancialYear"."Gen2,FinancialYear" = 'FY12') AND ("Period"."Gen3,Period" = 'Nov') AND ("Account"."Gen3,Account Default" = 'Net Cost of Services')) ) djm

  • OBIEE Analysis prompts not working in SmartView 11.1.2.5.400

    Hi all
    I would appreciate any suggestions on the following issue that I am experiencing in SmartView 11.1.2.5.400.
    Here are the steps that I am following:
    - I have a very simply OBIEE analysis which has one filter (Calendar Year):
    - In the Prompts tab in the same analysis I have a prompt defined on Calendar Year:
    - In Excel 2010 I import the Pivot using SmartView.
    - I receive the following error: "Object reference not set to an instance of an object”.
    - The data does import after the error message appears but as soon as I click on Edit Prompts the message appears again.
    - The pivot imports without any issues when I remove the prompt from the Prompt tab in the Analysis but I need to filter the information before it is displayed in SmartView.
    I am using:
    SmartView 11.1.2.5, MS Office 2010 and OBIEE 11.1.1.7
    Regards
    Johan

    Hi
    Thank you for the reply and document.
    The document is unfortunately not helpful. I get the "Object reference not set to an instance of an object” error as soon as soon as I click on Insert on the OBIEE pivot table in SmartView.
    The error however disappears when I remove the prompt in the Prompts tab in the analysis and Insert it again.
    Thanks
    Johan

  • Can we use Evaluate function in Prompt

    Hi all
    Can we use Evaluate Function in Dashboard Prompt?
    I need some exposure on how to use it.
    I am working on a HRMS-OLTP Source where I need to work with Oracle Functions from OBIEE.
    IF somebody can tell me that, It will be a favour for me....
    ThanQ
    Anand V

    Hi All,
    Here's an example of how to use evaluate. This use calls the Oracle TO_DATE function: EVALUATE('TO_DATE(%1,%2)' as DATE, '03/03/2009', 'MM/DD/YYYY')
    Here's how it works: EVALUATE( '<FUNC>' AS <DATATYPE>, VALUE1,VALUE2,etc)
    FUNC) Is the syntax for the function you are calling. Any parameters have to be replaced by %<number>, where number refers to the order in which you specify your parameters.
    DATATYPE) The datatype that the function will evaluate to. In this case, DATE.
    VALUE1) The latter part of the formula is a comma separated list of all the parameters used in the function. In this case, it's the date I want to cast
    VALUE2) This is the second parameter. You need as many as you referenced in your function. In this case, it's the date format.
    Good luck and if you found this post useful, please award points!
    Best regards,
    -Joe

  • Report generation issue with a hut

    Hi,
    I hav an issue using report generation my report is using huts and I i'm writting true or false value in excel case, which is linked with the hut but writting the value in the linked case does not change the hut value.
    Thanks
    Olivier

    Hi Olivier,
    I was wondering if you could expand on what the overall goal for your application is.  Also I am not familiar with huts, could you explain what these are?
    Eric A.
    National Instruments
    Distributed I/O Product Support Engineer

  • How to use CLOB in OBIEE 11g (11115) Reporting

    Hello All,
    I have a CLOB object. I need to use that in the report.
    It just has text only. I defied it in RPD as LONGVARCHAR or OBJECT but it did not work out.
    I tried using evaluate with TO_CLOB but i am getting below error any time
    inconsistent datatypes: expected - got CLOB at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed.
    Please give me a clue how to use a CLOB column in report.
    I see a rittmen blog which is using as LOOKUP but i dont have that option either.
    Please let me know what wrong i am doing.
    Thanks in Advance.
    KN

    DBMS_LOB.substr(<table.columnname>,<length of characters>,<start position>)
    Check this
    http://shivabizint.wordpress.com/2010/04/20/varchar2-greater-than-4000-in-obiee/
    Mark if helps.
    Thanks,

  • Getting Error when creating Data Model off OBIEE Analysis

    Hi,
    Our BI Publisher is integrated with OBIEE. I am developing BI Publisher report from existing obiee analysis. I am getting error when selecting existing analysis for data Set. Following error gets appear when pressing ok after selecting BI analysis
    oracle.xdo.XDOException: oracle.xdo.XDOException: oracle.xml.parser.v2.XMLParseException: '=' missing in attribute.
    I have done some debugging and it seems error is appearing due to presence of dimensional hierarchy in the analysis. If I remove dimensional hierarchy column from the analysis, this error goes away and I am able to save data model and gather sample XML.
    Any idea how to handle dimensional hierarchy column in BI Publisher data set?
    Thanks & Regards

    Hi,
    I got this response from Oracle
    “Sorry, this is not supported. If the BIEE Analysis has hierarchy columns then BIP cannot use it as a datasource.”

  • How to build a Analysis report in OBIEE 11g

    Hi All,
    I have a query regarding 'How to' to build an analysis report in OBIEE 11g.
    The data model is a financial data model, where information such as Actual, Plan, Forecast, What - if etc for current AND prior year need to be displayed in a dashboard.
    I created two analysis reports one for current year Rep1 and second for prior year Rep2 each with filter criteria as current year and prior year respectively based on years column. and then in the dashboard I created prompt based on scenario column (radio button) for Actual, plan, Forecast, and wht if.
    I am able to show the current vs prior year data in the same dashboard for Actual or Plan or forecast or what if (depending on data availability in the database).
    I want to achieve the same information in a single analysis report instead of two separate analysis reports. I do not want to create separate physical report for current and prior year data.
    I need one analysis report which I can use in dashboard and depending on selection for scenario (actual , plan, forecast or wht if) I want to show the current AND prior year data the way I achieved in with two seperate reports embedded in their respective sections as explained above.
    Does any one have idea how to achive this by building single analysis report?
    If you need any more clarificaiton or have any queries, please let me know.
    Thanks and Regards
    Santosh

    As per I understand your requirement,
    In your Dashboard create a Presentation variable which receives the value of year you select.
    Now in your analysis, select the year column along with all the measures you want (Actual, plan, Forecast, and what-if, etc).
    Create a filter on Year column and convert it into SQL. Put the condition as:
    "Year" BETWEEN @{Presentaion_Variable} - 1 AND @{Presentation_Variable}
    You will get the result for selected year and the previous year.
    Hope it helps..
    Regards,
    A.K.

Maybe you are looking for

  • Photoshop Elements 11 and 12 on the same device

    I recently bought Photoshop Elements 11. Now I bought a new Canon EOS camera, that included Photoshop Lightroom 5 and Premiere Elements 12. My Problem now is. The DVD also contains Photoshop Elements 12 with access only to the organizer but not to th

  • Opening Document's using Document ID (DocIdRedir.aspx) results in Read-Only mode

    Hi, The document doesn't have Edit option when it opens through the DocIdRedir.aspx?DocId. Tried below below registry update solution and it doesn't provide the checkin/checkout options. do we have any other option/solution to enable the edit button

  • How to customize standard BCT InfoCubes?

    Hi gurus,              I am new to BI.I got one scenario like adding 2 new user defined InfoObjects into the cube along with standard business content infoobjects which i delivered with BCT InfoCube (eg:0PAPA_C01).Is it possible to use the same infoc

  • Pantone+ libraries not showing

    I have been trying to install the Pantone + libraries for weeks now... I am obviously doing something very stupid because I have followed the install instructions from Pantone (and the install goes fine), searched a hundred threads on the topic but s

  • Trouble with 6.0 software update

    Hi there, I have just updated the software to 6.0 and purchased some tunes, but when I connect I am told that my software cannot download the tunes as my software is out of date, yet I am using the latest version? I have Windows XP and 15GB ipod. Any