UNION keyword in Qaaws Filter Object

Hi All,
Could you please help me in the following problem?
I need to combine two queries in Qaaws using the keyword UNION, How can I get UNION keyword in Filter Objects e in Qaaws? In Qaaws Filter Objects,  I am able to see only  2 options (And,  Or)
In the Universe under SQL parameters, Allow use of Union, Intersect and minus option is already checked.
In Universe,  using 'Query Panel'  I am able to generate this query using 'Combine Queries' option.
However I am unable to find such option in Qaaws. Can any one help me please in this regard?
My query is :
SELECT DISTINCT
  SUM(SHP_DW_CARRIER_SPEND_TB.NET_CHARGES),
SHP_DW_CARRIER_SPEND_TB.CARRIER_ID
FROM
  SHP_DW_CARRIER_SPEND_TB
WHERE
  SHP_DW_CARRIER_SPEND_TB.CUSTOMER_ID  =  7920
  AND  ( SHP_DW_CARRIER_SPEND_TB.CARRIER_ID in (21,22,23,85135,85192,85137,85136)  )
GROUP BY
  SHP_DW_CARRIER_SPEND_TB.CARRIER_ID
UNION
SELECT DISTINCT
  SUM(SHP_DW_CARRIER_SPEND_TB.NET_CHARGES), -2
FROM
  SHP_DW_CARRIER_SPEND_TB
WHERE
  SHP_DW_CARRIER_SPEND_TB.CUSTOMER_ID  =  7920
   AND  ( SHP_DW_CARRIER_SPEND_TB.CARRIER_ID NOT in (21,22,23,85135,85192,85137,85136)  )
Thanks in advance.
Regards,
Kishore Babu M. N.

Hi User,
Filter view will not work with union request.
You have a workaround here, http://obiee101.blogspot.com/2008/04/obiee-combined-with-similar-request-and.html
Rgds,
Dpka

Similar Messages

  • Qaaws, LNNVL in Filter Object

    Hi All,
    Can any one suggest me, how to use LNNVL in filter object as a prompt in Qaaws?
    I have to pass user_id value dynamically ( 6820) as a prompt value.  This value will be changed dynamically in Xcelsius and has to be mapped to Qaaws input parameter.
    .. and lnnvl(a.user_id != 6820)
    Thanks in advance.
    Regards,
    Kishore Babu M. N.

    Hi David,
    Thank you for the reposnse.
    Its quite a generic error to be fair.
    Due to this:-
    *as the same config works on my desktop machine. *
    I don't believe that this is the issue.
    Also, I'm not trying to connect to a universe at this point, I'm purely trying to log in.
    Cheers,
    Mark.

  • Filter Object with Filter Expression error.

    Hello everyone!
    I'm trying to put together the following expression for a filter to be used in a report:
    Order Date -> object name = M1 - (number, measure)
    Current Date -> object name = M2 - (number, measure)
    Comparison between the two:
    <EXPRESSION> IIF (@ Select (M1) = @ Select (M2), 1.0) </EXPRESSION>
    object name 3
    So far everything works fine.
    When I create a report in Web and I put the filter M3 = 1, it filters properly.
    I thought of putting the filter in a filter object in the universe, like this:
    <FILTER EXPRESSION = "Select @ (M3)"> <CONDITION
    OPERATORCONDITION = "Equal"> <CONSTANT CAPTION="1"/></CONDITION></FILTER>
    Just as it is in Olap universes best practices written by Didier. (Page 12), as following example:
    Filter with a calculated member referenced in the filter expression:
    <FILTER EXPRESSION="@Select(Calendar Year\My Calculated Member)"><CONDITION
    OPERATORCONDITION="Equal"><CONSTANT CAPTION="1"/></CONDITION></FILTER
    But does not work when I put the query, the error is dpscommand. And I have no idea where the error is.
    The strange thing is it works, if I filter the query directly. ( Query filter: M3 equal 1).
    Do you have any tips? or something I could try that I have the M3 as a filter object?
    Tks a lot!
    Livia
    I am working on BO XI R3 - SP2 and the basead query is on SAP BW 7.0.

    macearl wrote:
    SQL View does not display unless data is returned by the query. Is that normal?
    Also, none of these options shows the literal result of the expression we built, i.e.:
    expression: CAST(YEAR(TIMESTAMPADD(SQL_TSI_MONTH, -24, CURRENT_DATE)) as CHAR)
    result: *2008*
    Having the ability to test expressions and see their results would be very helpful in debugging. If anyone knows how to do that please share!
    Thanks!
    MacOk, Probably shoud have figured this out before, but in response to my own question, the way to view the result of an expression is to add the expression as a column and include it in the Table Presentation.
    - Mac (he can be taught)

  • APD with date variable in filter object

    Have an APD with a filter object. The filter uses a range for 0CALDAY. the range includes a variable (customer_exit) whic calculates the date of previous fiscal period-end date. Works perfectly in Bex.
    However, when running the APD, the date format comes out as YYYY/MM/DD, and 0CALDAY is expecting MM/DD/YYYY.
    How can I get the internal format of the date correct? I get no errors in the APD, however the date format causes incorrect results, as if no date was entered.
    Any suggestions?
    PS. actually, the internal date format used by the APD for my variable ZCE_PREVPER_END is:
    ZCE_PREVPER_END  = '20101001'
    Needs to be 10/01/2010....
    Edited by: JoeC on Oct 27, 2010 11:39 PM

    Hi Jordan,
    I would suggest several options.
    First, you have the option within Webi to display only the date and not the time (right click on the object on the report, or go to field properties, and change the format of the display).
    If you are using this value in comparisons in the report, you must make sure the format matches. Try changing the format within the variable to be the same as what you are comparing it to. If that is still not working, let me know. It may still just be a syntax or data type/format error.
    Thanks

  • Set view in filter object

    Hi,
    I never tried this out, but is it possible to set the view (html page to be sent back) in the a filter object rather then in a servlet?
    Regards,
    Sim085

    Thanks,
    I was just wondering if it goes against some common rule followed when developing web applications!
    Thanks :)

  • Filter object IDOC

    Hi ,
             for message type COND_A we are trying to restrict it using filter object. But instead of hardcoding it we want to use the range inclusion and exclusion kind or from a table. So we are looking for an user exist to implement this. Which user exist can we use? Also is there any other way we can do?
    Thanks,

    Hi,
    Which process code you are using?
    Regards
    Vinod

  • Filter Object

    Hi,
      What is Filter object in ALE? Please give real time explanation or example?
    If you have any related docs send me to [email protected]
    Thanks & Regards
    Siva

    Hi Siva,
    Once the master idoc is created by the application. it needs to be send to receivers maintained in the distribution model. But in real time not all data maintianed in master idoc is required by all receipient. so we create filters objects in distribution model to block the not required by respective recipient.
    I guess you got the gist.
    For some high level intro on ALE check the link below ..
    <b><a href="http://www.intelligententerprise.com/channels/applications/feature/archive/kasturi2.jhtml;jsessionid=QOWRMK2HOMKLOQSNDLRSKHSCJUNN2JVN?_requestid=772744">ALE: Linking R/3 Applications</a></b>
    Hope this helps you..
    Enjoy SAP.
    Pankaj Singh

  • How to set the filter object in distribution model

    can any one pls help me

    Hi,
    Go to BD64 and select your message type which you want and double click on this message type.Now a popup will display and below this popup there is a pushbutton  <i><b>Create filter group</b></i>.Press this pushbutton then you will get the all filter object in that message type here you will add filter values.
    Before that you have chekc in BD59 tcode that is any filter object required is assigned to your message type or not if no filter object not assigned to you message type then you can add your required filter fields here.
    Thanks,
    shyla

  • Assigning Filter Object Type for Internal Order

    Hi All,
    I have a requirement to send a INTERNAL_ORDER IDOC to another system on creation or on change of an order. I have created the model view and added the BAPI InternalOrder.SaveReplica in the distribution model (BD64) and the next step was for me to add a filter. I tried creating a filter group but then I get the message "Select node:Content-dependent parameter filtering". I have done a similar configuration for PROJECT idoc before and I was able to solve this by configuring in BD95 - Defining the filter object type and then BD81 - Assigning the filter object type to the parameter. However now when I try and implement the same steps for the Internal Order IDOC, I am having trouble assigning a filter object type to a parameter. I want to filter by company code and so far I was able to define the filter object type (BUKRS) in BD95 and then when I go on to try and assign this to the BAPI Parameter in BD81 , only 1 parameter appears (objectstatus) when I drop down for the parameter options.
    The row entry that I am trying to add is:
    Obj. Type
    Method
    Filter object type
    Parameter
    Field Name
    BUS2075
    SAVEREPLICA
    BUKRS
    MASTERDATA
    COMP_CODE
    But only OBJECTSTATUS appears in the Parameter block as an option when I press F4.
    Further more when I try save the entry as above, I get an error. Error Message: "Entry MASTERDATA does not exist in (check entry)"
    Can I please get some guidance on how to filter the internal order by company code or more importantly advise on which step I may have skipped in order have “MASTERDATA” appear as an option for Parameter field in BD81.
    Thank you.

    Hi,
    I need to pass object key or object type to a function module 'SAP_WAPI_WORKITEMS_TO_OBJECT'. This function module returns the worklist details(workflow inbox). In worklist details i need to use the field for workitem id.
    Regards,
    Gautham

  • Filter objects

    Hi Sap folks ,
    I am trying setup  Accout group as a filter object for DEBMAS (Customers ) , But the Accout group was missig in Standard filter object group . So how i can solve this ?
    Thanks&regards
    Srinivas

    Hi Aman,
    Go to BD64 transaction Customer distribution model. Right click the sendor or receiver to create the filter object. Here you can set the company code to 3400.
    Regards
    Arun

  • Filter Objects returned by Get-ChildItem

    Hello there,
    I had a look at the properties available for objects returned by Get-ChildItem command using:
    PS C:\> Get-ChildItem | Get-Member
    This command shows that objects returned by Get-ChildItem command possess properties
    'Name, FullName, LastAccessTime etc...'
    If I declare a variable to retrieve objects starting with 'Program':
    PS C:\> $ChildItems_Program = Get-ChildItem -name 'Program*'
    and check what is stored in $ChildItems_Program, it shows me two objects/items as shown below:
    PS C:\> $ChildItems_Program
    Program Files
    Program Files (x86)
    However if I try to access properties 'Name, FullName, LastAccessTime' from the first object saved in $ChildItems_Program
    PS C:\> $ChildItems_Program[0] | Select -Property Name, FullName, LastAccessTime
    Name FullName LastAccessTime
    I can't see any results for above command- Shouldn't it return the properties of first object saved in $ChildItems_Program?
    Can anyone please guide.
    Thank you!
        

    Hi,
    Tommy is right, using -Name doesn't actually return the full object. When you use that parameter, you're getting back an array of names only. Here's how you can tell:
    PS C:\> $ci_program = Get-ChildItem -Name 'Program*'
    PS C:\> $ci_program.GetType()
    IsPublic IsSerial Name BaseType
    True True Object[] System.Array
    PS C:\> $ci_program[0].GetType()
    IsPublic IsSerial Name BaseType
    True True String System.Object
    PS C:\> $ci_program[0] | Get-Member -MemberType Property
    TypeName: System.String
    Name MemberType Definition
    Length Property int Length {get;}
    PS C:\> $ci_program
    Program Files
    Program Files (x86)
    Here's what you should see if you get objects back from gci, using -Filter (I use -Path here):
    PS C:\> $ci_program_object = Get-ChildItem -Path 'Program*'
    PS C:\> $ci_program_object.GetType()
    IsPublic IsSerial Name BaseType
    True True Object[] System.Array
    PS C:\> $ci_program_object[0].GetType()
    IsPublic IsSerial Name BaseType
    True True DirectoryInfo System.IO.FileSystemInfo
    PS C:\> $ci_program_object[0] | Get-Member -MemberType Property
    TypeName: System.IO.DirectoryInfo
    Name MemberType Definition
    Attributes Property System.IO.FileAttributes Attributes {get;set;}
    CreationTime Property datetime CreationTime {get;set;}
    CreationTimeUtc Property datetime CreationTimeUtc {get;set;}
    Exists Property bool Exists {get;}
    Extension Property string Extension {get;}
    FullName Property string FullName {get;}
    LastAccessTime Property datetime LastAccessTime {get;set;}
    LastAccessTimeUtc Property datetime LastAccessTimeUtc {get;set;}
    LastWriteTime Property datetime LastWriteTime {get;set;}
    LastWriteTimeUtc Property datetime LastWriteTimeUtc {get;set;}
    Name Property string Name {get;}
    Parent Property System.IO.DirectoryInfo Parent {get;}
    Root Property System.IO.DirectoryInfo Root {get;}
    PS C:\> $ci_program_object
    Directory: C:\
    Mode LastWriteTime Length Name
    d-r-- 1/26/2014 12:40 AM Program Files
    d-r-- 3/28/2014 12:07 PM Program Files (x86)
    Don't retire TechNet! -
    (Don't give up yet - 12,700+ strong and growing)

  • Mutilple Filter Objects - Changing where clause and or

    Is it possible to have a query as below using filter commands.
    (obj1 = 'value11' and obj2 = 'value21')
    or
    (obj1 = 'value12' and obj2 = 'value22')
    or
    The objective is to manipulate the where clause and , or .
    Thanks in Advance
    Bhanu Mohanty

    Hi Bhanu,
    to reach what you want it's necessary to build a virtual characteristic.
    The new characteristic will be populated via coding during runtime of your query. Another possibility (as mentioned before in this forum by Siegfried Szameitat) is to create a new characteristic in your cube that contains field1 and field2 concatenated. With the first scenario, you don’t need a reloading of your cube, with second one this is necessary.
    Hope this helps.
    Bye,
    Roberto

  • Aggregation level includes filter objects...

    Hi,
    We are using a BO universe on top of a BEX query to create WebI reports.
    We now run into the following problem when filtering on a certain characteristic in the BO query.
    The result set of rows is limited to the correct values, but not aggregated up to the requested aggregation level. The problem exists whether the key figure is defined as having an aggregation to be database delegated or sum.
    In the query results we see the number of rows being pulled back is too high, the results displayed are correct (because aggregated by WebI). In the example below we selected three stores, but not store as a result object.
    *** Query Name:Query 1 ***
    ** Query Properties:
    Universe:Retail Sales and Stock
    Last Refresh Date:9/2/10 2:29 PM
    Last Execution Duration: 33
    Number of rows: 4,947
    Retrieve Duplicate Row: ON
    ** Query Definition:
    Result Objects: Style Code, NSLS @ PCS
    Filters ( Only RMS Billing Documents Infoprovider
    AND Given Legacy Division Set
    AND Given Currency Conversion Type
    AND Store Key In List { 1001; 1002; 1003 }
    AND NSLS @ PCS Not Equal 0
    We cannot attach a document, but the actual amount of rows should have been 2,856,
    the number of different style in these 3 stores.
    When we include the store object in the results, we can see the number of rows stays the same (proof that it did indeed return rows on a store level and not aggregated upt to the style code...
    *** Query Name:Query 1 ***
    ** Query Properties:
    Universe:Retail Sales and Stock
    Last Refresh Date:9/2/10 2:09 PM
    Last Execution Duration: 13
    Number of rows: 4,947
    Retrieve Duplicate Row: ON
    ** Query Definition:
    Result Objects: Style Code, Store Key, NSLS @ PCS
    Filters ( Only RMS Billing Documents Infoprovider
    AND Given Legacy Division Set
    AND Given Currency Conversion Type
    AND Store Key In List { 1001; 1002; 1003 }
    AND NSLS @ PCS Not Equal 0
    Is this behaviour fixed in any fix pack? Or did noone address this problem?
    The problem becomes a real problem when the user wants to select everything u/i a certain date.
    The number of rows are then pulled back on a style/store/day combination and easily reached 100.000 rows.
    Thanks for any insight you can give on this,
    Marianne

    Hi Rik,
    Thanks for at least trying
    I didn't try this before, so I just did, despite the fact that the aggregation level only has something to do with the way data aggregates within webi. (I'm that desperate)
    No difference, other then the fact that I now get #MULTIVALUE in the cells with multiple underlying rows.
    Anyone else?
    Marianne

  • Problem with filter object

    Hi, i have a filter (client number) in my WAD
    In a query i have the same client number infoobject with some attributes as a detail.
    When i run the WAD in Internet Explorer, and i search by client number, the query detail don´t show me the client number and the attributes.
    I don´t know what's the problem
    Thanks

    Hi,
    By default you get data for first 1000 records and the client may be more than that. Try increasing teh number of records under Heading "Maximum"

  • Filter Objects out of an image

    Hi,
    i want to create something like a mask for an image. It should lay on the
    image in order to check if some objects are existing - depending
    on the type of mask. Let�s say the mask should detect squares.
    Is there any possibility to do that? If yes, what are the classes i have to use?
    Thanks for any suggestions.

    BC,
    Yes, I've done it. I won't say it's easy though. What I did was tediously remove the head with Instant Alpha, leaving the body with a transparent section where the head once was. Then position the photo with the desired head behind the body photo and adjust size and position until you have a good interface. I suppose you could do it the other way around, but it may take longer. When you have what you want, Print to PDF to flatten the composite to one layer.
    The thing that makes this tedious is mainly the lack of an eraser tool. The next time I attempt this I'm going to explore using Seashore or Paintbrush in conjunction with iWork.
    Jerry

Maybe you are looking for