OR Condition in Filter area of a query.

Hi All,
I have a scenario, where i need to implement a condition where I need to put combination or AND and OR condition.
Its something like:
Employment status shd be 'Active' OR
Term date Shd be in cureent year AND
line of Business = '99' or '97'.
I was planning to put these conditions in Filter area of a query, but since there is no option for OR condition. Hw shd I go about implementing this.
Any suggestions are welcome.
Thanx.
Pooja.

Hi Pooja,
Multiple characteristics with value restriction corresponds to AND conditions and not OR Conditions.
Alternatively can create Formula on keyfigures which specifies all the conditions. Formula supports all logical ,mathematical,boolean operations.
Hope that helps.
Regards
Mr Kapadia
Assigning points is the way to say thanks in SDN.

Similar Messages

  • Uploading a text file from webi filter area as part of the query condition

    Post Author: balasura
    CA Forum: Publishing
    Requirement : Uploading a text file from webi filter area as part of the query condition Hi, I am in a serious requirement which I am not sure available in BO XI. Can some one help me plz. I am using BO XI R2, webi I am generating a ad-hoc report, when I want to give a filter condition for a report, the condition should be uploaded from a .txt file. In the current scenario we have LOV, but LOV could hold only a small number of value, my requirement is just like a lov but the list of values will be available in a text file ( which could number to 2000 or 2500 rows). I would like to upload this 2500 values in the form of a flat text file to make a query and genrate report. Is it possible in BO XI? For Eg:- Select * from Shipment Where u201CShipment id = u2018SC4539u2019 or Shipment id = u2018SC4598u2019u201D The u201Cwhereu201D condition (filter) which has shipment id will be available in a text file and it needs to be loaded in the form of .txt file so that it will be part of the filter condition. Content of a .txt file could be this shipment.txt =============== SC4539 sc2034 SC2343 SC3892 . . . . etc upto 2500 shipment Ids I will be very glad if some could provide me a solution. Thanks in advance. - Bala

    Hi Ron,
       This User does not have the access to Tcode ST01.
       The user executed Tcode SU53 immediately following the authorization failure to see the authorization objects. The 'Authorization obj' is blank and under the Description it has 'The last Authorization check was successful' with green tick mark.
      Any further suggestions, PLEASE.
    Thanks.

  • Issue with Hierarchy selection in Filter area

    Hi experts,
    We have an issue with BEx query selection.
    Structure of Quey
    1. Filter Area
    => Characteristic Relations : Restriction condition with hierarchy
    2. Rows
    => Display characteristic with hierarchy active
    3.Columns
    => Formula with keyfigure using sign reverse of hierarchy (formula variance).
    <symptom >
    When I use context menu, "Keep filter value", with the displayed hierarchy node,
    and drilldown with other characteristics, the result became wrong. Filter value I kept became inactive.
    Workaround I found was like belows.
    1. Remove sign reverse calculation in Formula.
    2. Keep sign reverse calculation and move restriction condition with hierarchy in filter area TO default values.
    I wonder this symptom was right technically or bug ocurred after version upgrade or something.
    Thanks in advance.
    BEx BI Addon 7.X(based on 710)/SP11 Revision 634

    Hi
    This depends on the logical database that the report is based on. Secondly I have experienced that the report variant overwrites the date selections and therefore it looks like that the dates are not parsed (which I think is your problem).
    For e.g. logical PHP and PHPCE both the period and data dates are filled with the data selection from the portal. (check on the report attributes in SE38 which logical DB used) For e.g. PTRVP (travel) no date are passed at all in the call of the report!!
    To make sure that the report variant isnu2019t overwriting I normally set the variant for the report to u201CSave field without valuesu201D for the date selection periods and then it isnu2019t filled by the variant.
    Data selection period
    Data selection period: Start
    Data selection period: End
    Employee selection period
    Employee selection period: Start
    Employee selection period: End
    Regards,
    Lars

  • Cannot Include and exclude selectiion on hierarchy node in the Filter area

    Hi,
    When i open the query and execute it. and select the filter area for hierarchy nodes. The include and exclude selection is disabled in 3.5x analyzer. We are using BI 7.0 with SP 12. we just upgraded.
    Can you please help. is this functionality not available?
    Regards,
    Gaurav

    Hi Rob, you can do that for the query (the exclude selection) on the Query Designer. But its not recomended on performance point of view.
    hope this helps
    Natalia.

  • Selection Screen on Web Report only show filter area varieables.

    HI ,
    I am using WAD 3.5 and web template uses the query developed in 3.5, This report has two selection variables one in filter area and one in Rows section.
    We recently did the Ehp 1 upgrade and after that it automatically showing only variable selection for character in Filter area. To show all I have to hit "All".
    For Query designer query I was able to change the property in RSRT but for Web report I am not able to change and it is still showing only one selection screen instead of Two .
    Have you faced any such issue. Please can you share your thoghts on how to correct it.
    Best Regards
    Som

    Hi,
    if you are able to see both variables in rsrt we could say that the variable definition are ok ( option: ready for input in variable definition)
    So open the web report on web application designer and in the web template Properties search for "Force Variable Screen display" option and check this option.
    Hope it helps,
    rp

  • What is Free Characteristics,Filter Area and 1ROWCOUNT keyfigure?

    What is Free Characteristics,Filter Area and 1ROWCOUNT keyfigure?

    What is Free Characteristics,Filter Area and 1ROWCOUNT keyfigure?
    Hi M.V,
    Free chars are those chars that you can use to drill down your query as per your requirement at run time, i.e. once you have executed the query you can make your filter or drill down options more flexible by using the free chars.
    Filter Area : Filter area is that area where you can specify the Variable's required for input, you can also restrict some charcteristic values directly as well.
    For e.g -> for ur query requirement is to take date as input from user, so u will create a variable based on the calday info-object and place it in filter area.
    Directly restricting  characte.
    Restricting country to 'India', now u will get the data onnly where the country is india.
    Any restriction that u specify in filter area will globally effect your query. i.e. u will see only that data ouput which meets the specified restrictions
    1ROWCOUNT : you get field 1rowcount when u create any DSO. By default system adds this field that contains value 1 for each row.
    Thanks
    dipika

  • Filter Table data on Query Result

    Dear All
    When I execute the following query (in Query Generator) I got 6411 records. But when I want to filer this table, in the drop down list in 'ITEM' column I found only 500 records (i.e. up to the recods starting with 'K' though there are records starting with 'W' in 'ITEM' field).
    I am using SAP B1, PL 14.
    Can any one suggest how to get all the records in the drop down list of filter window?
    My query is as follows:
    SELECT     distinct D.ITEMCODE + ' - ' + D.DSCRIPTION 'ITEM',
              DATENAME(M,H.DOCDATE) + ' - ' + DATENAME(YYYY,H.DOCDATE) 'MONTH',
              D.PRICE
    FROM     PCH1 D INNER JOIN OPCH H ON H.DOCENTRY= D.DOCENTRY
    WHERE     H.DOCTYPE='I' AND D.ITEMCODE + ' - ' + D.DSCRIPTION IS NOT NULL
    ORDER BY     1, 2
    Thnaks & with regards
    Aloke
    Edited by: ALOKE BANDYOPADHYAY on Jul 15, 2011 4:51 PM

    Dear Gordon
    I have placed the following problem also in forum since one month without receiving any positive answer. So I am requesting you personally can you help me to solve the problem:
    Following is the code I am using for revaluation of items which is giveing "Internal Error 5002':
    Dim lMaterialRevaluation As SAPbobsCOM.MaterialRevaluation
    lMaterialRevaluation = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oMaterialRevaluation)
    For li As Integer = 0 To ls_Lines.Length - 1
    If ls_Lines(li).Split(vbTab).Length 5 Then
    My.Computer.FileSystem.WriteAllText(ls_OutFileName, lnl_SrlNo & "--> Can't Read in the data in Line " & li + 1, True)
    My.Computer.FileSystem.WriteAllText(ls_OutFileName, vbNewLine, True)
    lnl_SrlNo += 1
    Continue For
    End If
    ls_ItemCode = ls_Lines(li).Split(vbTab)(0).Trim
    ls_WareHouseCode = ls_Lines(li).Split(vbTab)(1).Trim
    ld_Price = ls_Lines(li).Split(vbTab)(2).Trim
    li_IncAccount = ls_Lines(li).Split(vbTab)(3).Trim
    li_DecAccount = ls_Lines(li).Split(vbTab)(4).Trim
    lMaterialRevaluation.Lines.SetCurrentLine(li)
    lMaterialRevaluation.Lines.ItemCode = ls_ItemCode
    lMaterialRevaluation.Lines.WarehouseCode = ls_WareHouseCode
    lMaterialRevaluation.Lines.Price = ld_Price
    lMaterialRevaluation.Lines.RevaluationIncrementAccount = li_IncAccount
    lMaterialRevaluation.Lines.RevaluationDecrementAccount = li_DecAccount
    lMaterialRevaluation.Lines.Add()
    Next
    Dim li_Ret As Integer
    li_Ret = lMaterialRevaluation.Add
    If li_Ret = 0 Then
    MsgBox("Material Revaluation Completed")
    System.Runtime.InteropServices.Marshal.ReleaseComObject(lMaterialRevaluation)
    Else
    oCompany.GetLastError(lErrCode, sErrMsg)
    MsgBox(sErrMsg & ", Material Revaluation failed")
    End If
    Thanks & with regards
    Aloke

  • Two conditions in where part of the query out of which 1 is based on length

    hi
    am having two tables and i need to join them to get my desired output. let me explain with example
    table A contains data like
    >
    col1 col2 col3
    12345 sons abcd
    23456 snms bcde
    34567 snms nil
    56478 sons ..
    >
    table B contains data like
    >
    col-1 col-2 col-3
    sons not-subscribed 0
    sons nil-balance 111
    snms not-subscribed 0
    snms incorrect 111
    soai incorrect 111
    >
    i need the output like
    >
    col1_of_table_A col3_of_table_A col-2_of_table_B
    12345 abcd nilbalance
    23456 bcde incorrect
    34567 nil not-subscribed
    56478 .. not-subscribed
    >
    likely requirement in sample query format is
    select a.col1,a.col3,b.col-2 from A a, B b where ((a.col2=b.col-1 and length(a.col3)>length(b.col-3)) or (a.col2=b.col-1 and length(a.col3)<length(b.col-3)))how to achieve this conditional joint?

    Hi,
    in your query i just added '..' instead of null for the row starting with 56478 in table A and executed the query as below and it doesn't give my desired output.
    with a  as
         select 12345 as col1, 'sons' as col2, 'abcd' as col3 from dual union all
        select 23456, 'snms', 'bcde' from dual union all
        select 34567, 'snms', 'nil' from dual union all
      select 56478, 'sons', '..' from dual
       , b as
         select 'sons' col1, 'not-subscribed' col2, 0 col3 from dual union all
        select 'sons', 'nil-balance', 111 from dual union all
         select 'snms', 'not-subscribed', 0 from dual union all
        select 'snms', 'incorrect', 111 from dual union all
        select 'soai', 'incorrect', 111 from dual
       select  col1, col3, col2
      from
           select a.col1,a.col3,b.col2, row_number() over (partition by a.col1 order by b.col2) rn
            from A a
             left outer join b on (
                                  (    a.col2         = b.col1
                                   and  length(a.col3) > length(b.col3)
                                  or
                                   (    a.col2         = b.col1
                                   and length(a.col3)  < length(b.col3)
      where rn = 1
      output is
    >
    COL1     COL3     COL2
    12345     abcd     nil-balance
    23456     bcde     incorrect
    34567     nil     not-subscribed
    56478     ..     nil-balance
    >
    what could be problem?

  • Switching off the filter area in Workbook 3.5

    Hi guys,
    how can I switch off the filter area in the old version of the analyzer workbook 3.5.
    This area is always on the left part of the workbook on the top.
    In this workbook I need only the table with the result.
    Regards
    Erwin

    Hi Erwin,
    As I know you can hide the filter for key figures but there is no way to hide the characteristics filter. The only option is do not include any characteristics in Free characteristics or row area (not a feasible option in many cases) but if you don't want any characteristics data then you can go for this option.
    Regards,
    Durgesh.

  • I pull fiftyfour bytes of data from MicroProcessor's EEPROM using serial port. It works fine. I then send a request for 512 bytes and my "read" goes into loop condition, no bytes are delivered and system is lost

    I pull fiftyfour bytes of data from MicroProcessor's EEPROM using serial port. It works fine. I then send a request for 512 bytes and my "read" goes into loop condition, no bytes are delivered and system is lost

    Hello,
    You mention that you send a string to the microprocessor that tells it how many bytes to send. Instead of requesting 512 bytes, try reading 10 times and only requesting about 50 bytes at a time.
    If that doesn�t help, try directly communicating with your microprocessor through HyperTerminal. If you are not on a Windows system, please let me know. Also, if you are using an NI serial board instead of your computer�s serial port, let me know.
    In Windows XP, go to Start, Programs, Accessories, Communications, and select HyperTerminal.
    Enter a name for the connection and click OK.
    In the next pop-up dialog, choose the COM port you are using to communicate with your device and click OK.
    In the final pop
    -up dialog, set the communication settings for communicating with your device.
    Type the same commands you sent through LabVIEW and observe if you can receive the first 54 bytes you mention. Also observe if data is returned from your 512 byte request or if HyperTerminal just waits.
    If you do not receive the 512 byte request through HyperTerminal, your microprocessor is unable to communicate with your computer at a low level. LabVIEW uses the same Windows DLLs as HyperTerminal for serial communication. Double check the instrument user manual for any additional information that may be necessary to communicate.
    Please let me know the results from the above test in HyperTerminal. We can then proceed from there.
    Grant M.
    National Instruments

  • If we run a query,what all happens in background/what are phases of query processesing.?

    Hi Friends,
    if we run a query,what all happens in background/what are phases of query processesing.?
    Many thanks
    Shashikala

    It has to go through
    Parsing-on this stage it perform basic check on code (T-SQL,
    Binding(Algebrizer Stage)-on this stage does more parsing and perform query tree,
    Optimize- on this stage take query tree from Binding and parsing and find a better way to return the result that you need so cost might apply here and then
    Execute 
    To know about transaction Log we have to know first how Transaction log file internally works: when you are trying to make change in data as Insert, Update, Delete requests
    from applications using T-SQL or on object explorer, SQL Server will load (load) to the corresponding page data memory where we call this memory area as DATA CACHE.  Then the data in the data cache are changed which is also known as known as DIRTY PAGE.
    Next all changes we made by running query will be recorded in the transaction log file so they called the write-ahead log. At final stage, a process known as CHECK POINT PROCESS will check and write all the transaction has been committed AND completed to your
    hard drive by flushing the page.
    So simply put here are the steps
    Data modification sent by application
    Data pages are located in or read into, cache and modified
    Modification is recorded in transaction log on DISK
    Checkpoint writes committed transactions to database
    I hope this helps a bit in answering your question good luck.

  • How to display medium text for 0FISCPER in Filter area.

    Hi,
    I am having a problem with display of filter values in bex query. In filter section, there is 0FISCPER used. after running query I can see only "JAN" value.
    But user wants to see "January 2007" in place of JAN.
    though 0FISCPER info object has text table T009C. it has two colomns one for short text and one for medium text. and data in table is stored as below -
    Year     Period     Sh.text      Med. text
    2007      001        JAN          January 2007.
    2007      002        FEB          february 2007
    In query, 0FISCPER is taking only Short text for an display settings. While it should take Medium text.
    How can I solve this problem ??
    [email protected]

    Hi,
        In your Infoobject, choose BEx Explorer tab, Check what selected for BEx Description, there choose Medium text instead of Short text.
       Hope this sill be helpfull
    rgrds,
    V.sen

  • Filter Role in BI Query

    Hi,
    I am very much confuse about the restriction role in default , characteristic Restriction ,key figure restriction.
    Can anybody help me?
    Regards ,
    Rajesh

    Hi Rajesh....
    I will try to explain you with an example....
    Filter are the Characteristic Restriction.........for an example there are 100 Company codes.......but you want to display only data only for Company Code F1 and AR1......then you can restrict the characteristic Company code for the value F1 and Ar1........
    What do you mean by Keyfigure restriction.......are you talking about restricted keyfigures............if yes....
    Suppose , you want to show the revenue for these two keyfigures for Fiscall Year / Period 001.2011 and 002.2011.....in two seperate column......
    One restricted keyfigure is : Rev_001 and the otherone is Rev_002......
    So create two restricted keyfigure, in one restrict the revenue for Fiscal Year / Period 001.2011 and in the other one for 002.2011...
    Regards,
    Debjani....

  • How many records are  fetched my query into my internal tables

    Hi
    I am in the debugger, would like to know, how many records are  fetched my query into my internal tables. How do I  find out ?
    thanks
    siva

    Hi,
    Do the following,
    Step 1:
      Fill your internal table with select query.
    Step 2 : Use DESCRIBE statement with LINE addition to get the no of rows in the internal table.
    for further informations, check
    http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3798358411d1829f0000e829fbfe/content.htm
    Regards,
    Anirban

  • Cannot find result area for a query

    I have 4 queries in a workbook, all on separate sheets. I usually refresh all queries at once from a fifth worksheet. I started getting this error when the first query is refreshed that says "Cannot find the result area for a query - probably all its cells were deleted. Please define a new location for the result area!"
    If I refresh each query individually, I do not get this error. But I want to refresh all at once, which had always worked in the past. If I play along with the error and try to select a cell to put the results, it still does not solve the issue. Any ideas why  suddenlt started receiving this error?
    Thanks.

    Try going through all the tabs on the workbook and ensure that you place the cursor within one of the cells of the query, then resave, close and open. See if the message still occurs.
    I know it sounds silly but we have had this issue in the past with multi tabbed workbooks and this, simple as it sounds has been the cause.

Maybe you are looking for