Aggregrate function in report with group by

I have SQL report with all the records and Total of some of the fields in end.
I wanted to group them by item1 and than show the Total for the fields for each Item

In your report have a break formatting section, select the column you wish to break (sub-total on).. make sur eto set the sum checkbox on the column you ar edoing the break on too! It will then build the sub-total line for you..
Thank you,
Tony Miller
Webster, TX
Never argue with an idiot. They drag you down to their level, then beat you with experience.
If this question is answered, please mark the thread as closed and assign points where earned..

Similar Messages

  • Matrix report with group.

    dear all,
    can anyone guide me how to build a matrix report with group using scott schema.
    i can not be able to build a query.
    Thanks
    Muhammad Nadeem

    The example given by Oracle (from the above link) using the following SQL for a matrix report is flawed.
    SELECT DEPTNO, JOB, SUM(SAL)
    FROM EMP
    GROUP BY DEPTNO, JOB
    ORDER BY DEPTNO, JOB
    The SUM function handled by the query restricts you from doing so many things - especially when you want the empty fields to be filled by 0 (by using the Value if Null property).
    If the query is changed to ''SELECT DEPTNO, JOB, SAL FROM EMP' , and use the SUM function in the wizard to build the Matrix cell, then the 'Value if Null' property can be used without any issues.
    This also makes Section 25.6 (Add zeroes in place of blanks) of the documentation a joke.
    Anyway, that's my cents worth....

  • Report with grouping issue

    I have a report which have year(2008), Category(0-1,2-3, ALL), product(0,1,2,3,4..), % sales. I group by all the category elements and called it as All, I am not getting the right percentage sales for the Category ALL other wise for 0-1,2-3 i am getting it right. Please advise where i am doing it wrong. please find the blog for a screen shot of my issue.
    http://ravibiblog.blogspot.com/2012/04/report-with-grouping-issue.html
    Thanks,
    RC

    Pl post details of OS, database and EBS versions. Pl see if these MOS Docs can help
    FARXPBSH Failing With "Program was terminated by signal 11" or "Program was terminated by signal 10"          (Doc ID 742729.1)
    Publishing RXAPPYAC: The FARXPBSH Ends With 'Signal 11' Error          (Doc ID 432797.1)
    RXi RX Reports Failing With Program Was Terminated By Signal 10 or 11 Errors After FA Rollup Patch 6          (Doc ID 737963.1)
    Program was Terminated by Signal 11 when Running Rxi Reports          (Doc ID 559425.1)
    HTH
    Srini

  • In need help: Analytic Report with Group by

    Good morning,
    I am trying to create a report with subtotal and grand total, which of couse goes to the group by clause, with rollup, cube, grouping... etc. I'd like to use rollup, then some columns in the Select list have to be put into the Group By clause, which is not supposed to be. So I had to use one of SUM, AVG, MIN and MAX functions, to make those columns as *aggregated, which is wrong.
    Another alternative I tried is to use Cube and Grouping_id to be the filter. However, that is still very cumbentsome and error-prone, also the order of the display is absolutely out of control.
    I am trying hard to stick to the first option of using the Rollup, since the result is very close to what I want, but avoid the usage of aggregation functions. For example, if I want to display column A, which should not be grouped. Other than using those aggregation functions, what I can do?
    Thanks in advance.

    Luc,
    this is a simple and a good reference for analytic functions:
    http://www.orafaq.com/node/55
    It takes some time to understand how they work and also it takes some time to understand how to utilize them. I have solved some issues in reporting using them, avoiding the overkill of aggregates.
    Denes Kubicek

  • Use SSAS Tabular KPI in SSRS report with groups

    I have a SSAS tabular model that I have built KPIs in. I have tried several attempts to use the KPI in SSRS with multiple groups, but as you probably know when you aggregate the KPI it does not calculate correctly. How do you use SSAS KPIs with SSRS groups?
    Thanks in advance.

    Hi Micheal,
    According to your description, you want to use the KPI created in SSAS tabular for SSRS multiple groups. Right?
    In Analysis Services, when we create KPI, it works for each detail record. This KPI will not consider any aggregation value. So when you aggregate the KPI in SSRS, it can't return correct result. However, in Reporting Services, you can use Variable
    to define a "KPI" and apply condition with aggregation function(like sum, average) based on this "KPI" in Expression to return the correct result. Also you can use the Indicator in SSRS to achieve this requirement. Please refer to
    links below:
    Report and Group Variables Collections References (Report Builder and SSRS)
    Indicators (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Grand total (Report footer) issue in a Report with Group selection.

    Hi,
    The case is simple, i have to summrise the NetValue field of a  report at the Group level and at the Report level(Grand Total).
    I also use a Group selection filter (I have grouped my records by MaterialDesc) to keep the desired groups.
    As you already guessed, my group totals are fine but the grand totals(report footer) contain both filtered and non filtered group records. Is there any way to avoid this problem and get a Grand Total from the filtered group records?
    Thank you.

    You can not use standard summaries with Group Suppression you must use either Running Totals or variables.
    In Running Total  evaluate click theformual button and eneter reverse condition to your group suppression.
    If you can not do that then you must use a Var
    In group footer where total is currently correct place a formula like this and suppress it
    @eval
    whileprintingrecords;
    global numbervar RepTot;
    If ..whatever your suppression condition is not true... then reptot:= reptot + sum( valuefield, groupfield);
    In report footer
    @display
    whileprintingrecords;
    global numbervar RepTot;
    Ian

  • Discoverer Custom SQL Report with Group By,Having

    Hi all,
    I'm working with Discoverer 4.1.41.05 and retrieve data from Oracle HRMS.
    I want to create a report based on a custom SQL Folder in Discoverer Administration to solve the following scenario:
    SELECT EMPLOYEE_NUMBER FROM PER_ALL_PEOPLE_F
    MINUS
    SELECT EMPLOYEE_NUMBER FROM PER_ALL_PEOPLE_F,PER_EVENTS, PER_BOOKINGS
    GROUP BY EMPLOYEE_NUMBER
    HAVING SUM(PER_EVENTS.ATTRIBUTE1) >= 10)
    The problem is when I run the sql from SQL*Plus is working fine producing the correct result.
    When I create the Custom Folder and create a Discoverer report based on it I retrieve all employees since the second select statement retrieve no rows!
    Does anyone has any idea how I can solve this problem or if there is another way to create this scenario?
    Any feedback is much appreciated.
    Thanking you in advance.
    Elena

    Hi Elena,
    I think you are missing some joins, you could try something like:
    SELECT EMPLOYEE_NUMBER FROM PER_ALL_PEOPLE_F p
    WHERE NOT EXISTS
    (SELECT NULL
    FROM PER_EVENTS e, PER_BOOKINGS b
    WHERE b.person_id = p.person_id
    AND e.event_id = b.event_id
    GROUP BY b.person_id
    HAVING SUM(e.ATTRIBUTE1) >= 10)
    Rod West

  • Invoice in crystal reports with group by basedocnum Delivery and line text

    Hi there,
    as i got some troubles with a CR i've tried to make a new report.
    i use OINV, INV1, OCRD, NNM1, OCTG, OSCP in the report.
    the details section is grouped by inv1.basedocnum. In the group header it should show the
    inv1.basedocnum and the inv1.docdate. when printed does not respect the order of lines after group by
    basedocnum. is for the case where a bill is grouped into several invoices I have lines in text
    interspersed between articles. for example:
    Delivery nº 1 de fecha 12/04/2011
    This is a line text
    001     Product1     1,00     3,00     3,00
    002     Product2     2,00     2,00     4,00
    Delivery nº 4 de fecha 13/04/2011
    001     Product1     1,00     3,00     3,00
    Another line text
    003     Product3     2,00     1,50     3,00
    Delivery nº 8 de fecha 15/04/2010
    This is a line text
    001     Product1     1,00     3,00     3,00
    Line text
    002     Product2     2,00     2,00     4,00
    I thus first printed text lines and then the article and does not respect the order of lines per document
    any idea?
    Thanks in advance
    SBO 8.8

    One possibility for this is that the user has an unusual printer driver set as their default printer.  I would check that they have a regular printer installed and set as the default.
    The other possibility is that they have their IE option set to display text as small.   If you go to "View" -> "Text Size" - what size do they have the text set to?
    Shawn

  • Can i use adobe form to produce a report with grouping and subtotal?

    Hi,
    i need to produce a report that allows me to group against a field and do a subtotal for the group, then finally a total for the whole report.
    i m using web dynpro java, i can do grouping in the table component, but i have no idea how to do subtotal for the group.
    is there any built-in function in adobe form that i can produce this kind of report relatively easily?
    thank you.

    Hi,
    go throught this link
    check the tutorials.
    saptechnical -> tutorials -> Adobe forms ->Calculating Page-wise Sub-Totals and Grand Total in Adobe forms
    Regards,
    sandeep

  • Exporting a report with group in crystal report

    Hi all,
    I am new to crystal reports XI.
    I have designed a report in which I have created 2 groups.
    The structure of report is shown below.
    MAIN REPORT:
    Status           1st     2nd 3rd
    A               10      20   30
    B               40      50   60
    When I double click on groups(either A or B) another subreport gets opened.
    The structure of the sub report is
    DETAILED REPORT:
    A            10        20     30
    Name:XYZ
    Age:XY
    Place:XYZ.
    My query is when i export the report in PDF format only the main report is getting exported.
    I have to run this report through BOXI and have to send the mail to users in PDF format.
    But when i export the report in PDF format i am not able to see the detailed report.
    Please give me suggestions how can i resolve this problem.
    Thanks in advance...

    In the report design description I undestand that when you double click on the group header it opens the subreport. I think this might be on demand subreport or you might have used suppress condition for the subreport section using "drilldowngrouplevel". If you are suppressing conditionally and showing the report when you double click on it these feature will work only in crystal report but not in PDF. So it is better to remove conditional suppress and show the complete data so that when you export it to PDF it will show all the data.
    Regards,
    Raghavendra

  • Reports 6i Requirement -- Complext Matrix with grouping. Urgent help needed

    Hi All
    I have a report requirement. The problem is like this.
    There is an organization under which there are several schools.
    each school has different classes.
    Each class has several no of students.
    We have to display marks of all the students in each class of the organization (note. all classes, schools)
    ============================================================================================
    Organization
    School1
    Class1 subject 1 subject2 subject3 Totals
    stud1 30 50 70 150
    stud2 40 70 90 200
    total for class 70 120 160 350
    Class2
    stud11 50 60 80 190
    stud12 70 80 90 240
    total for class 120 140 170 430
    total for school1 190 260 330 780
    like wise for another school
    Total for
    organization 190 260 330 780
    =============================================================================================
    I have tried using the matrix report with groups. But i was able to create a matrix and find the totals upto the class level which is quite simple.
    I was not able to find the totals subjectwise for the school and orgnization levels.
    Can you suggest me any solution for this?
    Please ignore some formatting. It is the best I could fit in this compose text.
    but you should get the idea.
    Is there any other way to display other than using the matrix?
    I am using Oracle REPORTS 6i on Windows 2000. the database is ORacle 9i.
    Thanks
    Naveen

    Much of it depends on the structure of the data/query. If the subject per student are stored or prepared so they appear as separte columns in a query then there would be no need to use matrix. Are you getting what I am saying?

  • Group By reports with Serial Numbers

    hi,
    i am creating group by reports with serial numbers. i use the
    following code to generate the serial numbers using a formula
    column:
    function SNOFormula return Number is
    SNO NUMBER(5);
    begin
    SNO := :SNO + 1;
    RETURN(SNO);
    end;
    I am able to acheive the required output with the above code in
    the case of Normal Tablular reports. But in the case of Group by
    reports, the output goes as follows:
    for example:
    sno,groupno,empno
    1,g1,e1
    e2
    e3
    4,g2,e5
    e6
    Any way out?. pls help.
    Regards,
    Prabhu S

    create a summary column in the group . set the function to
    count. set the source to the group name. set the reset at value
    as report. create a field in the lay our editor left of the
    group field. set the source as the summary column. you will see
    the numbering.
    Ex :
    Query : Select * From Emp;
    Group Field : Deptno
    Summary Field : CS_Count
    Properties of Cs_Count - Function => Count
    Source => DEPTNO
    Reset At => Report
    Now create a field in the lay out editor left side of deptno
    field lets say "SEQ", set the source to Cs_Count.
    It will disply the serial number of the groups.

  • Interactive Report with PL/SQL Function Source

    Is it possible to create interactive report with PL/SQL function source returing a query? If not, has anyone done any work to simulate the interactive reporting feature for a normal report using API?

    I haven't tried that before but you could:
    1. create a collection from your result set returned by a dynamic query,
    2. create a view on that collection,
    3. use the view in your interactive report.
    The usability of this proposal depends from a question how "dynamic" your query is - does it always have the same number of columns or not.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Discoverer report with parameters and functions

    I am new to Discoverer. Is there a way to create a report (with parameters) of one line per customer such that the following data will be displayed for each customer?
    Among the parameters is: from_date (month & year) ,to_date
    The basic query gives totals for each date (month & year) for every customer.
    Among the fields displayed:
    1-customer_id,
    2-balance until from_date,
    3-total activity between from_date and to_date
    I have a function to calculate the total balance until from_date, but then I cannot get the total activity on the same line. I tried using another function and I tried using a total calculation but to no success.
    Is this possible?
    Thanks.

    Hi Markus
    You need to determine whether you can in fact call a Discoverer report using a URL before linking it in Portal. You need to run the report in Viewer first and then see copy the URL from the address line of the browser. Then you open another browser and paste the URL. You may well be prompted for a username and password but hopefully the correct report with the right parameters will then execute.
    Assuming this works you then paste the same URL link into Portal and you should be able to get the report to run.
    Best wishes
    Michael

  • SSRS report with tabular model – MDX query CoalesceEmpty function does not return the provided string value

    Hello everyone,
    I created following calculated member in MDX query. I am using it in one of the report parameter in dataset (single select dropdown list as report parameter).
    WITH MEMBER [Measures].[ParameterCaption] AS
    CoalesceEmpty([Customer].[National Account Code].CURRENTMEMBER.MEMBER_CAPTION,'None')
    I would like to display 'None' text at the top of the dropdown list values. So that when user selects 'None' then this parameter will not considered in MDX query else the selected National Account Code will be considered to filter report data. But,
    the above return blank/empty value for  [Customer].[National Account Code].&  member though I specified 'None' as text in CoalesceEmpty function. Any advice would be appreciated.
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

    Hi Ankit,
    It seems that you issue had been solved in your another thread.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/5a5becac-226f-428a-95b0-aaaa22733818/ssrs-report-with-tabular-model-create-a-dropdown-report-parameter-with-none-option-as-the-top?forum=sqlanalysisservices#0e51bf8c-a66c-4df5-a244-0147728fdfdb
    iif([Customer].[National Account Code].CURRENTMEMBER.MEMBER_CAPTION="","None",[Customer].[National
    Account Code].CURRENTMEMBER.MEMBER_CAPTION)
    I marked this reply as answer, it will benefit to other members who have the similar issue.
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • Analysis Report for generic articles based on different characteristics

    Dear all , We are running SAP Retail solution ,and we use generic articles for the management of cloth and shoes articles. So far ,we didn't find any standard t-code in sap GUI for the slaes analysis of generic articles base on their characteristics

  • Split Mapping created no messages in SXMB_MONI

    Hi All, I have an IDOC to File scenario in which the target forms an XML file based on some RFC lookups. The problem i have is that whenever the RFC do not return any values, i am getting an "Split Mapping Created no messages" error in the SXMB_MONI.

  • Stock listing in Portal iView

    Hi, I was wondering if i can find some document to have the stock market listing depending on user choice. What I mean is user should be able to see only those stocks which he/she is interested to view in an iView. Any pointer would be appreciated. I

  • OBIEE Query not hitting the other fact table

    Hi All, I am trying to create report based on two fact column and one dimension. Dimension is connected with these two facts table. When i create report using one column from dimension and one column from respective facts so i get two scenerio... For

  • How to access spcial characters in Illustrator on Mac

    I've recently switch from PC to Mac, and I can't figure out how to insert a special character in Illustrator. The Type/Glyphs menu item doesn't do anything.