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
Similar Messages
-
How to use evaluate function for sql server function
Hi Team,
We have imported a column(date dtat type) from SQL server cube . By default it imported as varchar,. We have three option in physical layer for this column(Varchar,Intiger,unknown)
So we want to convert this column into date.can we use evaluate or there is any option to do that.?Hi,
I am not sure your requirement. But how pass evaluate function obiee?
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)', 'satya ranki reddy') gives the result as -> SATYA RANKI REDDY
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
Hope this help's
Thanks
Satya -
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, -
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?
Thanks996933 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 -
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
SAPHello 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.
ThanksHi
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 -
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,
RajYou 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 VHi 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 -
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!
RRHi,
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. -
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 ?
thanksEVALUATE('DB_Function(%1)' as returntype, {Comma separated Expression})
even when used in Logical columns, its gonna fire the same sql. -
Error i am getting while using the evaluate function in a reprot
hi all,
can't we use semicolon in Evaluate function
Semicolon is not allowed in Evaluate Functions without proper escape i.e. \; (HY000)
SQL Issued: {call NQSGetQueryColumnInfo('SELECT case when 1=0 then USER_INFORMATION.USERNAME else EVALUATE(''my_func(%1,%2,%3)'',''aa'',''bb'',''Hindu;All Natl and Local'') end FROM xxx_xxx_xx')}
SQL Issued: SELECT case when 1=0 then USER_INFORMATION.USERNAME else EVALUATE('my_func(%1,%2,%3)','aa','bb','Hindu;All Natl and Local') end FROM xxx_yyy
ThnxHi,
Try this
EVALUATE('my_func(%1,%2,%3)','aa','bb','Hindu\;All Natl and Local')Without any proper escape character '\' obiee(EVALUATE function) will not accept ';'
Thanks,
Saichand.v -
Evaluate Function in case when
hi,
i want to use evaluate function in case when statement.My req is
if report_date=8/31 and sales_qty>30....show 1
if report_date=7/15 and sales_qty>39...show 2..
in the formula section i am using
case WHEN "Fact- table"."Report Date"=evaluate('to_date(%1%2)',"Column_name",'DD/MM
/YYYY')) AND "Fact-table"."Sales_qty">30 THEN '1' ELSE '0' END Report date data type is date only...Its giving an error date format is not supported
Please help me out!!hi,
thanks for u r quick response,i tried the code what u sent by its giving the error
A general error has occurred. [nQSError: 42015] Cannot function ship the following expression: Evaluate( to_char(%1,%2),cast(D1.c7 as DATE ) , 'MM/DD/YYYY') ADa.....
I tried in sql its giving correct results
SELECT * FROM table WHERE report_month=To_Date('15/09/2009','dd/mm/yyyy')
how to use the same in obiee?
thanks
Edited by: saichand on Oct 26, 2009 3:17 PM -
Sort order issue in with Evaluate function ( Next Quarter measure)
Hi All,
I have report requirement where I have to show measures for a particular geography for previous, current and next quarters in a pivotal view.
---------------Previous Quarter| Current Quarter| Next Quarter
Geography
ABC|xx|xx|xx
PQR|xx|xx|xx
XYZ|xx|xx|xx
Next quarter values are displayed for other geography like
ABC value is shown for XYZ and XYZ value is shown for PQR
I have derived measure for pervious quarter using Time Series Function > Ago function,
However the problem is with next quarter. I used following Evaluate Function to derive measure for next quarter.
EVALUATE ('LEAD(%1,1) over (order by %2)' AS DOUBLE PRECISION , X, Y)
Here X = Measure and Y = Level (Quarter)
X is delta of two other measures A and B.
X = (A- B)
Thanks,
SMAHi user10300020,
That's a fairly common problem with months that happens regardless of database source.
In the logical layer of OBIEE you can specify the sort order on the month name column. Just double click on the month name column and look for the option to set sort order based on a different column. I typically sort the month name based on the month number.
Give that a shot and tell me if it works.
-Joe -
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.
Maybe you are looking for
-
Problem in periodic job scheduling in LBWE
hi, i have activated the Material movements datasource 2LIS_03_BF. Filled up the set up table. now when i try to schedula a job in jobcontrol, under the tab *immediate* the immediate start check box is checked and disabled. the periodic job check bo
-
Hi all, I am using a batch file with CLIX to automate repository unload/archive and to stop an MDM 7.1 server. Here is an excerpt of the batch code: Echo.Stopping MDM Server... Echo ********Stop MDM Server ******** CLIX mdsStop %MDMSERVER% %DBLOGIN%:
-
iOS7...incoming calls missing RED Decline button? Where did it go? All I get is Remind Me, Message....and Slide to Answer on the bottom.
-
Hi All, Earlier we had a problem of "Activities not visible to user in calendar". i found that user was not assigned properly in Org model. After assigning the user to employee in Org model, user can able to see current activities. My question is "is
-
Problem mx:WebService with ActionWebService
I have been using Flex Builder 3 for pretty often in my work. Last week new Flex Builder 3 beta 3 came up, I installed new Flex Builder 3 beta3. This program was usually working on Flex Builder 3 beta2, after I upgrade to beta3 to re-compile exact sa