Two conditions of OBIEE filter function

Hi all

Can I use the filter for both conditions?

Something like:

filter (if using condition1 and condition2)

Thank you
Ling

Hello

Yes.

for example,.

Filter (if using condion1 and condion2)

Filter ('Position'. "" "" Test_Sal '. "" Nom_Sal' with 'Test_Rate '. "" Spot ". "BASE_CCY" = "SGD" and "Position" Spot of MX. ("' OCY" = "SGD")

Thank you
Deva

Tags: Business Intelligence

Similar Questions

  • Filter function

    Hi all

    I use the function filter to calculate extent for all regions. And I have one other measures even that is supposed to show that the data of a prticular area. So, basically, it's like a comparison, region vs all regions.

    So, to get a region, I added a filter.

    Now when I run the analysis, the filter function which is group of regions does not work, it shows only the data for a particular region of selecetd from the filter drop-down.

    How can I achieve this? Is it possible to lock the filter function?

    Thank you

    GLOBAL has in the end is 'simple', you pass a measure and then a level of one or more dimensions and OBIEE will be just 'ignore' the filter on the region and to return altogether from all regions and the level of demand (can be 'all regions', 'country' etc..).

    It works better that FILTER at least for that sort of thing.

  • File navigation on OSX problem - how to use a filter function?

    I work with file navigation atm using the JSX file objects and the openDlg method and quite frankly, it drives me crazy.

    He has a crazy person decided it was a good idea to have the filter flag on the totally different openDlg method to Win and OSX? Under windows, you use a string for filtering, OSX he wants is a function!

    I checked the documentation and also searched this forum and I can't even find an example of how to set up so that it works for Windows and OSX?

    OK, so I found the syntax, but it still does not make sense.

    fileMask = function(file){file.name.match(/\.psd$/i) ? true:false;}
    


    Here we have the psd extension hardcoded in the regular extension. But what happens if we want it to be a variable? And what happens if t he file does not yet exist.

    Basically I want is the user of:
    Navigate to a folder

    Set a file name

    record.

    The extension type must be locked!

    Compared to the way of windows to do things, the way OSX to use a filtering function is too complex, absurd and downright annoying!

    EDIT: I also discovered that you can not write a file on OSX name unless the file already exists. Come on! Is this the type of dialogue hurt or something?

    Here is my script to request a file that handles the differences Win/Mac

    function isWindows() {
      return app.systemInformation.indexOf("Operating System: Windows") >= 0
    }
    function isMac() {
      return app.systemInformation.indexOf("Operating System: Mac") >= 0
    }
    function promptFile(filter_extension) {
      var filter = null
      if (isMac()) {
           if (filter_extension) {
                var filter_regex = new RegExp("[^\.]*\."+filter_extension+"$")
                filter = function (file_entry) {
                     return filter_regex.test(file_entry.name)
                }
           } else {
                filter = function () { return true }
           }
      } else if (isWindows()) {
           if (filter_extension) {
                filter = filter_extension.charAt(0).toUpperCase() + filter_extension.slice(1)+"-files:*."+filter_extension
           } else {
                filter = "All files:*.*"
           }
      } else {
           filter = null
      }
      var f = File.openDialog("Select your file", filter, false)
      if (f) {
           return f.fsName.replace(/\\/g, "/") // sanitize to forward slash
      }
    }
    }
    
  • Behavior of the new version of LR 6: even the filter function is powered down to the arrangement of the photographs in the library window depends on the star. It's awful, but after importing the photos my natural first step is a rough chek and

    Even the filter function is powered down to the arrangement of the photographs in the library window depends on the star. It's awful, but after importing the photos my natural first step is a rough chek and rating. When evaluating a photograph it sorts in the order of evaluation, and I have to go to the point that I was check. Please revert to the behavior of version 5!

    Change your sort order.

  • How to add a filter function in the navigation?

    Hello

    .. .this site has a pretty cool concept navigation based on a filter function:

    http://trufcreative.com/work

    2014-12-13_Filter-Function.35.1.png

    Any chance to build the same kind of functionality ("sort by") + (as a separate navigation level) with MUSE?

    Any advice would be much appreciated!

    G

    You can achieve this by using a code that currently there is no widget providing for sorting of the tales or elements.

    Where is hosted on Adobe servers, you can use web apps to achieve this goal. Sorting based on filters of points can be included in the web application page.

    Let me know if you use BC, I'll give you more information than the way you do.

    Thank you

    Sanjit

  • You can apply two condition tags to the same content?

    We must apply the two condition tags to the same content. A condition tag is for the version of the product (for example, full vs of lite), and the other condition tag is for the output (vs. Administrator's guide online help). Is it possible within the framework to apply two condition tags to this topic? We want a topic to have the full conditions of the Administrator's guide.

    If this is not possible, we can create a condition that is full tag and guide the administrator, but we have thought that we would check to see what is possible. Thank you!

    > So we need to use conditional expressions for this?

    If inclusive - or show, that's what you want, no.

    Otherwise, probably - I have not used cond-exps myself yet.

    Even in FM9/10, it is probably still a good idea to overlap do not conditions. Brainwashed MIF can fix, tho.

  • combine two conditions

    Hello

    I want to combine two conditions. For example:


    var a = this.getField("ComboBox").value;
    var b = this.getField("ComboBox1").value;

    If (a == 1, b == 1) this.getField("Text").value = "1";
    If (a == 1, b == 2) this.getField("Text").value = '2 ';

    ...

    If (a == 2, b == 1) this.getField("Text").value = '3 '.
    If (a == 2, b == 2) this.getField("Text").value = '4 ';
    ...

    ...

    where is the problem?

    Is

    If (a == 1 + b == 1) this.getField("Text").value = "1";

    right?

    Thanks in advance for helping me!

    If (a == 1 & b == 1)...

    etc.

  • Two Conditions in If statement

    Hello
    I wanted to include two conditions in one IF statement. So, I tried below,

    <? xdofx:if: POH_CANCEL_FLAG = 'Y' and: POH_PO_TYPE! = "RELEASE" then? > <? model call: po_oc? > <? end if? >

    But it called the model even if a condition is false. Can I not like it? Please advice.
    Thank you.

    Assuming that your domain names are POH_CANCEL_FLAG AND POH_PO_TYPE;

    You should be able to use:



    OR use this:





    I hope this helps!

  • search based on the filter function

    Hello

    I have a filter function that does this,

    private void filter_handler(item:Object):Boolean
    {
    var isMatch2:Boolean = false;
    If (item.name.search ('(Joe)')! = - 1).
    {
    isMatch2 = true;
    }
    Return isMatch2;
    }
    When I do this, the search function ignores the parentheses and the outputs 'Joe' and '(Joe). What I wanted to do came out alone "(Joe). Anyone know why the search function ignores the parentheses?

    Thank you.

    Look at the source of this example view. -What are you trying to accomplish?
    http://www.anaheimwib.com/_comps/filtering/

  • How to combine two conditions: there is and point not null?

    Hello!

    I have a flash chart area I would like to show only if two conditions are true.

    The first condition is the following:

    There are (at least a line returns the SQL query):
    select 1
    from    observatoire.fiche aa, observatoire.activite_faite bb
    where   aa.fiche_id = bb.fiche_id
    and     bb.fiche_id = aa.fiche_id
    AND     bb.activites_id = TO_NUMBER(:P23_ACTIVITES_ID)
    AND     TRUNC(aa.date_activite, 'YYYY') = TRUNC(TO_DATE(:P23_ANNEE, 'YYYY'), 'YYYY')
    And the second condition would be:

    Point not null:
    P23_ACTIVITES_ID
    How to combine these two conditions in one display condition?

    Thank you.

    Christian

    Hello

    The problem is that you do-

    TO_NUMBER(:P23_ACTIVITES_ID)

    When you leave the value of Null return like this, you will see "null %" generally used in session state (i.e., it is not actually null). Of course 'null %' cannot be converted to a number, from which the error you see.

    A simple solution would be to make your value null return value-1 or another value that is guaranteed not to be a piece of identification (and alternative is to convert the real null null % thanks to a process of App/Page etc (if you search this forum you will find a few examples on how to do this).) Another alternative is to use a DECODING to detect the '% null' etc.

    Hope this helps,

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

  • May I ask where clause to satisfy two conditions at the same time (and)

    Hello

    I wrote a few joins and usually in the final stage where condition with certain conditions be satisfied in where clause. In all conditions where I only want one and condition fulfilled only if both are collected.

    If we look at the this funciton is I should meet (get_order_type (ogr.order_number) <>'R')) AND wh1.third_party_warehouse! = 'Y') but I'm not get rid off both that if order_type is 'R' they are removed and if tooling_group is yes then ther are removed the result. I'm trying with both below pointed out together how can check these conditions? I can do in where clause?

    ((sg.tooling_stock_group <> 'Y'))

    and

    (get_order_type (ogr.order_number) <>'R'))

    Of order_goods_received ogr

    LEFT JOIN part_master pm

    On ogr.part_number = pm.part_number

    -stock_groups sg left join

    SG stock_groups left join

    on pm.stock_group = sg.stock_group

    and ((sg.tooling_stock_group! = 'Y'))

    and (get_order_type (ogr.order_number)! = 'R'))

    -Pm.stock_group = sg.stock_group

    LEFT JOIN batch_record_1 br1

    -A FEW MORE CODE HERE-

    WHERE ((ogr.delivery_date > = trunc (date_départ)))

    AND

    ((ogr.delivery_date < = trunc (end_date)))

    AND

    OGR.goods_received_number <>'1' AND

    get_order_type (OGR.order_number) NOT IN ('L') AND

    OGR.returned_to_supplier_indicator not in('S','L') and

    -sg.tooling_stock_group <>'Y '.

    -((sg.tooling_stock_group <> 'Y') and (get_order_type (ogr.order_number) not in ('R')))

    -(get_order_type (OGR.order_number) <>'R' AND sg.tooling_stock_group <>'Y')

    ((sg.tooling_stock_group <> 'Y'))

    and

    (get_order_type (ogr.order_number) <>'R'))

    AND wh1.third_party_warehouse! = « Y »

    UNION

    (

    Thank you.

    Whenever you have a problem with such logic, you should try and draw a logic state diagram:

    In your case, you are looking to two variables, with two possible States (equal to a value or is not it)

    Then, take this sense of the sg.tooling_stock_group T and O as being the get_order_type (ogr.order_number) and create a state diagram logical based on your description of what you want.  We will use a value of "Y" to indicate we want to record and a value of "N" to indicate the folder should not be returned.

    Start with an empty logical diagram...

    T = 'Y' T! = « Y »
    +---------+---------+
    |         |         |
    |         |         |
    |         |         | O = 'R '.
    |         |         |
    |         |         |


    +---------+---------+
    |         |         |
    |         |         |
    |         |         | O! = « R »
    |         |         |
    |         |         |
    +---------+---------+

    First of all, you said: "If there is the result returned by the defined user function is"R"and the table that has the tooling_stock_group y then it should avoid this record."

    T = 'Y' T! = « Y »
    +---------+---------+
    |         |         |
    |         |         |
    |    N    |         | O = 'R '.
    |         |         |
    |         |         |
    +---------+---------+
    |         |         |
    |         |         |
    |         |         | O! = « R »
    |         |         |
    |         |         |
    +---------+---------+

    Then you said: "If order_type does not return" R' but the tooling_stock_group is 'Y', then I should not avoid recording ".

    T = 'Y' T! = « Y »
    +---------+---------+
    |         |         |
    |         |         |
    |    N    |         | O = 'R '.
    |         |         |
    |         |         |
    +---------+---------+
    |         |         |
    |         |         |
    |    Y    |         | O! = « R »
    |         |         |
    |         |         |
    +---------+---------+

    Now, you have not given any logic for the rest of the diagram, so I made the assumption that you do not want to avoid these records...

    T = 'Y' T! = « Y »
    +---------+---------+
    |         |         |
    |         |         |
    |    N    |    Y    | O = 'R '.
    |         |         |
    |         |         |
    +---------+---------+
    |         |         |
    |         |         |
    |    Y    |    Y    | O! = « R »
    |         |         |
    |         |         |
    +---------+---------+

    Now there are different ways to determine the location of the clause of this diagram.
    We could say that we want the records for all of the T column! = "Y" or all the records for all of the O line! " = R...

    where (sg.tooling_stock_group! = 'Y' or get_order_type (ogr.order_number)! = 'R')

    We say we want to EXCLUDE (using DO NOT) all records where T = "Y" AND O = "O" "

    If not (sg.tooling_stock_group = 'Y' and (ogr.order_number) get_order_type = 'R')

    Those are the two most logical ways to do.
    (In my previous answer, that we can see in this diagram, there is no need of the "or get_order_type (ogr.order_number).) (= 'R' "part, which is superfluous, but would not break it)

    Now let's look at your logic to see what it looks like to in the diagram...

    where ((sg.tooling_stock_group <> «Y»))
    and (get_order_type (ogr.order_number) <> 'R')
    )

    In a logic diagram that looks to...

    T = 'Y' T! = « Y »
    +---------+---------+
    |         |         |
    |         |         |
    |    N    |    N    | O = 'R '.
    |         |         |
    |         |         |
    +---------+---------+
    |         |         |
    |         |         |
    |    N    |    Y    | O! = « R »
    |         |         |
    |         |         |
    +---------+---------+

    As you can see, your logic was only targeting one of the 4 possible results for select records and excluding 3.

  • How to compare two columns in OBIEE?

    Hello

    I have two columns like "abc" and "def". I want to display only the rows where the value of 'def' is greater than the value of 'abc '. How to perform in the analysis? How to use the operator for comparison for the columns in the analysis?

    Try this:
    Criteria-> column-> Filter tab-> Advanced-> 'Convert this SQL filter' and the two columns with condition.

    Appreciate if you mark as correct

    Published by: Srini VIEREN on 23 January 2013 06:58

  • How to define the condition in the analytic function

    Oracle 10g version

    Hi all

    I have the following data samples:

    Examples of data

    WITH DATA AS

    (

    SELECT 100 case_id, next_date, to_date('01-feb-2015','dd-mon-yyyy') UNION double, ALL crt_date to_date('01-jan-2015','dd-mon-yyyy')

    SELECT 100 case_id, next_date, to_date('01-mar-2015','dd-mon-yyyy') UNION double, ALL crt_date to_date('01-feb-2015','dd-mon-yyyy')

    SELECT 100 case_id, next_date, to_date('01-apr-2015','dd-mon-yyyy') UNION double, ALL crt_date to_date('01-may-2015','dd-mon-yyyy')

    SELECT 100 case_id, to_date('01-jun-2015','dd-mon-yyyy') next_date, to_date('01-apr-2015','dd-mon-yyyy') crt_date FROM dual

    )

    SELECT wagneur, MIN (next_date) OVER (PARTITION BY case_id) min_dt_analytical

    ,(

    SELECT MIN (next_date) DATA dd

    WHERE dd.case_id = d.case_id

    AND dd.next_date > crt_date

    ) min_dt_sub_query

    DATA d

    ;

    My question is that I get min_dt_sub_query using sub query but I want to use the analytical instead of query sub function so I created min_dt_analytical column, but I do not have how to give the condition that is AND dd.next_date > crt_date analytical so that I can get the same result as min_dt_sub_query data accordingly. Thanks in advance

    Concerning

    MIT

    Do not know if I understood your needs... but... something like that?

    WITH DATA AS (SELECT 100 case_id, next_date, to_date('01-feb-2015','dd-mon-yyyy') UNION double, ALL crt_date to_date('01-jan-2015','dd-mon-yyyy')

    SELECT the 100 case_id, next_date, to_date('01-mar-2015','dd-mon-yyyy') UNION double, ALL crt_date to_date('01-feb-2015','dd-mon-yyyy')

    SELECT the 100 case_id, next_date, to_date('01-apr-2015','dd-mon-yyyy') UNION double, ALL crt_date to_date('01-may-2015','dd-mon-yyyy')

    SELECT 100 case_id, next_date, to_date('01-apr-2015','dd-mon-yyyy') double crt_date to_date('01-jun-2015','dd-mon-yyyy'))

    SELECT d.

    MIN (next_date) OVER (PARTITION BY case_id) min_dt_analytical

    MIN(CASE WHEN next_date > crt_date THEN next_date ELSE NULL END) OVER (PARTITION BY case_id) AS min_dt_sub_query2

    DATA d;

    HTH

  • lov (list of values) on the analysis in OBIEE filter option

    Dear OBIEE users,

    Kindly help me.

    Our users of analysis, applying the filter, click on general

    LOV.png

    strikes at our 5 done row Bn collect distinct values and therefore blocks the bandwidth network.

    Then give me suggestions on the improvement of the performance?

    I have options

    1. I can remove the option. (- Not a good idea to hide the feature)

    Please guide me how/where to do?

    2. I can provide tables/views LOV (cached) to get distinct values that will be added under table separate dim (1 col) that are attached to did the same collar and finally, expose the LOV table instead of the column column. (- Not a good idea as again once, we need to hit the very fact not used and above all, there is a JOIN that is not obviously useless for whole system.)

    3. as you invite, if the default option is available, Please tell me

    4. suggest me the best way if Oracle provided ha / you've used.

    Thank you

    Dilip Kumar Mohapatro

    I expect to get

  • Generate reports based on two conditions

    Dear all,
    I generate reports based on satisfactory conditions in two columns in a table.

    For example.
    I have a table test1 with columns A, B, C, D, E
    Now, I want to create reports based on the research of two columns A and b. What is the preferred method to do?

    Thanks in advance.

    What is the preferred method to do?

    Write the appropriate query:

    select a,b,c,d,e
    from test1
    where a = 
    and b = 
    

    In reports, the State may be a user input parameter:

    select a,b,c,d,e
    from test1
    where a = :parameter1
    and b = :parameter2
    

Maybe you are looking for