Combined Query Output as Filter Criteria

Post Author: imzdo1
CA Forum: WebIntelligence Reporting
I have the need to run a combined query to produce a list of document numbers (I have that query working) and then use the output from that query as the filter criteria in an expanded query in the same Universe.  The output from the first query is 6500 document numbers so it would be very time consuming to cut and paste these into a filter 15 or 20 at a time and then pasting the result of the 300 queries needed to get one report.
I have both reports built, but can not figure out how to link the first report output to the filtering criteria on the second report.  I am using Webi, not full client version.
Is is possible and if so how?

Post Author: RobotSlave
CA Forum: WebIntelligence Reporting
Hello imzdo1, what type of datasource? the following applies to SQL:
sounds like you need to create a temporary table in your SQL stored procedure, like so:
CREATE TABLE #TempDocumentNumbers
documentNumber int,
documentName Varchar(20)
or however many columns you need, then insert into the temporary table using your existing query like so:
INSERT INTO #TempDocumentNumbers
SELECT (whatever your select statement is)
just remember that you will need to have coresponding columns in your temporary table for each column your select statement returns, once you have the values stored in your temporary table you can join on it just like you would on any other table in the database,
I like to explicitly drop temp tables at the end of my query like so:
DROP TABLE #TempDocumentNumbers

Similar Messages

  • How to combine query outputs?

    How do we use the XSU to take the xml output of one query and append that to another's output, so that the xml is well-formed and will be handled by an xsl transformation?
    We use OracleXMLDocGenString and OracleXMLQuery. We worked it once, yet the xml output contains two "<?xml version = '1.0'?>" and therefore won't get transformed via xsl.
    You can do this easily using the XSQL servlet by putting all queries within a single .xsql file.
    Thanks.

    How do we use the XSU to take the xml output of one query and append that to another's output, so that the xml is well-formed and will be handled by an xsl transformation?
    We use OracleXMLDocGenString and OracleXMLQuery. We worked it once, yet the xml output contains two "<?xml version = '1.0'?>" and therefore won't get transformed via xsl.
    You can do this easily using the XSQL servlet by putting all queries within a single .xsql file.
    Thanks.

  • Filter Criteria with where condition in graph api query

    Hi
    Filter criteria in  graph api is  working fine  through this api
    https://graph.windows.net/adummydirectory.onmicrosoft.com/users?$filter=displayName eq 'Ashok'&api-version=1.5
    Select criteria is also working fine through this api
    https://graph.windows.net/ adummydirectory.onmicrosoft.com/users?api-version=1.5&deltaLink=&$select=displayName,accountEnabled
    But when I am combining both query that means, I want that select criteria should also apply with filter clause like
    https://graph.windows.net/adummydirectory.onmicrosoft.com/users?$filter=displayName
    eq 'Ashok'&api-version=1.5&deltaLink=&$select=displayName,accountEnabled
    But its generating error
        "odata.error": {
            "code": "Request_UnsupportedQuery",
            "message": {
                "lang": "en",
                "value": "Unsupported expression node type 'Equal' for Where expression."
    So please suggest how we can use select clause with filter criteria. our requirement is that we don’t need all attributes .we want selected attributes for filtered users.

    Greetings!
    The differential query syntax does not allow for a filter other than $filter=isof(<directory entry type>).  You are not able to use any other query string for this type of query.  Please see the following MSDN link for details:
    http://msdn.microsoft.com/en-us/library/azure/jj836245.aspx
    I will need to do a bit more research to see if it is possible to request specific attributes for an object query and post back to this thread when I have a response.
    Regards,
    MaxV ( MSFT )

  • Displaying selection criteria as part of query output

    Hi Folks,
    How do you add the selection criteria to the header of an SAP Query output?
    Thanks,
    Roy

    hi,
    for your own reports (beginning with z and y)and queries this should be no problem. Create a program, which makes your demanded heading,  and include it to your reports.
    Andreas

  • Inserting Selection Criteria in Query Output

    Hello guys
    How can I insert a "Selection Criteria" for a query in its output. The final outcome should be:
    1. The user runs the query.
    2.The Selection Criteria pops up. The user enter the values. Then executes the query.
    3. The query is displayed:
    a. It has the Free Charcteristics in the left hand side top corner.
    b. The query results below it.
    c. And on the top, in the middleof the query, over the results area, the selction criteria should be displayed like:
          <b>                          Plant : 0353
         Free                     Material : Empty Demarcation
    Characteristics          Fiscal year / Period : 001/2007
                         Query Output</b>
    Can this be done in BEx? Do i need a create a workbook? how do i do this?
    Thanks.

    Hi Prasad,
       Create a workbook so that you will be able to  place  results at defined locations.
    For displaying  all selection criteria in the workbook  choose layout >  Display Text Elements . Delete the text elements that you do not wish to display.
    Jaya

  • ADR/Software Updates - Filter Criteria on title string

    Hello,
    i want to filter software updates in the "all software updates" list or in an automatic deployment rule.
    let's start with the all software updates list. example, i want all win7 updates 64bit, but no media center updates
    a logical query would be:
    Product: Windows 7
    Title: contains "x64" AND does not contain "Media Center"
    this seems to be impossile in the SCCM2012 interface as i can't change "OR" to "AND", so i am stuck with "title contains x64 or does not contain media". naturally, all available updates fall in this search criteria, making it useless.
    is there a solution for this?
    second try, this time in an automatic deployment rule - here i have more options, as i can add several query strings to the list. the informational message states that strings can be put in quotes for exact matches, and prefixed with
    a minus symbol for exclusions. so an example filter criteria to get all x86 windows 7 updates EXCLUDING internet explorer 8 and 9 patches would look like:
    again, this does not work - the result includes all x64 updates for win7, completely ignoring my -"x64" statement, it also includes all IE8 updates - no idea how this criteria is translated in the background to an sql query, in any case, it fails to give
    me the result i want.
    is there any solution for this?

    unfortunately, even question 2 is not fully solved.
    the filter strings i can put for title filtering are all combined with OR and this is a problem.
    e.g. i want to show only .net framework updates for x64 systems.
    when i put these filters:
    x64
    -Beta
    Microsoft .NET Framework
    i get "x64 OR -Beta OR Microsoft .NET Framework" resulting in a list that contains all x64 .net AND windows 7 updates
    when i put these filters:
    x64
    -Beta
    -Microsoft .NET Framework
    i get "x64 OR -Beta OR -Microsoft .NET Framework" resulting in only x64 windows 7 updates
    when i use these filters:
    -Beta
    Microsoft .NET Framework % x64
    i get "-Beta OR Microsoft .NET Framework % x64" resulting in what i want (all .net updates for x64 systems)
    so yes, i found a way to put the filters how i want them, but not beeing able to change the AND and ORs in the query, and the confusing way the negation sign is working in OR statements, make it a bit frustrating. and if the % wildcard wouldn't work i would
    be without a solution at all.

  • Adding "Filter Criteria" to the XSLT List View Web Part impact on "Export to Excel" functionality within Document Library

    Hi there,
    XSLT List View displaying all the list items within the Document Library. In order to implement the Search functionality within Document library out of box "Text Filter" web part is configured as explained below. The solution is similar to
    the one suggested at
    http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=77
    "Text Filter" Web Part added to the page.
    Filter Criteria (i.e., XSLT List View columns) added to the XSLT List View where the filter parameters take the input from the "Text Filter" Web Part .
      3. Both Web Parts (XSLT List View and the Text Filter) are connected.
    When the search criteria is entered into the "Text Filter" Web Part, it is passed to the relevant Columns of the XSLT List View and the documents (List Items) that match the search criteria are shown within XSLT List View.
    Search functionality working as expected.
    Query: Selecting the "Export to Excel" icon from the ribbon generates the excel spread sheet with no data except Column Titles from the Document library. In the investigation it is
    found that adding the 'Filter Criteria' on XSLT List View is causing this bug. When the Filter Criteria is removed, then "Export to Excel" functionality is working as expected.
    But it is mandatory to add "Filter Criteria" to implement the search functionality with in the document library.
    Help: Help/input appreciated on the work around to get the "Export to Excel" functionality work when the "Filter Criteria"
    exist on the XSLT List View.
    Regards,

    Once again thanks very much for your help Scott. very much appreciated.
    In the investigation it is found that removing the 'Filter Criteria' on XSLT List View makes the "Export to Excel" functionality work. But the 'Filter Criteria' is mandatory to get the 'Document Search' functionality.
    I think that due to technical limitations it should be concluded that 'only custom development can make all work, no code solutions using the SharePoint Designer can meet all the requirements.
    If you can think of any alternative solution that could help in resolving the current issue or fix the issue without any custom implementation please inform. Otherwise this issue would be marked as resolved with your suggested response.
    Regards,

  • Change layout of Adhoc query output list for Custom infotype

    Hi All,
    The fields in the Infoset query output on a custom infotype are aligned with the fields u2018payment typeu2019 and u2018amountu2019 appearing repeatedly(in columns) as declared in the Infotype and the output will be a long horizontal list.
    Instead, the requirement is that the output list should show vertically so that If I choose u2018Payment Typeu2019 and u2018Amountu2019 as output fields, it will show a long vertical list as in the case of a standard infotype (IT0008).
    Also, this way enables user to use Payment Type as a selection criteria so as to just pulling the needed payment type. When we use IT0008 in the infoset it works fine but in custom IT it does not work.
    Any pointers/suggestions on how we can achieve this would be helpful.

    Hi yu liang,
                     You can find vendor list having Vendor No. & without showing total liability for every vendor.
    after executing the report,
    1.You need to select "change layout (ctrl+F8)",
    a small window comes, it has two part -> column content & hidden fields.
    then u select "Vendor" from hidden field & move it to column content.
    2. at column content there is a column named "Total". u need to remove check for your column name "amount".
    now select "copy" button or enter. u will find the req. report.
    u can save it also by ur name.
    hope its helpful to u.......
    plz, reward points as a way of thanks if helpful...

  • SQL query as a filter in OBIEE

    i have a list of student_ID in one table ( lets say A) and its subset in another table( table B)
    i want a filter such that only the student_ID in table A which are not in table B are selected.
    i am selecting operator "not equal to/ is not in" of the student_id in table A and choosing SQL query option for adding the value.
    select distinct student_id from DatabaseName.B
    Its not working. Its giving error after a lot of minor tweaks.
    Can you help how to resolve this

    1.) Answers references RPD objects and NOT database objects. (ref. "select distinct student_id from DatabaseName.B"
    2.)
    - Create analysis (1) which retrieves all student_id's from your table B
    - save
    - Create analysis (2) which retrieves student_id's from table A
    - Create a filter criteria on column student_id: column "student_id" -> Operator "is based on results of another analysis" -> Saved analysis = "/whereeveryoustoredthat/analysis (1)" -> Relationship "is not equal to any" -> Use values in Column "student_id"
    3.) Bob's your uncle

  • How to read disqualified rows after filter criteria is applied?

    Hi,
    I Use JDeveloper 11.1.2
    I have a view object, which shows 100 records during initial time. I've applied filter criteria in such a way that it displays only 20 records.
    One of my requirement is to surf the records which are disqualified for the filter criteria (i.e. I should be able to read the rows that are not participated in the filtered View object)
    I didn't find any API for this.
    Can anyone help me on this?
    Thanks in advance.

    There its no api for this. All you can do is to either requery without the filter, or to negate the filter and then query again. Still you have to do this yourself.
    Timo

  • Output mismatch between BEx query output and WebI Report output

    Hi All,
    I have a BEx query in which there are only characteristics placed in rows.
    There are combinations of the values of the characteristics giving different records in the query output.
    Date is one of the characterisctics in the query output.
    There is an output mismatch between the query output and the WebI report output in the following case:
    When there are 'Not Assigned' or '#' or blank values, there are additional entries(rows) in the WebI report, giving repeating or wrong entries in the Date field. This is incorrect data.
    Is this because of the  'Not Assigned' or '#' or blank values of the Characteristics or is there any other reason?
    How do I fix this?
    Please helo me with this.
    Thanks and Regards,
    Srilakshmi B

    Hi Rajesh,
    I need to verify the WebI report output for records with # and 'Not assigned' values for the cHracteristics in the report.
    So I cannot check the WebI report by hiding the # or Not assigned values.
    The problem is that in the Query output the records are like these shown below:
    Char1                    CHar2                          CHar3                       Date field
    A                             B                                 C                                Date1
    #(Not assgined)      #(Not assgined)      #(Not assgined)             No value
    Where as the WebI report output is as below:
    Char1                    CHar2                          CHar3                       Date field
    A                             B                                 C                                Date1
    #(Not assgined)      #(Not assgined)      #(Not assgined)            Date1
    As shown here, there are wrong/repeating entries for the Date field in the WebI report output.
    Please check this and let me know what could be the issue and how do I fix it.
    Thanks and Regards,
    Srilakshmi B

  • User entry in Query output screen

    Hi Friends,
    Is there any option to allow user entry in the query output (not variable entry screen), so that the output will change accordingly?
    Regards,
    Guru

    Hi,
    Once query output is generated you can not have any variable selections further. What you can do is, Filter your output based on existing characteristics.
    If there are any free characteristics available you can drilldown on them or put filter restrictions on them and you can get the new data for those required attributes.
    But you can not change the original output set once generated, you will have to re-execute the query.
    Regards,
    Durgesh.

  • Result Row in the query output

    Hi,
    If I restrict a characteristic by hierarchy then I can’t have the result row displayed. If the hierarchy active is removed then the result row gets displayed. All characteristics are marked to show the result row.
    This characteristic is Account Number. If in the query definition I remove the restriction on account numbers and just select hierarchy active and the required hierarchy in the properties then I get the result row in the output. But now it also displays all the unassigned account numbers in a separate node “Not Assigned Account Number (s)”.
    I can’t even restrict it in the output with hierarchy active selected. When I do select filter value in the output the options Include in Selection and exclude from Selection are grayed out and hence can’t select it.
    Please advice on this issue…
    Thank you,
    sam

    Hi Jaya,
    I think you misunderstood my issue.
    My problem is not that i do not want to see the field. But instead, i do not want to see only the results row in the query output.
    I need to have the results to populate a calculation via sumct formula.
    My question is, can sumct be populated if i hide/supress RESULT row ?
    Regards,
    Maili

  • Issue with Saving the Query output data in Excel format

    Hi,
    Recnetly we had upgraded from 4.6c to ECC 6.0.
    In ECc 6.0 environment, when user try to export the query output , we are getting only XML option to save the data.
    But user want to save the data in EXcel format, he was able to do that in 4.6C.
    pleas eprovide some inputs, on this issue.
    Thanks,
    Sanketh.

    I cannot for the life of me imagine, why a link to a post in the 'Business One Forum' where one uses ODBC to transfer query-data to MicroSoft Excel is of relevance to the OPs question, even if the same is not a security issue.
    Never mind. [note 40155|https://service.sap.com/sap/support/notes/402155] deals with various symptoms in the ALV-Excel combination as as of release 4.6C. There are various others, mostly in components BC-SRV-ALV and BC-ABA-LI - also: I remember that when we upgraded from 4.5B to 4.7C there was an issue with Excel-templates -> the solution was in the release notes somewhere. So, in addition to SMP you might want to check the release notes and/or upgrade guide for solutions.
    And yes, moderators ... this is not a security issue, this should go to ECC-Applications/Upgrade.

  • Filter criteria needs to be saved as variant??

    Hi All,
        what i need to know is that  is it possible to save the filter criteria in BW reports as a variant ( Like R/3)  for future references?
    Need your advise please.
    Thanks and Regards

    Hi,
    Once you have saved a RKF, it would be available in the query designer on the left top above the normal key figures, you can drag and drop them either in the rows or columns depending on the requirements of the report and then see the result on execution of the query.
    Assign points if useful
    Regards
    Venkata Devaraj

Maybe you are looking for

  • What is the best process to backup and rebuild an iMac?

    I have an old iMac running Snow Leopard.  It's starting to show signs of age in how it's been running, so I thought I'd start over with it. I've rebuilt Windows machines but never a Mac.  I have tons of stuff I don't want to lose.  I have Time Machin

  • A good utm to handle 1000+ users

    Justin1250 wrote:Brandon Svec wrote:Justin1250 wrote:What about the ASA 5500X series?Maybe a 5525X or a 5545XI thought the OP said ease of use and management? ;)Haha true. I like the ASA just not their price tag.There is also the Meraki MX400 would b

  • RoboHelp X5 and Windows 2003 server

    Does enyone know if I have to change some robohelp settings when robohelp is installed on a windows 2003 server? I'm working on merged htm help files and since we moved all files to a windows 2003 server, I noticed that the index and the search funct

  • In transfer rules dont see any custom fields

    Hi All, I have master data WBS element. I am trying to write ABAP routine for perticular Z characteristic. But i dont see any "Z" fields in the field selection list ... any clue ?

  • Why an InfoObject can't be brought into an InfoCube?

    I am trying to bring in an InfoObject into an InfoCube, but this InfoObject doesn't show up in the Template section under the tab of Characteristics of this InfoCube that I can not drag it over from the right hand side of the Template to the left han