Add results of different queries in a single report.

Hi guys,
  I have one problem, plz help me out. Actually I have 3 queries in a report. The three queries come out with a single values each. The queries are suppose ZBQ1, ZBQ2 and ZBQ3 in a single report in Report designer, its name is suppose ZREP1. I need to calculate the sum of 3 results of the previous queries. and show it in a particular section in the report. Please help me out.
Thanks,
Niloy

HI
Better to use the workbook. just create the workbook with these three reports and place the three reports at bottom in the excel sheet then you caluclate the formula based on your requirement and place that results in top of the excel(workbook).
Regards,
Chandra.

Similar Messages

  • Multiple queries in a single report?

    I'm having some issues with the ColdFusion Report Builder...
    I have a database table called "Items" that includes fields
    for Reviewer and Status. I want to create a report that will list a
    reviewer, then express the number of items where the Status is
    "open" as a total or record count. I want to do the same for total
    items, and then express the number of "open" items as a percentage.
    For example:
    REVIEWER, OPEN ITEMS, TOTAL ITEMS, PERCENT OPEN
    John Doe, 10, 20, 50%
    Jane Smith, 15, 60, 25%
    ...and so on.
    So far I've only been able to get my report to display the
    recordcount of the entire query. In order troubleshoot the problem
    I created a regular cfm page to do the same thing. Here's what I
    did:
    <cfquery name="getreviewers"
    datasource="#APPLICATION.datasource#">
    SELECT DISTINCT Reviewer
    FROM Items
    ORDER BY Reviewer
    </cfquery>
    <cfoutput query="getreviewers">
    <cfquery name="getopenitems"
    datasource="#APPLICATION.datasource#">
    SELECT Status
    FROM Items
    WHERE Status='open'
    AND Reviewer = '#Reviewer#'
    </cfquery>
    <cfset open = getopenitems.recordcount>
    <cfquery name="getallitems"
    datasource="#APPLICATION.datasource#">
    SELECT Status
    FROM Items
    WHERE Reviewer = '#Reviewer#'
    </cfquery>
    <cfset all = getallitems.recordcount>
    <cfset percent = (open / all) * 100>
    #getreviewers.DR_Item_Reviewer#, #open#, #all#,
    #Round(percent)#%
    </cfoutput>
    That worked great, but as you can see I had to nest a couple
    of queries inside a <cfoutput>. I don't know how to
    incorporate this into the report builder, as it seems you can only
    specify a single query. Another thing that occurs to me is perhaps
    I'm going about this the wrong way. Is there perhaps a function
    that will display things the way I want them without fussing with
    multiple queries? Any help would be greatly appreciated. Thanks in
    advance.

    It seems like you are trying to do a subreport. You can nest
    reports within the report feature...just check out the subreport
    feature under the help section. If that doesn't help let me
    know.

  • Different layouts in one single report

    Hi,
    My report consists of 6 different spreasheets, 2 has Landscape layout and 4 has Portrait layout.. so i m trying to create 2 portrait in Header section, 2 Landscapes in Main section, and 2 portrait again in the trailer section.. i have six diff queries for six sheets.. i created one Lanscape in main section with the matrix query.. i m trying to create 1 portrait in trailer section (tabular ) ..... but when i finish this tabular and try to run it, it changes the layout for matrix report in the MAIN section ???? does it overwrite the original layout, which was set for diff query ?
    How to solve this ???? I tried with report block as well...
    Pleaseeeeeeee help..

    Hi,
    bring your two different layouts in seperate frames and write format triggers on this frames to show or suppress them (depending on your input). Connect the two frames with an collabsing anchor.
    Regards
    Rainer

  • Different Page Orientation in Single Report

    i am using Crystal Report XI Release 2.
    I am creating a report. First page i want to use Portrait Orientation and all remaining pages should have landscape.
    First page is cover letter which should only be in Portrait. I tried making this as sub-report, but when i change subreport's orientation, it changes the main reports orientation.
    Thanks For Support...

    Hi Sastry
    I've just finished rehashing a report that has required a change from Portrait to Landscape, which I havent' been able to do until getting Crystal 2008... Phew!... Or so I thought...
    While editing, the print preview shows me exactly what I want to see... seamless transition from Portrait to Landscape pages.
    But once I load the report back into my database and generate it, Crystal seems to change its mind about the changing orientations, and completely ignores the call for Landscape from the second page onwards.
    Do you have a suggestion to solve this problem?
    -Karen

  • Combining result of three queries to form a single table

    Hi ..
    I have three select queries. Each of them returns a single column. I want the result of these queries into a single table..
    I tried this way..
    select * from
    (first select),(second select),(third select);
    this gives duplicate rows... Any held would be appreciated

    Hi,
    Welcome to the forum!
    1005370 wrote:
    Hi ..
    I have three select queries. Each of them returns a single column. I want the result of these queries into a single table..Remember that the people who want to help you don't know as much about your tales and your application as you do; in fact, they might not know anything at all about them.
    You might ask a friend: "How can I get to that restaurant we went to last week?", and expect to get a good answer, because your friend knows where you are starting from, and knows, from that brief description, where you want to go. But would you expect a stranger on the internet to answer the exact same question? Of course not! A stranger on the internet wouldn't know where you're starting from, or where you want to go. How could a stranger give you directions with only that information?
    SQL code is like directions. A SQL query can tell you how to get a certain result set from a certain sample data set. No matter how well someone knows SQL, they need to know something about the data in a problem and the results needed fom that data before they can start writing a query to get those results from that data.
    Whenever you have a question, you need to post a little sample data (CREATE TABLE and INSERT statements) for all tables involved, and the results you want from that data in this case, the contents of the new table).
    All this and more is in the forum FAQ {message:id=9360002}. Take a few minutes now to read that page. It can realy help you get better results faster on this forum.
    I tried this way..
    select * from
    (first select),(second select),(third select);
    this gives duplicate rows... Any held would be appreciatedIf duplicate rows are the only problem, then just add DISTNCT t the main SELECT clause:
    select DISTINCT  *
    from    (first select)
    ,     (second select)
    ,     (third select)
    ;However, I'll bet duplicate rows aren't really the problem. It's much more likely that the problem is duplicate values in just 1 column.
    Again, how to get the output you want from your data depends on your data and the output you want. Post CREATE TABLE and INSERT statements for some sample data, and the complete results you want from that data. Explain how you get those results from that data.

  • P/L A/c for a single day gives different results for different users

    Hi!
         We have SAP B1 8.81 (PL 09) in our office. P/L Account for a particular date gives different value for a single account (Other Income Account) for one user and a consistent value for all other users. The user in question is a super user and does not seem to pick a specific entry posted in the Other Income Account for that day thus giving erroneous result. I have checked the Trial Balance for that day and it gives proper result. Only the P/L account gives erroneous data. Could anyone help with the reason for this.
    Thanks
    Sreekumar

    Hi Jitin,
              Thanks for your reply.
              I tried the way you mentioned. However, the result is the same.
              The entry that I'm talking about is an automatic journal entry posted through the Outgoing Payment option.
              To make it more clear, an outgoing payment to a vendor was posted on 05/19/11 for 1,42,178.32. The check was drawn only for 71,089.16 which was the correct amount and the remaining amount (71,089.16) got posted in the Other Income account. The P/L account for this date is not picking the amount of 71,089.16 in the Other Income Account.
    Thanks & Regards
    Sreekumar
    Edited by: Sreekumar on Jan 31, 2012 5:58 PM

  • Single report having 2 different queries indepedent queries

    I have two independent queries.Depending on my parameter input i
    want the report based on either of the query.
    These queries have columns which are simailar.
    The first query selects from a single table.The second query is
    a join of two tables ,one being same as the first one.
    I do not wish to change these queries but generate my report.
    i would want a solution which would perform faster generation of
    report

    I don't see any problem for this.You need to have 2 different
    frames for these 2 queries in the layout model.
    Regards
    Yogesh

  • How to send three attachments using three queries in a single email using sp_senddbmail

    Hi All,
    I have three scripts for extracting permissions at server,database & object level.Now how do i can execute all three queries and send multiple attachments in a single email using sp_senddbmail.I have done this before for single queries but not multiple
    queries. Kindly suggest.
    Regards
    Rahul

    Hi All,
    The requirement was that i had three different queries for listing permissions at server,database and object level.I wanted to build an solution to email results in attachment to user.
    However i have managed to do this with SSIS Package.I was curious to know if it can be done without SSIS.
    Thanks you all for your time and effort for this.
    Rahul
    It can be done without SSIS
    Just have a procedure to return  three query results as a single resultset. Then use sp_send_dbmail to execute query and send results as a email
    See
    http://blogs.msdn.com/b/sqlagent/archive/2010/11/03/sql-database-mail-send-t-sql-results-by-email.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Results of multiple queries in one report

    Hi
    I would like to create one report with multiple rows and each row should display result of a different query.
    I guess I can use multiple report on one region or multiple regions in one place.
    (1)However is there a more elegant way of creating a single report look and feel...eg like it would happen in excel.
    (2)Is it better to have one page with multiple regions or multiple reports in one region.
    Thanks
    Faizi

    I'm not sure if it suite your needs,
    but maybe you can use UNION in your queries to get them together in one report ??
    Second option:
    Denes did great work and he created some how-to about putting mulitple reports in one region:
    http://deneskubicek.blogspot.com/2007/06/multiple-reports-in-one-region.html
    Hope this helps.
    Tomasz K.

  • Report that uses two different queries

    I need to make a Report that uses two different queries. It would do one query, then the second, putting the results one after the other on the page.
    Using the wizard, I put in the first query, and it will generate output from this first query.
    I am able to put the second query in the Report, but when I try to use something from the second query, it gives a message about accessing a field below its frequency.
    In the Reports forum, there is a reference to
    tons of samples available in
    builing reports doc 1. http://download.oracle.com/otn/other/general/B10310_01.pdf
    But the link is broken.
    What can you tell me?
    Thanks, Wayne

    What you're trying to accomplish is possible. Now that you've got the second query, add a new repeating frame in the layout editor below the first area. Open the property palette for the new repeating frame and set the source to the second query. Then add fields from the second query.
    Also, remove the fields you have for the second query from the first frame that was created by the wizard; that's what's causing the error about accessing a field below its frequency.

  • How to save in different worksheets in a single workbook

    Hi Experts,
    I ran one query and I saved it as a new workbook. In the same query I drilled down with another characteristic and I need the output should be saved in the same workbook in sheet 2.
    Kindly do let me know how to save the different ouputs in a single workbook as sheet 1, sheet 2,..etc.,
    Thanks,

    Hi Kishor,
    If you have just copy pasted this reult in sheet2 then it will be static.
    If you want to refresh data in all the sheets then you have to create diff. queries as said by Venkat and insert this query in sheet2.
    When you want to refresh data for any particular query then put cursor on any cell of the Query result an refresh it.
    If you want to refresh data for all the queries in the workbook then select cell(put cursor) on any empty cell and refresh the workbook.
    Regards
    SS

  • Same WAD Template to be used for different queries and dataprovider

    Hi All,
    I want to create a WAD template that cound be use by 100 more queries.
    Making setting in SPRO or RSCUSTV27 will make it a default template for all the queries.
    I only want the template to be used for say MM module(100 queries).
    Any way it can be done?
    Please help.
    Thanks
    Vinay

    Hi Vin Loh,
    I assume your requirement as this:
    Case 1: You have N querie(s) on several infoproviders in your case MM module, and that you would like to display all the queries in a single WAD report? You can do it! Its a feasible solution.
    Goto WAD > Insert a 2 X 2 table > In the (1,1) box insert a drop down box. In the (1,2) You may add a Title of type 'Text' > In the (2,1) box you may add a 'Navigational Pane' > In the (2,2) cell add the 'Analysis Grid' > Create a Dataprovider DP_1 referencing any frequently accessed query. As of now a template has been created, which can be modified as accordance to suit your requirements.
    Now, once done, goto the dropdown box settings. This DDBox's main objective is to give you acess to all the N queries in your MM module. Goto 'Web Item Params' > Choose the 'Data Binding' option > Edit Parameter > In the 'Data Binding Type' choose 'QUERY VIEW' > Goto the 'Selection of Query Views' > Check the option 'Specify List of Query Views' > Under 'Single Entry in DD...' choose Initial State as QUERY; Not QUERYVIEWS > Choose your N queries as listed here. No need to create N different DPs or N different reports.
    Here, your iView is of type ..TEMPLATE=ZTEST.. for WAD based reports; not ..QUERY=ZTEST...
    Guess it will resolve your issue.
    Case 2: You wish to create a BEx template for all your existing MM queries as run on BEx Web based analyzer? In this case you need to check on the KM config. In the portal you have the Imported iViews templates.
    Thanks,
    Arun Bala

  • Need Different Selection screen for different Queries in a Workbook

    Hi,
    I have created a workbook with Multiple tabs in BI 7.0.  Each Tab has different Queries and each query has different Selection screens (Variable Selections).
    When i open the workbook and refresh it, the selection screen is appearing only for one query.  All the queries are refreshed by this single selection screen, though each query has different Variable selections.  What i need is a seperate selection screen i.e seperate Variable selection appearing for each queries, when i refresh each one of them.
    Is it possible to do this?  If anybody has tried this, help me in solving this issue.  Thanks for ur time.
    Regards,
    Murali

    Murali,
    If you un-check the 'Display Duplicate Variables Only Once' this WILL solve your problem.
    When you Refresh, you should be presented with a single variable selection dialog box, but it should contain an area for each Query (DataProvider) that is embedded in the Workbook.
    This is the case if the queries are all on the same tab, or on different tabs.
    However, if you have multiple tabs each with a query on it, each query must have it's own DataProvider. If all queries are based on the same DataProvider, it will not work as the Workbook only 'sees' one Query for which it needs variable input.
    If you REALLY want multiple variable selection dialog boxes, then maybe the best way to do this is to have the queries in separate Workbooks.
    If you don't want the User to have to open 5 queries manually, you could use a Macro in each Workbook that runs on opening, to open the next Workbook in the sequence.
    I hope this makes sense!
    Regards
    Steve

  • Executing Multiple Select Queries in a Single attempt

    HI,
    I executed two select queries in a single statement execute. It is executing without any error. Hence there must be two resultset objects within that single statement.
    What the problem is that I m able to fetch the first resultset and its data, But I execute stmt.getMoreResults() to move to the next resultset, it returns false, which means there is no more results. I want to know what is the problem ?? (Record exist in the database for both queries)
    And How can I rertieve both the resultsets. ??
    Plz help me asap.
    For ur convenience I m posting the Java code also which I m trying.
    sql.delete(0, sql.length());
    sql.append("select FIRST_NAME , MIDDLE_NAME , LAST_NAME from USER_MASTER where USER_ID=4;");
    sql.append("select producttransaction_id, product_type from product_transaction where transaction_id=102 order by product_type desc");
    Statement stmt = con.createStatement();
    stmt.execute(sql.toString());
    int resultsetcount =1;
    ArrayList arrlist = new ArrayList();
    rs = stmt.getResultSet();
    if(rs !=null)
    if(rs.next())
    .........// logic here working properly
    //Now when I move to next resultset using the below statement
    //it returns false indicating that there r no more results.
    // Why this is so ?????
    boolean moreresultsets = stmt.getMoreResults();
    System.out.println("MoreResultsets::"+moreresultsets);
    if(moreresultsets)
    rs = stmt.getResultSet();          
    if(rs!=null)
    while(rs.next())
    //...Logic.......
         rs.close();
    Thanks

    I've never seen this used the way you are using it. In my experience the only way to do this would be to execute a single SQL statement that returns multiple result sets - you are trying to append two SQL statements.
    You could define an in-line procedure wrapping your two select statements, or you could define a stored procedure to do the same thing. Then (either way) use CallableStatement to execute the call to the procedure.

  • How to display results set of multiple reports into a single report table

    Our goal is to create a single report (or dashboard) that shows the "funnel" of object creations related to each campaign. The flow goes from Activity to Lead to Opportunity as well as multiple steps within each (ie. Unqualified Lead -> Qualified Lead, etc).
    We currently have 3 separate reports in three different subject areas, each reporting the different metrics and we would like to combine the output into a single Unified report.
    For example what we currently have is:
    Activities:
    Campaign Name # of Activities
    Campaign A 12
    Campaign B 26
    Leads:
    Campaign Name # of Leads # of Qualified Leads
    Campaign A 10 4
    Campaign B 20 18
    Opportunities:
    Campaign Name # of Opportunities # of Opps per Sales Stage ... # of Wins Closed Revenue
    Campaign A 3 2 1 $1,000.00
    Campaign B 10 8 3 $2,800.00
    What we want to see is:
    Combined:
    Campaign Name - Campaign Cost - # of Activities - # of Leads - # of Qualified Leads - # of Opportunities - # of Opps per Sales Stage - # of Wins - Closed Revenue
    Campaign A - $423.00 - 12 - 10 - 4 - 3 - 2 - 1 - $1,000.00
    Campaign B - $ 1,000.00 - 26 - 20 - 18 - 10 - 8 - 3 - $2,800.00
    We have tried using the "Combine with similar analysis" but the number of columns for each subject area differ. We also tried creating multiple UNION criteria (one for each column), but in the case of # of Opps per Sales Stage and Closed Revenue, those are not "Metrics" fields, so they won't combine.

    Hi, You may have to create some dummy fields to equate the no. of field in each of the report matching the data type too and get a one single report using combined analytics and then using the resultant data you can create a simple pivot like below. Haven't tried it before
    -- Venky CRMIT
    Hi Venky,
    I am facing the same problem. Can you please say Steps how to create resultant data and Combine in pivot Table .
    Please Help me .
    Thanks in Advance .
    My mail id is :
    [email protected]

Maybe you are looking for

  • How can I list more than 100 VI's during Object find?

    I am trying to use the LabVIEW 6 Find tool. When I select Object and VI it only lists 100 subvi's within the application. Is there a way to increase the number of subvi's listed? Attachments: LabVIEW_Find_example.bmp ‏974 KB

  • Error in Derivation and Profitability Segment

    Hello Gurus, I am two issues, which isnt allowing me to create a sales order in IDES. I am referencing a quotation when i want to create the sales order. But i got a warning message 'error in derivation rule' and the log text has                     

  • My macbook pro  is stuck in caps lock, among other problems

    my macbook pro (now leopard 10.6) is stuck in caps lock, no matter if the caps lock key is on or if I use shift, and windows close very slowly. I also can't erase the hard drive with my Mac OS X dvd. I can't login because my password requires numbers

  • Timer in JSP

    Hello, I am making an online chat application in JSP. How could I make client�s interface refresh regularly? Is it possible to add a timer to the JSP? Are there any examples, or suggestions? Thanks, Dan

  • C7 TV-out cable

    Does anybody know which cable should be used with Nokia C7 for TV-out? I have not found any compatible one on nokia websites. I have tried CA-75U but it did not work. Solved! Go to Solution.