Syntax of the function Evaluate in OBIEE

Hello
I have traveled the docs but could not find the syntax for the function Evaluate. Could someone pass me the full syntax and if possible a useful example against essbase.
Thank you

Hello
without a doubt

syntax:- REVIEW ('your db function (%1, %2)', list of parameters)
%1 and %2 here no.of (columns or constant values of May) parameters to pass to the function db
If you have 3 parameters, you must also use %3... We hear the columns to move.

following exapmples are for ORACLE db,
EX1: EVALUATE ('upper (%1)', "kishore kumar") gives the result-> KISHORE KUMAR
Ex2: EVALUATE ('upper (%1)', 'Markets.Region') Markets.Region this is column.

Alternatively, you can call the functions defined by the user through to reassess
Evaluate ('functioname (%1, %2), column1, column2)
the function above has 2 parameters input

Thank you & best regards
Kishore Guggilla

Published by: Kishore Guggilla, January 16, 2009 23:00

Tags: Business Intelligence

Similar Questions

  • syntax of the function

    Hey hii

    I just wanted to know that is it possible to just find the syntax a function integrated in oracle?


    as we in cmd on windows or ny else the help command, so we know what are the arguments to this function.

    810345 wrote:
    Hey can u please explain
    say that my function is substr how to know abt his arguments using dictionary

    You already know that information is contained in all_arguments. To see what information is available:

    DESC  all_arguments
    

    Output:

    Name                                      Null?    Type
    ----------------------------------------- -------- -----------------
    
    OWNER                                     NOT NULL VARCHAR2(30)
    OBJECT_NAME                                        VARCHAR2(30)
    PACKAGE_NAME                                       VARCHAR2(30)
    OBJECT_ID                                 NOT NULL NUMBER
    OVERLOAD                                           VARCHAR2(40)
    ...
    

    For the functions built-in such as SUBSTR, you know that the owner is SYS, and the name of the package is STANDARD, so you can say:

    SELECT     *     -- or list specific columns
    FROM     all_arguments
    WHERE     owner          = 'SYS'
    AND     package_name     = 'STANDARD'
    AND     object_name     = 'SUBSTR'
    ;
    

    Remember, anything inside quotes is case-sensitive, so "Sys" or "sys" work above.

  • Syntax of the function BOX when multiple values equals the same result?

    I tried using the key word 'IN' with the CASE function, but it does not work, each case must be indicated separately? trying to save a few lines...

    has tried:

    case me607.rmc_code
    When to (',' MS', 'MP') then 'H311.
    end as carrier_code

    What I do:

    case me607.rmc_code
    When'm ' then 'H311.
    When "MS," then "the H311.
    When 'MP' and then 'the H311.
    end as carrier_code,
    etc...

    Thanks for any help...
    case when me607.rmc_code
     in ('M','MS','MP') then 'H311'
    end as carrier_code
    

    Max

  • Run the syntax of the function

    Hello

    to run the stored procedure, this is the code:
    DECLARE
    
    arg1 datatype;
    
    BEGIN
    
    procedure_name(arg1);
    
    END;
    So, what's the code for the execution of a function?

    Thank you

    Hello

    CREATE OR REPLACE FUNCTION return_unique RETURN NUMBER IS
       p_num NUMBER;
    BEGIN
       SELECT inv_id_seq.NEXTVAL INTO p_num FROM dual;
    
       RETURN p_num;
    END return_unique;
    
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    
    SQL>
    SQL> SET SERVEROUTPUT ON
    SQL> DECLARE
      2     p_num NUMBER;
      3  BEGIN
      4     p_num := return_unique();
      5     dbms_output.put_line(p_num);
      6  END;
      7  /
    
    6
    
    PL/SQL procedure successfully completed
    
    SQL> /
    
    7
    
    PL/SQL procedure successfully completed
    
    SQL> 
    

    Kind regards

  • How do the function of Oracle database in OBIEE Administration tool

    Hi all
    I want to use an Oracle database function as a column in OBIEE (BM, presentation model). Can someone made this inOBIEE. Pointers to this is much appreicated.

    Thank you

    Hi user7417334,

    You cannot use the formulas in the presentation layer (not that I know well). But you can certainly use functions of oracle database in MDB layer.

    You want to use the function EVALUATE. It works like this:

    can EVALUATE (' TO_DATE (%1, %2) "AS DATE, 31 December 2009", "MM/DD/YYYY" ")

    Generic version: EVALUATE ('' AS , value1, value2, etc.)

    FUNC) is the syntax for the function you are calling. All parameters must be replaced with %, where number refers to the order in which you specify your settings.
    DATATYPE) the type of data that will allow to evaluate the function. In this case, the DATE.
    Value1) the last part of the formula is a list separated by commas of all parameters used in the function. In this case, this is the date I want to ride
    Value2) is the second parameter. You need as many times as you have referenced in your function. In this case, it is the date format.

    Good luck and if you found this post useful, please give points!

    Best regards

    -Joe

  • Need to validate the syntax of the url by using the functions of DBMS

    All,

    I need to validate the syntax of the url in a table. Please suggest is there any function of DBMS is available to do
    action in PL/SQL, stored procedure. Help, please.

    use regular expressions... check by using the following in regexp_like...

    ^ http\: / / [a-zA-Z0 - 9-------.] +. [a-zA-Z] {2,3} (/ \S*)?$)

  • How to use the TRUNC function with dates in the expression builder in OBIEE.

    Hello
    How to use the TRUNC function with dates in the expression builder in OBIEE.
    TRUNC (SYSDATE, 'MM') returns 1 July 2010"where sysdate is July 15, 2010 ' in SQL. I need to use the same in the expression builder in the logical layer mdb column.


    Thanks in advance

    Use it instead:
    TIMESTAMPADD (SQL_TSI_DAY, (DAYOFMONTH (CURRENT_DATE) *-1) + 1, CURRENT_DATE)

  • How to use the syntax of the flatfile to target RDBMS to_date function in odi

    I'm doing a to_date function in 11 ODI. When I select the target column I get TO_DATE (ERP. Calendar_Day, '20150419', 'YYYYMMDD')

    but this when you run the function that it does not work. I supply from a flatfile strimng that looks like 20150102 I would like to than the format to look like this 05/02/15 (dd-mm-yy)

    How can this be achieved? is it possible to launch the expression as inforatica Editor?

    What is your area of transit technology, it supports the to_date function? If it's Oracle, then the function TO_DATE ('20150419', 'YYYYMMDD') that would convert the string and store it in the database as a standard date.

  • Need help with rewrite PLSQL function EVALUATE

    Hi all

    I'm trying to convert some PLSQL (from Discoverer) in a column of answers and I can't seem to get the correct formula.

    The original formula:
    MIN (Processed_Date) MORE (SCORE OF Business_Area, product, Serial_No)

    I guess that this must be done in an evaluation function, but I can't work on the correct syntax.

    This formula:
    Evaluate ('MIN (%1) OVER (PARTITION OF 2%, 3%, 4%)) ", Business_Area, Processed_Date, Serial_No, product)
    Has generated this error:
    [nQSError: 10058] A general error occurred. [nQSError: 22027] Union of incompatible types. (HY000)

    I do not know what causes the error, and tried casting explicitly throughout the column, but still getting errors.


    I am open to any suggestion.

    Thank you.

    Published by: jasonr on Dec 14, 2010 09:54

    Jasonr,

    highlighted in bold is the change
    Try this EVALUATE ('MIN (%1) OVER (PARTITION OF 2%, 3%, 4%)) AS the DATE, Processed_Date, Business_Area, product, Serial_No)
    update if it solved your problem.

    -bifacts
    http://www.obinotes.com
    J

    Published by: bifacts on December 14, 2010 21:52

  • FIRST HP: HP first Cas.Mode in the functions of the program

    Hello community, I learn HP first language programming but I am not really associated with this, I would like to know the basic structure using the matrix and CASE work (both in programming mode). I have "he's really appreciate some examples with programs using both of the present. If I am not clear.

    Hello

    It is a field/area whide here!

    First, you must know that they are 2 in HP's premium programming languages. They are relatively similar, but not exactly, which can be at the same time a plus (1 thing to learn) and a sign less (subtle differences are not very visible, and can cause problems)...

    In any case, to create a new program of CASE, go to the program catalog (program shift) and click New, enter the name of the program and check the CASE.

    This will create a basic program, empty along the lines of:

    #cas

    TEST(): =.

    BEGIN

    return 0;

    END;

    #end

    TEST is the name of the function (you can have as many as you want in your case program)

    you will find the arguments in parentheses. In this case, no, but add that you ever want or need as in:

    TEST (param1, param2, param3)

    between the BEGINNING and the END, you will find at the heart of your program. There you can assign values to the variables (by using the nom_de_variable: = expression_that_returns_a_value;)  syntax. For details: a: = 1 + 2

    You will find many (but not all), orders of matrix in the Toolbox key / menu math/matrix.

    You can access (read and write) an element of a matrix by var [row, col]

    The menu item template (in the main window of the program of the editor) should show you what the Basic programming constructs are similar (tests and looks).

    This should help you get started. Once you have experienced this, you should be able to come back on this forum and ask more specific questions.

    Kind regards

    Cyrille

  • Using the function Array SetElements

    Hi all

    I am using the Array SetElements function to set a value of specific index in an initialized array, but I can't understand what's the syntax for the optional parameter 2. I tried a whole bunch that seem to make sense but still get an error. Anyone used this function before that can let me know what is the syntax to use?

    Thank you

    Nick

    The SetElements function does not support noncontiguous ranges elements, so there is not much interest to use it if you do not have to pay the entire table or a range of elements. You can just do:

    table [1] = 0,

    Array [3] = 0,.

    Array [4] = 0,.

    Array [8] = 0,.

    -Doug

  • Is there a way to parse a string containing % (percentage symbols) using the function 'analysis of the chain?

    I am communication in series with a mirror device and the syntax of the input string contains this text: "% hr ="

    I was not able to find a way to say to the function that the percentage here is not a format specifier. Is it possible, or should I just try to use a different function?

    Thank you.

    Use %% in your format string for what he knows to use the percent literally.  So % RH = %f

    EDIT: Darin has one here in front of me.  It seems to be-% and % both work.

  • To call the function in sql and script call

    Hello

    I'll have a .sql script that returns the name of the partition and I need to run alter table Exchange partition something like this

    get_part. SQL

    COLUMN file_name new_value by sub_script_col

    accept the start_date char prompt arguments ' input start (exact): '

    accept the end_date char prompt "enter end date (exact): '"

    create or replace function get_part_name (p_date in date)

    VARCHAR2 is back

    date d;

    RETP varchar2 (30);

    spirit date: = to_date('4444-01-01','yyyy-mm-dd');

    Str varchar2 (32000);

    cursor c is

    Select high_value, nom_partition p

    of all_tab_partitions

    where table_name = 'TO_TEHBLNC ';

    Start

    for r in c loop

    Str: = r.high_value;

    run immediately 'select'. Str |' double ' in d;

    If p_date < d and d, then the spirit

    RETP: = r.p;

    spirit: = d;

    end if;

    end loop;

    return pter;

    end;

    Select get_part_name ('& 1') twice;

    ACCEPT user_yn PROMPT ' do you want to partion with < partition name > table? (Y, N) : "

    SELECT THE CHECK BOX

    WHEN TOP (LTRIM (' & user_yn')) AS 'y %. "

    THEN "insert_partition".

    ELSE 'do_nothing.

    END AS sub_script_col

    DOUBLE;

    @ &sub_script_col < partition_name >

    sub_script_col. SQL

    ALTER TABLE to_tehblnc

    SWAP PARTITION < name patition >

    WITH TABLE T1

    WITHOUT VALIDATION

    UPDATE GLOBAL INDEXES;

    I need to call once again for the sub_script.sql based on start_date and end_date, for example 1st January 2015 and January 5, 2015 I must first get the parition name and proceed to modify the table with that respective partition name returned by the function, so that it will be 5 times alter the table to swap partition

    I'll have a .sql script that returns the name of the partition and I need to run alter table Exchange partition

    This is just a continuation of your other thread

    For the name of the partition in the partition range table

    As I said it you do not have to know the name of the partition to make an EXCHANGE. I gave you an example in this other thread.

    ACCEPT user_yn PROMPT ' do you want the table to partition with ? (Y, N) : "

    That makes no sense at all. You cannot partition a table that is already partitioned. If there is a name for the partition and then the table is partitioned already - then ask why to partition?

    ALTER TABLE to_tehblnc

    SWAP PARTITION

    WITH TABLE T1

    WITHOUT VALIDATION

    UPDATE GLOBAL INDEXES;

    I need to call once again for the sub_script.sql based on start_date and end_date, for example 1st January 2015 and January 5, 2015 I must first get the parition name and proceed to modify the table with that respective partition name returned by the function, so that it will be 5 times alter the table to swap partition

    No - you don't have. Just use the code example I provided in your other thread. You don't need to know the name of the partition and use dynamic sql statements to make the Exchange.

    Just use PARTITION syntax as shown in the example.

    Do things the EASY way. Your code and the script is totally useless.

  • Why do I get a SQL syntax; consult the manual for your version of the MySQL server for the proper syntax

    I have a purchase order where my buyers can add to my form. I use a loop that adds an extra line when they add a new product. I'm storing the information in two tables different mySQL. The first is alll of my personal, the second is the elements. My personal records correctly. However, I get the following error when you save the items:

    You have an error in your SQL syntax; consult the manual for your version of the MySQL server for the right syntax to use near 1, 'wer 2345', 1, 1)' on line 9

    The error occurred in E:\webs\clarkwebhosting.com\SSL\esrc\order_add.cfm on line 74

    ++ After storage of the personal information, I take the command ID to populate the table of Articles

    < cflock timeout = "5" >

    < name cfquery = "qGetorderID" datasource = "#application.dsn #" >

    Select max (orderID) as oid of orders

    < / cfquery >

    < / cflock >

    < cfoutput > < cfset getoid = #qGetorderID.oid # > < / cfoutput >

    ++ Is the loop that I use to fill the table items ++

    < cfloop to = "#form.numba # '1' = ' index 'idx' = >"

    < cfset getqty = evaluate ("form.qty" & idx) >

    < cfset getitem = evaluate ("form.item" & idx) >

    < cfset getunit = evaluate ("form.unit" & idx) >

    < cfset gettotal = evaluate ("form.total" & idx) >

    < name cfquery = "insertItems" datasource = "#application.dsn #" >

    INSERT in Articles

    (orderID,

    quantity,

    agenda,

    Unit,

    total

    )

    VALUES)

    < cfqueryparam value = "" #getoid # "CFSQLType ="CF_SQL_INTEGER">"

    < cfqueryparam value = "" #getqty # "CFSQLType ="CF_SQL_INTEGER">,"

    < cfqueryparam value = "" #getitem # "CFSQLType ="CF_SQL_VARCHAR">,"

    < cfqueryparam value = "" #getunit # "CFSQLType ="CF_SQL_INTEGER">,"

    < cfqueryparam value = "" #gettotal # "CFSQLType ="CF_SQL_INTEGER">"

    )

    < / cfquery >

    < / cfloop >

    This line: 1, 'wer' 2345, 1, 1 is the first element of the command line. Any ideas as to why it doesn't work? I use 5.5.9 - log CF9 and mySQL

    My apologies... that should have been (note the quotes)...

    In addition, it would be...

    On another note... You should probably avoid using cfinput and simply use the standard form tags.

  • Problem with the syntax of the url go

    Hello

    I have following problem: a few months ago, I've defined several reports in which I use the 'URL Go syntax' to pass the filters - according to the syntax described in the oracle documentation:integration of Oracle BI presentation Services in business environments by using HTTP and JavaScript - 11 g Release 1 (11.1....) Reports were built on OBIEE version 11.1.1.6.0 and everything worked fine.

    Currently I've migrated to OBIEE version 11.1.1.6.10 and navigation with several parameters command syntax, as for example. "& P1 = 2 + xx126 + xx125 '-does not work! OBIEE 11.1.1.6.10 translate this syntax in '2 xx125 xx126' instead of 'xx125; xx126 ".

    Please help me solve the problem.

    GRQ

    Srini thanks for your quick response. Unfortunately, you don't understand me well. My problem is: why the syntax (from the Oracle documentation) with several parameters, for example. : "& P3 = n + xxx + yyy +... + zzz ' does not work.

    The solution to this problem is to change the "+" on "", so it should look like this "& P3 = n xxx... yyy zzz" ""

Maybe you are looking for

  • On Firefox, my Pinterest account is micro size, help

    While trying to access my account of Pinterest, Pinterest My homepage is so small, almost micro size. I'm afraid I have to press a key or something I do not know how this happenend and may not know how to solve this problem. I know it's my Firefox pa

  • Satellite Pro L770 - how to activate the HDMI connection?

    I have a problem with my HDMI! I connected the HDMI cable to my laptop (L770) and my TV and TV recognized that an HDMI cable is connected. Now, I want to activate the HDMI connection on the laptop with +, but I only have the 4 following posibilities:

  • Reinstallation of the product recovery disc DLL file

    I recently reformatted my hard drive and reloaded Windows XP Home Pro on my M100 Satellite (PSMA0A) from the product recovery disc. Everything is OK except that I get an error 'Unauthorized repositioning of system DLL' whenever I start the computer?

  • pencil to Apple support

    Hello is it possible to charge the pen from a wall socket via the ipad apple pro cable loading? THX in advance, Rob

  • Center solutions Lenovo for Windows 10?

    Where can I find LSC for Windows 10? I found version 8.1 only.