ODI filter expression editor

Hello

I created a filter in ODI, but I can't make an expression in the expression editor. I need to use a statement "Case when" but I get an error "Invalid relational operator.
I have attached a screenshot: [http://postimage.org/image/brt3u74up/]
If someone could help or give me a hint, I'd appreciate it.

Thank you

Let's not the syntax of your expression. Please try this

TIP. TIPO_PEDIDO =
CASE
WHAT TRICK. CENTRO ('L150', 'L180', 'L358', 'L395', "L151") THEN 'CENTRAL '.
OTHERWISE "DESCENTRAL".
end

Tags: Business Intelligence

Similar Questions

  • Unable to see the function of the technology in the Expression Editor - ODI 11 G

    Hello

    I develop Interface while I am unable to see the technology functions in the Expression Editor where I'm doing a transformation.

    Secondly, in the header, it is show the default language instead of SQL (Oracle)

    any difficulty please...

    Thank you

    KPimage001.png

    I fixed it myself - thank you

    Below, was the step that I did which solved the problem. hope this will help others

    Go to the Studio of ODI

    Develop the language in topology-

    Import new language

    Import mode INSERT_UPDATE synonym

    The definitions of the language of $ODI_HOME/oracledi/xml-reference/LANG_SQL.xml

    Click OK

    Close ODI Studio and open again. that fixed my problem.

    Thank you

  • Using of Variable in the filter expression will not scan.

    IN ODI 11.1.1.3.0, I've defined a Variable of type 'Alphanumeric' (SelectionDate), default = January 1, 1970 with the query select: select to_char (SYSDATE, 'DD-MON-YYYY') of double.
    I intend to use this variable as a scenario (parameter) variable that receives a value in the form "DD-MON-YYYY', of the execution environment.
    I refreshed the variable and the value received June 16, 2011 (current date). So far so good.

    Then, I defined an Interface and use the variable in a filter expression:

    Filter active: checked

    Tab implementation:
    SOURCE_VIEW. SELECTION_DATE BETWEEN TO_DATE (' #PROJECT1.) SelectionDate', 'DD-MON-YYYY') AND (TO_DATE (' #PROJECT1.)) SelectionDate', 'DD-MON-YYYY') + 1).

    Run on: Source

    During the verification of the expression (click the check mark in the application tab) I always get: Expression is not valid for the DBMS. java.sql.SQLDataException: ORA-01858: a non-digit character was found here where was waiting for a digital.

    I can't filter to analyze. Thank you for your ideas of what could be wrong.



    Jose.

    Hi Jose,

    You must set this variable in a package and refresh it. Then place your interface with the current filter condition.
    Run the package. It should work.

    Thank you
    Fati

  • I want to use the expression editor control in a DLL VC ++ how?

    Hello

    as mentioned I want to use the expression editor control in my DLL written with VSC ++ 2005 MFC. But I came across some problems:

    If I simply add the ExpressionEdit control in the toolbar to my dialog box then the dialog box will appear not during execution. As soon as I remove the control from the dialog box appears.

    In the examples of TS is a called "TCL" (...) Instruments\TestStand national 4.1.1\Examples\Tcl\source\EditSubstep). It is programmed in C++ and uses the expression editor control.

    The original dll works fine, but as soon as I compile the editsubstep with my VS 2005 I get a runtime error (see image).

    What should I do to be able to use this control?

    Does anyone have an example of a job for me?

    Frank has soon

    Hi, I found the solution and now it works fine.

    I just had to enable support for OLE controls in my dll.

    Nevertheless, thanks for your help!

    BOOL CMyDLLApp:: InitInstance()

    {

    CWinApp:: InitInstance();

    AfxEnableControlContainer();  enable support for OLE controls

    Return TRUE;

    }

    Frank has soon

  • Java code in the expression editor

    The Java tab in the expression editor makes me think it should be possible to write a bunch of lines of code java, somehow but no matter what I try it always refused. The java code only I got to work was create a set command, and then write the right side a

    var x = something;

    statement. Since there is no try/catch, if, while, instructions etc. in the java tab, should not be possible to use somehow? And if so, what can they be used in (quite apparently the game is bad)?

    I use IPCC 4.5 with Premium license and I am able to write java code inside the set command.

    The java code must be writing in brackets {}; for example

    {

    try {}

    int i = 0;

    int result = 0;

    for (i = 0; i<>

    result = result + i;

    }

    return the result;

    } catch (Exception ex) {}

    Returns - 1;

    }

    }

    Hope this helps.

    Stefano

  • The use of the repository variable date in filter expression

    Hi gurus

    I get the error using repository variable date in filter expression. I use the formula below

    filter (with the HELP of Fact.calls"Sun Time".) ("' Fiscal months end date" = VALUEOF ("month_start"))

    I am getting below error

    The formula syntax is not valid.
    [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 22024] A comparison is performed between incompatible types. (HY000)
    Publ. SQL: SELECT filter (fact. Calls by using "Sun Time" ". Fiscal months end date"= VALUEOF ("month_start")) 'call DATA.

    Then I tried the below format I still get the error

    filter (with the HELP of Fact.calls"Sun Time".) "" Fiscal month end date "= DATE'(VALUEOF ("month_start"))") "

    The formula syntax is not valid.

    [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 46047] DateTime (VALUEOF("month_start")) (VALUEOF("month_start")) value does not match the specified format. (HY000)

    Publ. SQL: SELECT filter (using "Sun Time" Fact.Calls. ("' Fiscal months end date" = DATE '(VALUEOF ("month_start"))') 'call DATA.

    Please let me know what I'm missing or what is the correct syntax of same using the repository of date variable.

    Thanks in advance

    Concerning

    @li

    filter (with the HELP of Fact.calls"Sun Time".) ("' Fiscal months end Date" = CAST (VALUEOF ("month_start") date))

    Try this

    mark, if this can help

  • Regular Get-view filter expressions

    I have the following code:

    $vms = get-VM-location 'test '.

    for ($i = 0; $i - lt $vms. County; $i++)

    {

    $vmOS = get-View - ViewType 'VirtualMachine' - filter @{"Name" = $vms [$i] .name} - property @("Nom", "Config.GuestFullName") | Select-Object - property name, @{N = "ConfiguredOS"; E={$_. Config.GuestFullName}}

    $vmOS

    }

    $vms contains some virtual machines to a folder called 'test '. I have 2 virtual machines in the folder - 'test' and 'test2 '. When I run the code above, when the 'test' VM is put in the loop, she returned twice. Time for 'test', and 'test2 '. I'm looking for a regular expression that I can use to get the exact name of each virtual computer so that only 1 value is returned by $vmOS in each loop.

    The filter is a regular expression, you can use the indicators of positions (^ and $).

    Something like that

    $vms = get-VM-location 'test '.

    for ($i = 0; $i - lt $vms. County; $i++)

    {

    $vmOS = get-View - ViewType 'VirtualMachine' - filter @{"Name" = "^ $($vms[$i].name)$" ""}-property @("Nom","Config.GuestFullName") |

    Select-Object - property name, @{N = "ConfiguredOS"; E={$_. Config.GuestFullName}}

    $vmOS

    }

  • How to increase the size of the field the Filter Expression in an interactive report.

    Hello

    My uses user field of the expression of the filter in the interactive reports with multiple values and want to visualice the contents of the field, is it possible?

    Thank you

    Do you know how to use jQuery?

    I'm looking at this as, this is what I have so far:

    I don't really like how it works yet, but looks like a direction to go.

    Although I currently use Apex 3.2.

  • With the help of sql filter expression

    Hi Experts,

    I have a question using "sql expression" in the filters in the responses. Let's say I have a date filter and I wish that the value for this date as max (tablename.colname). Please tell me the syntax for this passage.

    Another issue is that I have a date guest data are updated every week we'll tell the data refreshed like this * 01/08/11, 08/08/11 and 15/08/11 *. Now, if I select the 08/08/11 it will display the data
    populated on * 08/08/11 * which is ok, but if I select * 09/08/11 to 14/08/11 * it only shows * 08/08/11 * data. Similarly, if the option * 16/08/11 or 16/09/11 * it should show the latest up-to-date data which is * 15/08/11 *.

    Thanks in advance.
    Chak

    OK, if that State is limited as of the last update when your selects a date in guest that is beyond / above the last refresh date.

    This can be a way to do as below:

    – Enter the last updated date in a variable repository. If this variable will always hold a value for the last date discount.
    -In guests, capture the date selected by the user in a variable of presentation and to apply the Sub statement in SQL advanced report.

    DateColumn = case when Timestamp ' @{RBAP} {2011-01-01 00:00:00}'<= valueof("lastrefdate")="" then="" timestamp="" '@{pvar}{2011-01-01="" 00:00:00}'="" else="" valueof("lastrefdate")="">

    RBAP following your presentation and lastRefDate var is your variable rep containing the last refresh date. What would this statement, if the user selects a date that is less than equal to the last refresh date, then report is filtered from this date. Otherwise, the report will be filtered by the value of the date of the last update.

    Thank you

  • Interactive report filter expressions

    In the interactive report filters...
    Is it possible to use Select statements...

    for example

    Select the line type
    in type of expression:

    A in (select n_consultant_fk from the consultant_services where service_name in ' right % ')

    Click on apply

    This errors... is there a way to do this...
    other than creating a new page/report of course...

    Hello

    Do you want the ability of users to be able to write SQL themselves query filters or this just something you can do?

    I had a very similar situation is the past and I created just a public report I came with a very long work around by changing the actual query

    I used a case statement as a column in the query. It's on the top of my head and I obviously don't have work sorry for the mistakes of your query:

    SELECT
      us.user_id,
      us.username,
      'consulant' = (CASE
         WHEN EXISTS (SELECT 1 FROM consultant_services cs WHERE cs.service_name like 'RIGHT%' AND cs.n_consultant_fk = us.user_id)
      THEN
        1
      ELSE
        2)
      END
    FROM
      users us;
    

    Then, in your interactive report, you can have a filter to advise and assign consultant = 1

    Also, you don't need to see the consultant to the users column

    I hope that maybe it's something you can try, and it helps

    Paul

    Published by: Paul Broughton June 2, 2011 22:17

    Published by: Paul Broughton June 2, 2011 22:22

  • Default presentation variable used in the SQL filter expression

    Hello
    I am trying to use a default value for a variable used in a sql expression in a filter presentation and could use assistance on why obiee stifles the syntax.

    I have a report prompted with a prompt on the name of the month (variable presentation framework - pres_month_name). The value read is used in a filter as an sql expression. The sql expression is a DEAL on the variable of presentation and its conversion to a number based on business rules.

    In the sql expression, I give you the presentation variable a default value for a variable of repository - rep_default_month_name. Repository variable is correct and no, based on business rules, returns an appropriate default month name.

    Now, if I hard code the value by default, there is no problem. Here is a sample of the filter:
    The month number less than or equal to * DEAL "{pres_month_name} {OCT}" WHEN "NOV" THEN 10 WHEN... END *.

    Notice that the variable of presentation is between single quotes, because this is an area of character. Once more, it works fine, but I don't want to hardcode the default, I want it based on the variable repository, therefore:

    The month number less than or equal to * DEAL '{pres_month_name} {ValueOf (rep_default_month_name)}' WHEN 'NOV' THEN 10 WHEN... END *.

    By having this syntax for default of the variable of the presentation, I receive a message from the incorrect values in a filter.

    This report is not only used on a dashboard, but used in a briefing book as well. Whenever a briefing book is updated, by default the presentation variable is used, because obviously, the presentation is not available in a briefing, and I don't want to use a hard-coded value.

    I could duplicate the report and adjust the sql to not use the presentation variable, but always use the repository variable that returns a month by default, but I would be duplication of effort and I have to do this on several requests.

    Thanks for the help!

    Try this syntax described in the blog of Shiva that follows...

    http://shivabizint.WordPress.com/2008/10/02/Oracle-BI-EE-variables-overview/

  • Speed distance tune-up to the brightness filter expression

    Hi I would like to create an expression that connects the rate at which the focal length of the camera shifts to a brightness filter.

    Thus, for example, if the focal length changes suddenly and quickly, I want an image to get proportional to how fast the focal length changed brighter suddenly. Conversely, if the speed at which the focal length changes is slow, there should be very little change in brightness of the image.

    Better yet, if you could tell me how to make the changes in brightness lag by about one second after the distance of development changes took place, that would be great!

    Thank you very much!

    I forgot to negative speed. This should fix this problem:

    atten = 20;

    delay =. 5;

    C = thisComp.layer ("camera 1");

    Math.ABS (C.cameraOption.focusDistance.speedAtTime (Time-delay)) / wait

    Your second question requires a more complicated expression. The expression would be a backward loop, frame-by-frame to determine how long the latest transition in the focal distance is produced or use this time to lead a kind of pulse for the brightness in decomposition. Sounds like fun - I would like to have time to get out to you.

    Dan

  • using the file.openDialog filter expression

    Read the PDF Adobe JavaScript. I can't understand how we can filter the files available in the File.openDialog range. I would like to have the limited choice of .csv files. I know that I have a different method depending on whether the user is on a mac or a PC.

    Understand the function of filter on OSX was not obvious to me too.  Available version of Adobe's JavaScript Tools Guide which has a real-world example of the filter function, then I found this thread which has a very good example of implementation.  Then there's the StackOverflow answer to a question I posted this topic.  Hope these references help.

  • ODI filter to the Source database.

    Dear all,

    I'm trying to add filters in the source. I managed to addining the source filter as xyzinterface. Period = "JAN".

    However I love just for the filter in the list as Jan, Feb, Mar... Nov, dec.

    Please suggest.

    838332 wrote:
    Dear all,

    I'm trying to add filters in the source. I managed to addining the source filter as xyzinterface. Period = "JAN".

    However I love just for the filter in the list as Jan, Feb, Mar... Nov, dec.

    xyzinterface. Period ("January", "February",...)

    Please suggest.

  • How to apply the classic filter Design Express VI

    I use the digital classic filter Design VI design a bandpass filter (try to follow this example http://www.ni.com/white-paper/4460/en/), but then I can't locate

    Filter Express VI to use the filter

    The express VI filter comes with the LabVIEW base development system. It is found in the range of functions under Express > Signal Analysis > filter. Have you checked here?

Maybe you are looking for