Group totals summary in another group summary section

I have a report requirements that need to re-display the group total in a summary section.   Please see below simple example.  The second summary does not have fixed number of Units, it depends how many units are in each Department.
I am not able to reproduce the department summary.   Is this possible in SSRS, I can do this in crystal?
Example:
Department ABC  Unit 100
details line here....
Unit 100 totals here
Unit 120
details line here.....
Unit 120 totals here
Unit 140....... 
Department ABC summary
Unit 100 total
Unit 120 total
Unit 140 total
Department XYZ 
Unit .................
Department XYZ summary
unit totals.................... (one to many)
Final Summary
Department ABC total
Department XYZ total
Jim Pan

Hi Jim,
In your case, we can work around the issue in SSRS. Suppose we have a dataset (DataSet1) include following fields: Department, Unit, Amount. Please refer to the following steps:
Add a table in the report body. Please refer to the table structure below:
Parent Group: Department
Child Group: Unit
Data: Amount
Click the blank arrow of (Details) in the Row Groups dialog box. Click Add Total.
Use the same method add total to the Unit and Department group.
There is a screenshot for your reference:
If you have any questions, please feel free to let me know.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support

Similar Messages

  • SSRS Report - Group Totals are Zero when Group Row Hidden

    I have a report with one group called Counties. This group has a filter.
    I added code to produce the totals for Prior, Current and DistinctCount:
    Public Shared Dim grandTotal1 as Decimal = 0
    Public Shared Dim CountyTotal1 as Decimal = 0
    Public Function AddTotal1(ByVal b AS Decimal) AS Decimal
    grandTotal1 = grandTotal1 + b
    CountyTotal1 = CountyTotal1  + b
    return b
    End Function
    Public Function GetCountyTotal1()
    Dim ret as Decimal = CountyTotal1
    CountyTotal1 = 0
    return ret
    End Function
    Public Function GetGrandTotal1()
    Dim ret as Decimal = grandTotal1
    grandTotal1= 0
    return ret
    End Function
    Public Shared Dim grandTotal2 as Decimal = 0
    Public Shared Dim CountyTotal2 as Decimal = 0
    Public Function AddTotal2(ByVal b AS Decimal) AS Decimal
    grandTotal2 = grandTotal2 + b
    CountyTotal2 = CountyTotal2  + b
    return b
    End Function
    Public Function GetCountyTotal2()
    Dim ret as Decimal = CountyTotal2
    CountyTotal2 = 0
    return ret
    End Function
    Public Function GetGrandTotal2()
    Dim ret as Decimal = grandTotal2
    grandTotal2= 0
    return ret
    End Function
    Public Shared Dim grandTotal3 as Decimal = 0
    Public Shared Dim CountyTotal3 as Decimal = 0
    Public Function AddTotal3(ByVal b AS Decimal) AS Decimal
    grandTotal3 = grandTotal3 + b
    CountyTotal3 = CountyTotal3  + b
    return b
    End Function
    Public Function GetCountyTotal3()
    Dim ret as Decimal = CountyTotal3
    CountyTotal3 = 0
      return ret
    End Function
    When it runs, it gives me this:
    This works fine. But now I need to hide the details on the counties. I just need the line with the 15, 32 and the 9.
    I highlighted the group row, right clicked -> Row Visibility and changed it to Hide. But when I do this, my results are three zeros.
    I am at a loss now on how to just show the totals. Does anyone have any suggestions for me to try?
    cpemtp1

    Hi cpemtp1,
    Per my understanding that you just want to get the total display in the report and hidden the details, right?
    I have tested on my local environment and suggest you to create an new dataset and using the query below to get the Total of every country and then you can using the SUM() function to sum the total of all the country which meet the  conditions.
    Detail information below for your reference:
    Create an new dataset and using the query below to get the sum of every country meet the filter condition:
    Select a.PRIORYEAR,a.CUREENTYEAR ,a.Country from (select SUM(PRIORYEAR) as P1,SUM(CUREENTYEAR) as C1,Country
    from TableName
    group by Country) a
    where a.P1<=a.C1
    Create an new tablix under the button of the existing Tablix or you can just remove the old tablix as below
    Original Table:
    New designed total:
    If you still have nay problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Authorisation for transfer of material from group of plants to another.

    Hi experts
    We need to control mvt of goods from group of plants to another group of plants by the same user. The group of plants may be combination of multiple plants or single plant also. Transaction to be checked is MB1B with 541/412 mvt. Basically this requirement is to check transfer of exempted material to Non-exempted material from the point of VAT implication. Can any body share your thought.
    rgds
    Raghu Shetty

    Hi,
    i still have some concerns about the creating new materials solution because we have to create the following relevant things:
    SD: condition record
    MM: infor record
    PP: new BoM
    we have 25 materials which will change profit center, there're a lot extra works we need to do.
    Is there any other way we can try?
    Regards

  • Add and subtract summary group totals

    Looking for a way to add and subtract summary group totals in a report.

    I have my data grouped by account type then summarized.  Example
    have my data grouped by account type then summarized. Example
    acct. type amount
    51 $100
    51 50
    Summary $150
    61 $100
    61 100
    Summary $200
    70 $50
    70 50
    Summary $100
    Formula I want to make this formula 51+61-70 = GP
    I am trying to understand how to put the acct. type(51,61)  in the formula and insert in the report.
    Thanks for the help.
    Raald232

  • Sum Based on The Value of Another Group

    I'm using RS 2005 and trying to accomplish the following:
    Here is the detail data for those customers with negative balance. For example cust2 = -50 and cust3 = -30
    Cust ID    Ord #   Balance
    cust1        1          30
    cust1        2          80
    cust2        1        100
    cust2        2       -150
    cust3        1        100
    cust3        2         70
    cust3        3       -200
    cust4        1       100
    cust4        2         50
    cust5        1       250
    cust5        2         20
    Total (net) balance for cust1 is 110
    Total (net) balance for cust2 is -50 (100 + -150)
    Total (net) balance for cust3 is -30 (100 + 70 + -200)
    Total (net) balance for cust4 is 150
    Total (net) balance for cust5 is 270
    i have to aggregate the customer balance in group A (group by Cust ID)
    For group B, Division - I only want sum the  balance of the customers within that division that have a negative balance (the balance aggregate in group A).
    so the Total for Division (group B) is  -80 (bal of cust2 + bal of cust3)
    in summary, i have to aggregate the balance for each customer, base on the balance of each customer (neg bal only), i aggregate the balance for the Division.  Your help/suggestion is greatly appreciated.

    Hi Bryan,
    First, did you trying to do this at query level or at RS using grouping and expression?
    With query, to get aggregate for each customer, simply do:
    select distinct Cust_ID, TotalBalance = sum(Balance)
    from <your table>
    group by Cust_ID
    To get the aggregate for division, try:
    select Total = sum(case when TotalBalance > 0 then 0 else TotalBalance end)
    from (
    select distinct Cust_ID, TotalBalance = sum(Balance)
    from <your table>
    group by Cust_ID
    ) t1
    ** Didn't see this has been replied.

  • Help with Formula/Placeholder columns for group totals

    I have select that is broken into 2 groups (a COMPANY group and a DETAIL group within company). I need to determine the COMPANY group totals based on values in a column in the DETAIL group. I.E. the column is a transaction description and can have up to 15 different values and it did not appear that a summary column would work for what I need. I have currently set up 15 formula columns in the DETAIL group and check the value of the REASON to accumulate totals and return the total to a PLACEHOLDER column (which is numeric and defined in the COMPANY group).
    I then report the Placeholder columns at break of COMPANY. This all works fine if I run only one company. If I run with multiple companies the Placeholder columns are used as a running total.
    My question is how do I reset the PLACEHOLDER columns at company break if at all, or is there a simpler way to accomplish what I need.
    Any and all assistance would be greatly appreciated.
    Tom Vereecke

    If you are using one placeholder column in different formula columns just ignore the following solution. It will not work in that case. I will post it here if i find out any way to initialize placeholder columns at different groups or anyother way to solve this issue.
    I think if you remove placeholder columns and create summary columns at Company Level, that will work. And formula columns will be changed as follows:
    Formula Column:
    active_total number(10) := 0;
    begin
    if :status_1 = 'ACTIVE' then
    active_total := active_total + 1;
    end if;
    if :status_2 = 'ACTIVE' then
    active_total := active_total + 1;
    end if;
    if :status_3 = 'ACTIVE' then
    active_total := active_total + 1;
    end if;
    return active_total;
    end;
    And in summary columns source will be formula columns. And reset the summary columns at Company.
    Hope this helps.
    Message was edited by:
    fs

  • Group total in matrix report

    hi
    i have a matrix report with 2 level groups above it. now i need to sum group 2 cloumn values for every row on the basis of level 1 group.
    For example, I have Top level group like TUBEWELL TYPE ( values are DEISEL and ELECTRIC) and below it at lower level is OWNER (with values like PRIVATE, GOVT) repeating both for DEISEL and ELECTRIC.
    Now I need to sum every row i.e Private and Govt for Diesel and Private and Govt for Electric (two sums in one row).
    Wizard provides complete row total but not group total.
    So ur help required guys!!
    nadeem ameer
    [email protected]

    Hi..
    am not providing you the exact answer.
    But you can refer to the PRODUCT ORDER PROPERTY in the reports help or on the website.
    Basically, all you need to do is manipulate the product order property, reset at or may be even compute at properties in the summary/ formula column of your matrix report.
    Swati

  • Group Totals Not Calculating Correctly P6 7.0 SP 4.0

    Hi there,
    For no reason I can tell, my schedule has suddenly started showing Group Totals in my layout that do not add up correctly, although the activity durations are correct.
    From past experience this is usually a calendar issue. I am using a Project Calendar, and the Hours per Time Period checkbox to use assigned calendar is ticked. I am using a 11hr / Day, 7 day a week calendar. Upon looking into the Global calendars, a 38hr week calendar is clicked as a default. Could this be causing the issue? I have done some calculations and it appears that some of the totals are being calculated on a 38hr week, but not in every case.
    I know the Global calendar issue was a problem in V6.0 but I was under the impression that the Project Calendar would overide in v7.0. is this the case?
    Is there something else I may be missing? The only major work that has been done recently is a colleague removed all the WBS Summary activities from the schedule.
    Can anyone provide any way forward?
    With Regards,

    Hi there,
    For no reason I can tell, my schedule has suddenly started showing Group Totals in my layout that do not add up correctly, although the activity durations are correct.
    From past experience this is usually a calendar issue. I am using a Project Calendar, and the Hours per Time Period checkbox to use assigned calendar is ticked. I am using a 11hr / Day, 7 day a week calendar. Upon looking into the Global calendars, a 38hr week calendar is clicked as a default. Could this be causing the issue? I have done some calculations and it appears that some of the totals are being calculated on a 38hr week, but not in every case.
    I know the Global calendar issue was a problem in V6.0 but I was under the impression that the Project Calendar would overide in v7.0. is this the case?
    Is there something else I may be missing? The only major work that has been done recently is a colleague removed all the WBS Summary activities from the schedule.
    Can anyone provide any way forward?
    With Regards,

  • CR - giving total transaction count for few groups and 0 for few groups.

    For the column "No of First Call Resolution" I have to count no of interactions based on the Interaction Result, the formula is
    COUNT(Interaction_ID) WHERE INTERACTION_RESULT = 'FCR'
    For which, I wrote the below formula
    If {14CICustomerInteractions_query.Interaction Result} = "FCR" then Count ({14CICustomerInteractions_query.Interaction_ID})
    I have 33,232 interactions on the particular day I selected. When I try to group up and do the calculations it is giving total transaction count for few groups and 0 for few groups.
    Need Solution

    Hi,
    What field is the report grouped on?
    If you wish to find the no of interactions based on some condition and display it for every group, then here's what you need to do:
    1) Create this formula and place this on the details section:
    whileprintingrecords;
    numbervar c;
    If {14CICustomerInteractions_query.Interaction Result} = "FCR" then
    c := c + 1;
    2) Create another formula and place this one on the Group Footer:
    whileprintingrecords;
    numbervar c;
    3) Create this formula to reset the variable and place this on the Group Header:
    whileprintingrecords;
    numbervar c := 0;
    Let me know how this goes!
    -Abhilash

  • In contacts app how can I move a contact from one group to another group?

    I find I cannot move a contact from one group to another group. If I delete a contact from one group I delete that contact from my total contact population. I did not have this problem in earlier IOS versions. Can anyone help me?

    Thanks SO much, Barney.  How embarrassing, I could have sworn that I tried that first.
    I will definitely get them all moved over before I delete that account and I've already gone in & changed my preferences.  Several years ago, my husband I decided to share one calendar and one contacts list, using his mobile me account and it's been great for us.  I'm particularly thrilled to no longer serve as a human rolodex and I guess that I paniced a bit when I thought there might be a problem with our system.  I'm still confused where that "On my mac" account came from on the first place.  Do you suppose that was an automatic thing that came with the Mountain Lion upgrade?
    thanks again!

  • Crystal reports group total

    Hi,
    I have sql query which gives output of accounts and balance.
    I have designed report to show chart of accounts and their balances.
    How can I take group total fields to show sum of each level of accounts.
    Level
    Account
    Header 3
    Header 4
    Header 5
    Header 6
    Header 7
    1
    Revenue
    2300
    2
            Direct Income
    300
    3
                    Sales
    300
    4
                            Sales
    300
    5
                                    In Store Sales
    100
    5
                                    Online Sales
    200
    2
             Indirect Income
    2000
    3
                     Interest
    1100
    4
                             Bank Interest
    1100
    5
                                     Bank Interest A
    400
    5
                                     Bank Interest B
    700
    3
                     Other Income
    900
    4
                              Other Income
    900
    5
                                     Other Income
    900
    In my reports I have taken all the accounts and balances in five detail sections.
    I want to create formula to show level wise addition of account balances.
    Please reply.Thanks.

    Hi,
    Try this code
    {Level}=1 then {Header 3}
    else if {Level}=2 then {Header 4}
    else if {Level}=3 then {Header 5}
    else if {Level}=4 then {Header 6}
    else if {Level}=5 then {Header 7}

  • How can I drag and drop a Tidal job into another group?

    How can I drag and drop a Tidal job into another group? In Tidal Help, it says-
    In the Jobs pane, press and hold the Ctrl key and at the same time right-click and either individually select individual jobs within a job group or drag your mouse cursor over a block of jobs that you wish to select. You can only move multiple jobs between job groups if the jobs being moved are on the same level.
    Keeping the right mouse button depressed, drag the cursor to the job group that you wish to move the jobs to and release the mouse button.
    When moving jobs from one job group to another, you must decide if the moved jobs keep their original job group attributes or assume the calendar and agent characteristics of its new job group.
    A confirmation dialog, offers three inheritance options for the jobs moved to the "new" job group parent. Select one of the following options:
    However, when I attempt to follow those instructions, it doesn't work at all and there is no indication that it's even trying (i.e., I don't see the selected job following my cursor at all and all I get is the normal menu when you right click anywhere on the screen.)
    Is there another way to do this or is there a master setting that needs to be changed so that ability is enabled?
    Thanks.

    Go into edit mode for the job group group and just manually edit the section for Parent job/Group.
    Cheers

  • Incrementing Total not correct(adding +1)  in some group totals

    Hi All,
    I have an incrementing total that appears to work fine except when I try to display the total's final count only SOME groups have a +1 count. There doesn't seem to be a logical reason for it.
    Any ideas?
    Incrementing total formula:
    Whileprintingrecords;
    if Not({Command.BI_UPD_DT_TM} > {@f_ConvertRevYrMo_DtTm})
    then
    Global numbervar memberlinecnt := memberlinecnt +1
    else
    memberlinecnt+0;
    Formula to call incrementing total's final group total:
    Global numbervar memberlinecnt:={@f_RRTMemberIncrement};
    memberlinecnt;
    Note: I've not been able to use Running Total fields with this report because I need to evaluate totals based on group criteria and there are multiple groups and criteria.

    Hi Sharon,
    I do have a reset, just didn't include it in my post.
    Reset
    //@Reset (Place this in the group header section suppressed)
    WhilePrintingRecords;
    Global NumberVar memberlinecnt:= 0;
    Like I said,the whole thing appears to work, counting for ever group, resetting; except for only some groups, the total is +1 of the total. I don't know why.
    Thanks,
    John

  • Group Totals

    Hi All,
    If any one knows plz mail me
    I want financer wise total amounts
    and that totals also in Currency wise also
    I look forward to your reply or call
    reward points
    Thanks & Regards
    Sek

    essentially what you want to do is add another grouping level (A,B) .. so you need to do that and then the summaries will work accodingly.
    thanks,
    ph.

  • Formula to provide a varaible the total value for a group

    Hi,
    I need to create a formula which outputs the value for a single group. For example, two groups are:
    Group: Year
         Group: Products
    I only need to place in the footer the total for year 2012, product jam. The report contains dteails for many products and years.
    Any one help me with this formula?
    Cheers,

    Hi Leo,
    Create this formula and place it on the Group Header 2. You may suppress this formula as we don't really need to display it.
    WhilePrintingRecords;
    numbervar summ;
    if {Year} = 2012 and {Product} = "Jam" then
        summ := Sum ({Product}, {Year}))
    Note. If the {Year} field is a date field, then you need to use a function to extract the year like:
    Year({Year_field}) = 2012
    Create another formula to display the sum and Place it on the Report Footer:
    WhilePrintingRecords;
    numbervar summ;
    Hope this helps!
    -Abhilash

Maybe you are looking for