Evaluate function in OBIEE

Hi All,
I tried using Evaluate and Evaluate_Aggr in the column formula of a report.
Evaluate_Aggr() is erroring saying the dimension Work Order is incorrectlly defines logical Table Source Mapping for a dimension of Work Order. If I revoke the implicit fact coniguration on this Subject Area which I have, the report executes as expected. But this implicit configuration is required in my scenario for other reports to work.
Using Evaluate() works perfectly.
Can anyone help me in fixing this?
Shld I add any other configuration in the RPD to resolve this issue?
Thanks

996933 wrote:
hi all
i got this error when i try to execute evaluate function in obiee answer
nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
SQL Issued: SELECT DGN_TIME_RES_USAGE_CUBE.DRTCLN_WO_NO, DGN_TIME_RES_USAGE_CUBE.HOURS, DGN_TIME_RES_USAGE_CUBE.PROJ_NO, EVALUATE('FUNC_FIND_EMPLOYEE_DESC(%1,%2,%3)','KASA',DGN_TIME_RES_USAGE_CUBE.DRTCHD_EMP_ID,1), RMAX(DGN_TIME_RES_USAGE_CUBE.DRTCHD_DATE), RMIN(DGN_TIME_RES_USAGE_CUBE.DRTCHD_DATE) FROM LIVE2 years back post from the next time open new thread ? (Business Intelligence Suite Enterprise Edition )
Thanks,
Saichand

Similar Messages

  • 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.

  • Problem in passing varchar2 parameter to Evaluate function in OBIEE

    Hi there,
    This is regarding an issue while passing parameter in EVALUATE function.
    I have to call a function with varchar parameters. parameter are nothing but my table column values.
    I've created session variables which holds value from my table column values.
    for eg:
    EVALUATE('REP1_FIRSTMONTH_F(%1)' AS  CHARACTER ( 30 ),  VALUEOF  (NQ_SESSION."month"))
    so whenever i call function using EVALUATE in OBIEE. i hve to pass ' ' (single quotes) for my varchar values. without this , i'm facing error stating :
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59015] The requested column PERIOD0 does not exist in this table. (HY000)*
    If i'll give parameter within single quotes in my dashboard prompt. it is working fine, but fails without the quotes.
    kindly help me in solving this issue.
    Thanks - Vijay
    NOTE: parameter are from column values.

    Hi
    Anyone has any input for the above issue??. Please share.
    Regards - Vijay

  • Syntax for Evaluate function in OBIEE

    Hi
    I have browsed through the docs but couldn't find syntax for Evaluate function. Could someone pass me the full syntax and if possible a helpful example against essbase.
    Thanks

    Hi
    definitely
    syntax:- EVAULATE('your db function(%1,%2)', parameter list)
    here %1 and %2 are the no.of parameters (columns or may constant values) to be passed for the db-function
    if you have 3 parameters then you need to use %3 also.. means the columns to be passed.
    following exapmples are for ORACLE db,
    ex1: EVALUATE('upper(%1)', 'kishore kumar') gives the result as -> KISHORE KUMAR
    ex2: EVALUATE('upper(%1)', 'Markets.Region') here Markets.Region is column.
    you also can call the user-defined functions through evaulate
    EVALUATE('functioname(%1,%2), column1, column2)
    the above function has 2 parameters to be inputted
    Thanks & Regards
    Kishore Guggilla
    Edited by: Kishore Guggilla on Jan 16, 2009 11:00 PM

  • EVALUATE Function Obiee

    Hi!
    My database is Essbase. I need to choose members of different hierarchies. I get the following formula.
    EVALUATE ('Intersect (% 1.dimension.members, {[Account1], [Account2]}) "," Account "." Gen1, Account ")
    I see different accounts of different hierarchies.
    The problem is that members Account1, Account2 are Identifiers and want to see the descriptions.
    Is there any way to show IDs descriptions choosing their IDs in the formula EVALUATE?
    Thanks!!

    996933 wrote:
    hi all
    i got this error when i try to execute evaluate function in obiee answer
    nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: SELECT DGN_TIME_RES_USAGE_CUBE.DRTCLN_WO_NO, DGN_TIME_RES_USAGE_CUBE.HOURS, DGN_TIME_RES_USAGE_CUBE.PROJ_NO, EVALUATE('FUNC_FIND_EMPLOYEE_DESC(%1,%2,%3)','KASA',DGN_TIME_RES_USAGE_CUBE.DRTCHD_EMP_ID,1), RMAX(DGN_TIME_RES_USAGE_CUBE.DRTCHD_DATE), RMIN(DGN_TIME_RES_USAGE_CUBE.DRTCHD_DATE) FROM LIVE2 years back post from the next time open new thread ? (Business Intelligence Suite Enterprise Edition )
    Thanks,
    Saichand

  • Best practices on using EVALUATE functions

    hi, experts,
    I wanna know what is the best practices on using EVALUATE functions on obiee (calling oracle user defined functions)
    I found that if I use evaluate functions in Answers,
    obiee will construct a sql behind and then execute.
    sometimes, obiee contructs some unexpected sqls, and returns errors.
    so, is it better to use EVALUATE functions in logical columns ?
    thanks

    EVALUATE('DB_Function(%1)' as returntype, {Comma separated Expression})
    even when used in Logical columns, its gonna fire the same sql.

  • Evaluate function

    How can we achieve this below using  EVALUATE function in obiee. I can use cast to do this but i need to use EVALUATE for my purpose.Can someone please throw light on this.
    to_char(date_column,'MM')

    Srini,
    Here is my issue
    I want to implement below function in obiee.It  takes the month from the column and appends the current year .so basically if the column has the value 01/12/12.It becomes 01/12/13.P_year is a current year variable.I am having issues in writing the above code in obiee.I am using the below in obiee which is giving the below error.
    SQL FUNCTION:  to_date(to_char(Date_Column)||'-'||:current_year,'MM-YY') 
    OBIEE:CAST(CAST(MONTH("date_column") AS CHAR) ||'-'||CAST(VALUEOF("current") AS CHAR)as date)
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 17001] Oracle Error code: 1843, message: ORA-01843: not a valid month at OCI call OCIStmtFetch. [nQSError: 17012] Bulk fetch failed. (HY000)
    Please help were i am doing wrong.This is the reaon i want to do this using EVALUATE function.

  • Can Evaluate function return object type

    Hi
    Evaluate function can be used to call db functions in OBIEE. I have a function which returns an object ( pl/sql table).
    Created a simple report in Oracle Answers and added following in one of the columns
    evaluate( 'get_ccid(%1)' as t_ccid , @{p_request})
    When I try to run this in Oracle answers, getting syntax error. If same function returns varchar or number it works well.

    evaluate( 'get_ccid(%1)' as t_ccid , @{p_request})Eakta, You syntax seems to be wrong here. What type of data your presentation variable contains here ?? You are saying its working fine with Number datatype..so can you try..somthing like below with some default value..
    EVALUATE('get_ccid(%1)',@{p_request}{2})
    OR
    EVALUATE('get_ccid(%1)' as varchar(250),@{p_request}{ABC})
    Also, refer
    Syntax for Evaluate function in OBIEE
    http://108obiee.blogspot.com/2009/04/using-presentation-variable-from-first.html
    Hope its useful

  • Evaluate function problem

    I have a problem with EVALUATE function in OBIEE.
    I passed two parameters. Number is numeric and Name is varchar.
    Evaluate('DWH.PKG_ITEM_FUNCTION.PS_LAW(%1,%2)', "Book"."Item"."Number", "Book"."Item"."Name" )
    I get the following error:
    [nQSError: 22027] Union of non-compatible types.
    How can I solve this?
    Many thanks in advance.

    hi stanisa,
    It is a bug in 10g,here it goes
    --> While using Evaluate function, common errors like “Union of non-compatible types. (HY000)”.
    I believe this is a bug in the Evaluate function implementation. One must cast all the arguments to the same data type before passing them as arguments.
    Courtesy :- http://oraclebizint.wordpress.com/2007/10/18/oracle-bi-ee-101332-top-10-common-errors/
    hope helps you.
    Cheers,
    KK

  • Evaluate function not working in obiee 11.1.1.7

    Hi all,
    I have completed In-place upgrade from obiee 11.1.1.5 to 11.1.1.7.
    After this I am getting an error while running reports,which is created by using evaluate function.
    [nQSError: 43113] Message returned from OBIS. EVALUATE_SUPPORT_LEVEL inside NQSConfig.INI is not set to support EVALUATE
    In my NQSconfig.ini I coundnt find EVALUATE_SUPPORT_LEVEL. So I have added below content in NQSConfig.ini file
    # EVALUATE_SUPPORT_LEVEL:
    # 1: evaluate is supported for users with manageRepositories permssion
    # 2: evaluate is supported for any user.
    # other: evaluate is not supported if the value is anything else.
    EVALUATE_SUPPORT_LEVEL = 2;
    After that I restarted BI services. But still I am facing same error.
    Guide me regarding this.
    Thanks in advance.

    Are you using any parameter like % or / , If you are using,Then it is a bug in 11.1.1.7,Check the below URL for more info.
    http://obiee-blogs.blogspot.com/2013/04/obiee-11g-bugs-fixed-in-111170.html
    bug 13386728 - EVALUATE FORMULA FAILS IF PARAMETERS HAS % OR /
    Mark if helps.
    Thanks,

  • OBIEE 11g EVALUATE function working fine with Administrator but

    Hi,
    We have a report with EVALUATE function , which is working fine with Administrator User but when we run for other users its giving following error.
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 42015] Cannot function ship the following expression: Evaluate( COUNT(%1) OVER (PARTITION BY (%2)),D901.c1, D901.c2) .Please have your System Administrator look at the log for more details on this error. (HY000)
    Is there any parameters that we have to set for the user level to use Evaluate ?
    Thanks,
    Raj

    You can create a compound key of Cat + SubCat (concatenation in a logical column is a quick win) which will render the SubCats unique and assign that as the logical level key:
    SubCat:
    A-Basic
    A-Value Add
    A-High
    B-Basic

  • 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

  • How to Oracle Database Function in OBIEE Administration Tool

    Hi All,
    I want to use a Oracle Database Function in as a column in OBIEE (BM, Presentation Model). Can anybody has done this inOBIEE. Any pointers to this is much appreicated.
    Thanks,

    Hi user7417334,
    You cannot use any formulas in the presentation layer (not that I know of). But you can definitely use oracle database functions in the BMM layer.
    You want to use the EVALUATE function. It works like this:
    e.x. EVALUATE( 'TO_DATE(%1,%2)' AS DATE, '12/31/2009', 'MM/DD/YYYY')
    Generic Version: 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

  • Leaset() and Greatest function in OBIEE???

    Do Leaset() and Greatest function exists in OBIEE which is present in SQL ??
    if yes what is the syntax for this???

    Hi,
    I think EVALUATE function might help you
    http://gerardnico.com/wiki/dat/obiee/presentation_service/obiee_period_to_period_lag_lead_function
    http://obiee101.blogspot.com/2007/12/obiee-evaluate-function.html
    Regards
    Monika

  • Equivalent of to_date function in Ms SQL and using it in Evaluate function

    Hi,
    I am trying to find out a function in MS SQL which is equivalent to to_date function in oracle. Please find below the advanced filter i am trying to use in OBIEE.
    Evaluate('to_date(%1,%2)' as date ,SUBSTRING(TIMES.CALENDAR_MONTH_NAME FROM 1 FOR 3)||'-'||cast(TIMES.CALENDAR_YEAR as char(4)),'MON-YYYY')>=Evaluate('to_date(%1,%2)' as date,'@{pv_mth}'||'@{pv_yr}','MON-YYYY') and Evaluate('to_date(%1,%2)' as date ,SUBSTRING(TIMES.CALENDAR_MONTH_NAME FROM 1 FOR 3)||'-'||cast(TIMES.CALENDAR_YEAR as char(4)),'MON-YYYY') <=timestampadd(sql_tsi_month,4,Evaluate('to_date(%1,%2)' as date,'@{pv_mth}'||'@{pv_yr}','MON-YYYY'))
    The statement above works fines with oracle DB with to_date function. The same statement throws an error with MS SQL since to_date is not a built in function.
    With MS SQL I tried with CAST, not sure how to pass parameters %1 and %2.
    Please help me how to use Evaluate function and passing parameters along with to_date funtion in MS SQL.
    Regards!
    RR

    Hi,
    please refer to this thread for useful information on using to_char and to_date functions of oracle in MS SQL server:
    http://database.ittoolbox.com/groups/technical-functional/sql-server-l/how-to-write-to-to_char-and-to_date-sql-server-351831
    Hope this helps.
    Thanks,
    -Amith.

Maybe you are looking for

  • Installation Options for iMovie HD on Snow Leopard system with iLife '09

    Greetings and thank-you for contributing suggestions on what is a well worn subject. I have read many of the posts existing on this topic and am trying to nip some details. I have a late 2006 iMac that came with Tiger and iMovie HD which is now at ve

  • Failure in Receiver IDOC adapter

    Hi, I have a File to IDOC scenario. In SXMB_MONI the message is showing successfull. But when I scroll to the right and see the status of the message in "Outbound Status" it shows ERROR on the outbound side. I went to tRFC transaction SM58 and checke

  • EPM metadata build

    Hi All, I am trying to load a dimension with Alias in EPMA, but getting the error as. "No dimension exists for the associated dimension property 'Alias' for Dimension 'Customers'" Below is my sample flatfile- *!Section=Dimensions* *'Name|DimensionCla

  • "SAVEANDBACK" Button In Folloup Activity from Service order

    Hi, Give me solution... Here  Created folloup activity from service order in web ui.....In folloup activity after click the SAVEANDBACK then opend the serviceorder.....but i added the data in folloup activity... that data not refresh in serviceorder

  • Is it safe to update my iPad 1st gen to 4.3?

    Hello all, Thank you all for commenting on my other posts.  After many of you chimed in on whether I should buy an iPad 1st gen refurb or buy an iPad 2 I bought the refurb. It's been a great purchase!  My iPad came with iOS 4.2. With all the horror s