Totals for Groups not adding

Hello,
I created a report for our Scheduling team here and I thought it was working nicely and someone found  that my totals are not adding up.
In the Group Header Reset I have:
WhilePrintingRecords;
Shared NumberVar PastDue :=0;
Shared NumberVar Day1Value :=0;
Shared NumberVar Day2Value :=0;
Shared NumberVar Day3Value :=0;
Shared NumberVar Day4Value :=0;
Shared NumberVar Day5Value :=0;
Shared NumberVar Day6Value :=0;
Shared NumberVar Day7Value :=0;
Shared NumberVar Day8Value :=0;
Shared NumberVar Day9Value :=0;
Shared NumberVar Day10Value :=0;
Shared NumberVar SDay1 :=0;
Shared NumberVar SDay2 :=0;
Shared NumberVar SDay3 :=0;
Shared NumberVar SDay4 :=0;
Shared NumberVar SDay5 :=0;
Shared NumberVar SDay6 :=0;
Shared NumberVar SDay7 :=0;
Shared NumberVar SDay8 :=0;
Shared NumberVar SDay9 :=0;
Shared NumberVar SDay10 :=0;
Day 1 Values  (Day1Value should hold totals, but it's only holding the last value it seen, Detail Section)
WhilePrintingRecords;
Shared NumberVar Day1Value;
if IsNull({V_SHIP_SCHED.DAY_1}) then 0
else {V_SHIP_SCHED.DAY_1};
Day1Value := {V_SHIP_SCHED.DAY_1} + Day1Value;
Day 1 Totals (Group Footer Section)
WhilePrintingRecords;
Shared NumberVar Day1Value;
Day1Value;
Not sure why it's happening.  Any ideas?

Okay found out my Totals in the Group Footer are working, it's just in the detail not working.
When I do this:
WhilePrintingRecords;
Shared NumberVar Day1Value;
if IsNull({V_SHIP_SCHED.DAY_1}) then 0
else {V_SHIP_SCHED.DAY_1};
Day1Value := {V_SHIP_SCHED.DAY_1} + Day1Value;
it printing out the First line amount being correct but the next line it's adding the first line with the second line and giving it total
ie:  Customer 1 - Day 1 = 100
     Customer 2 - Day 1 = 200
Then when printing it doing this:
                         Day 1
Customer 1     100
Customer 2     300
Total               300
What I need to do this:
                         Day 1
Customer 1     100
Customer 2     200
Total               300
Thanks.

Similar Messages

  • Totals for hour not summing

    Hello,
    I have a query that is supposed to filling in missing values for individual hours of the date in the date range specified if there is nothing for that hour in the database.
    It is also supposed to sum the totals for each hour. I have not been able to get my query to group by the hour. For example, I get
    <br><br>
    call_start_date     st_hour   inc_comp
    06-NOV-06           00          0
    06-NOV-06           01          0
    06-NOV-06           02          1
    06-NOV-06           02          1
    06-NOV-06           02          0
    06-NOV-06           02          1
    06-NOV-06           03          0
    06-NOV-06           04          0      ..and so on, up to hour 23 for the date, then it
    continues with 07-NOV-07, etc.
    What I should be getting is this:
    call_start_date     st_hour   inc_comp
    06-NOV-06           00          0
    06-NOV-06           01          0
    06-NOV-06           02          3
    06-NOV-06           03          0
    06-NOV-06           04          0      ..and so on, up to hour 23 for the date, then it
    continues with 07-NOV-07, etc.
    <BR>Code:
    SELECT call_start_date, TO_CHAR(call_start_date,'HH24') st_hour,
           SUM(int_comp) inc_comp
    FROM (
    SELECT call_start_date,      
           sum( int_comp) int_comp
           FROM cdhtp.station_sum_view      
           WHERE call_start_date       
           BETWEEN TO_DATE(SUBSTR('06-NOV-2006 00:00',1,19),'DD-MON-YYYY HH24:MI')      
           AND to_date (substr ('07-NOV-2006 23:59',1,19),'DD-MON-YYYY HH24:MI')      
           AND switch_id = 'PABST'
           GROUP BY call_start_date
    UNION
    SELECT TO_DATE('06-NOV-2006', 'DD-MON-YYYY') + (LEVEL - 1) / 24 call_start_date, 0,0,0,0,0,0,0
    FROM dual 
    CONNECT BY LEVEL <= ((TO_DATE('07-NOV-2006','DD-MON-YYYY')+1) - TO_DATE('06-NOV-2006','DD-MON-YYYY')) * 24
    MINUS
    SELECT call_start_date, 0,0,0,0,0,0,0
           FROM cdhtp.station_sum_view      
           WHERE call_start_date       
           BETWEEN TO_DATE(SUBSTR('06-NOV-2006 00:00',1,19),'DD-MON-YYYY HH24:MI')      
           AND to_date (substr ('07-NOV-2006 23:59',1,19),'DD-MON-YYYY HH24:MI')      
           AND switch_id = 'PABST'  
    )) GROUP BY call_start_date, TO_CHAR(call_start_date,'HH24') ;<br>
    Thanks!
    Laura

    Is your problem this error?
    ORA-01789: query block has incorrect number of result columnsIf so, you just need to remove those exra zeroes in the sub-query. the number of columns must be the same on either side of a UNION.
    Given this data ...
    SQL> alter session set nls_date_format = 'DD-MON-YYYY HH24';
    Session altered.
    SQL> select * from station_sum_view 
      2  /
    CALL_START_DAT   INT_COMP SWITC
    06-NOV-2006 00          0 PABST
    06-NOV-2006 01          0 PABST
    06-NOV-2006 02          1 PABST
    06-NOV-2006 02          1 PABST
    06-NOV-2006 02          0 PABST
    06-NOV-2006 02          1 PABST
    06-NOV-2006 03          0 PABST
    06-NOV-2006 04          0 PABST
    06-NOV-2006 07          0 PABST
    06-NOV-2006 07          0 PABST
    06-NOV-2006 07          0 PABST
    06-NOV-2006 09          0 PABST
    06-NOV-2006 09          1 PABST
    13 rows selected.
    SQL> I get this ...
    SQL> SELECT call_start_date, TO_CHAR(call_start_date,'HH24') st_hour,
      2         SUM(int_comp) int_comp
      3  FROM (
      4  SELECT call_start_date,      
      5         sum( int_comp) int_comp
      6         FROM station_sum_view      
      7         WHERE call_start_date       
      8         BETWEEN TO_DATE(SUBSTR('06-NOV-2006 00:00',1,19),'DD-MON-YYYY HH24:MI')      
      9         AND to_date (substr ('07-NOV-2006 23:59',1,19),'DD-MON-YYYY HH24:MI')      
    10         AND switch_id = 'PABST'
    11         GROUP BY call_start_date
    12  UNION
    13  (
    14  SELECT TO_DATE('06-NOV-2006', 'DD-MON-YYYY') + (LEVEL - 1) / 24 call_start_date, 0
    15  FROM dual 
    16  CONNECT BY LEVEL <= ((TO_DATE('07-NOV-2006','DD-MON-YYYY')+1) - TO_DATE('06-NOV-2006','DD-MON-YYYY')) * 24
    17  MINUS
    18  SELECT call_start_date, 0
    19         FROM station_sum_view      
    20         WHERE call_start_date       
    21         BETWEEN TO_DATE(SUBSTR('06-NOV-2006 00:00',1,19),'DD-MON-YYYY HH24:MI')      
    22         AND to_date (substr ('07-NOV-2006 23:59',1,19),'DD-MON-YYYY HH24:MI')      
    23         AND switch_id = 'PABST'  
    24  )) GROUP BY call_start_date, TO_CHAR(call_start_date,'HH24') ;
    CALL_START_DAT ST   INT_COMP
    06-NOV-2006 00 00          0
    06-NOV-2006 01 01          0
    06-NOV-2006 02 02          3
    06-NOV-2006 03 03          0
    06-NOV-2006 04 04          0
    06-NOV-2006 05 05          0
    06-NOV-2006 06 06          0
    06-NOV-2006 07 07          0
    06-NOV-2006 08 08          0
    06-NOV-2006 09 09          1
    06-NOV-2006 10 10          0
    06-NOV-2006 11 11          0
    06-NOV-2006 12 12          0
    .....Cheers, APC

  • Assign-To-Do task for groups not showing in My workflow task webpart

    I work with Nintex My workflow task webpart. I have couple of assign to do task actions in my workflow.
    There if Assigned To is Initiator task is added to My workflow task webpart and if Assigned To
    is a group, then task is not added to My workflow task webpart.
    I want to know is that the behavior of Nintex, or something went wrong in my implementation.

    Hi Sivakumar,
    According to your description, my understanding is that you want to display the tasks assigned to a group in Nintex My workflow task web part.
    From the link below we can know that the Nintex My workflow task web part can only query for tasks for the user (queries the database), it only queries based on their login name, not on group membership.
    http://connect.nintex.com/forums/thread/5935.aspx
    As I am not familiar with this Nintex web part, I recommend you to post in this forum:
    http://connect.nintex.com/forums/.
    More Nintex experts will help you.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Totals for Hierarchys not correct with condition

    Dear All
    I have a Bex query with two hierarchys, one in rows and the other in column. query is working perfectly fine without condition in query. when there is a condition added in the query for the total amount more than or equal to * the totals are not displaying correctly.
    Totals are displayed for the amount which are less than the amount *.

    Try to change in the KF properties, defining the totals as summation, instead of "nothing defined".

  • Timeline Start and Finish Dates - how to not display finish dates for tasks not added to timeline

    I have a project, Project 1, with start date 1 Jan 2014 and finish date 31 Dec 2014.  When I switch to timeline view, the timeline spans this period. I now want to create a second view for a sub project within Project 1, called Project 1A.  It
    starts 1 June 2014 and finishes 31 August. I only want to see Project 1A's tasks and time span on this second custom timeline view. I create the new view, add the tasks from Project 1A to the timeline, and save the view as CustomView1A. My problem: CustomView1A
    shows the tasks for Project 1A, but also shows the dead space between 1 Jan 2014 and 1 June 2014, as well as the dead space between 31 August and 31 December.
    I dont want to see the dead space. I want CustomView 1A's timeline to start and finish on Project 1A's start and finish dates.
    How do I adjust CustomView 1A's timeline borders on the left and right to exclude the dead space?
    Hanneliese Fourie

    Dear Sir,
    I checked in CO41 and it allows me to convert planned order to production order and not have any provision to re-scheduling the planned order . Any function to reschedule planned order to future dates ( whose start dates and finish dates are in past ) ?
    Thanks,
    SL

  • Sub Totals of Groups

    Hi experts,
    <br>
    <br>
    i have the following problem. I've already checked this forum for it and the internet but i can't find a solution. Maybe someone of you can help me or give me a hint.
    <br>
    <br>
    I have a printform with a table in it, i'm able to calculate page wise totals and grandtotal. But i need now a total for groups.
    <br>
    <br>
    For instance table on first page:
    <br><br>
    Table header. Nr. | Date | Amount | price |
    <br>
    Table data        1  | 1.1   | 2            | 2.00 |
    <br>
                             1  |  2.1  | 3           | 3.00 |
    <br>
                             2  |  2.1  | 3           | 3.00 |
    <br>
                             2  |  2.1  | 3           | 3.00 |
    <br>
                             3  |  2.1  | 3           | 3.00 |
    <br>
                             3  |  2.1  | 3           | 3.00 |
    <br>
                             3  |  2.1  | 3           | 3.00 |
    <br>
    Table footer                                  |pagesum|
    <br><br>
    For instance table on second page:
    <br><br>
    Table header. Nr. | Date | Amount | price |
    <br>
    Table data        4  | 1.1  | 2            | 2.00 |
    <br>
                             4  |  2.1  | 3           | 3.00 |
    <br>
                             4  |  2.1  | 3           | 3.00 |
    <br>
                             5  |  2.1  | 3           | 3.00 |
    <br>
                             5  |  2.1  | 3           | 3.00 |
    <br>
                             5  |  2.1  | 3           | 3.00 |
    <br>
                             5  |  2.1  | 3           | 3.00 |
    <br>
    Table footer                                  |pagesum|
    <br>
    Field                                              |grad total|
    <br><br>
    This is the form like i have it at the moment! I want to achieve the following form.
    <br><br>
    For instance table on first page:
    <br><br>
    Table header. Nr. | Date | Amount | price |
    <br>
    Table data        1  | 1.1   | 2            | 2.00 |
    <br>
                             1  |  2.1 | 3           | 3.00 |
    <br>
    total                                              |Nr 1total|
    <br>
                             2  |  2.1  | 3           | 3.00 |
    <br>
                             2  |  2.1  | 3           | 3.00 |
    <br>
    total                                              |Nr 2total|
    <br>
                             3  |  2.1  | 3           | 3.00 |
    <br>
                             3  |  2.1  | 3           | 3.00 |
    <br>
                             3  |  2.1  | 3           | 3.00 |
    <br>
    total3                                             |Nr 3total|
    <br>
    Table footer                                  |pagesum|
    <br><br>
    For instance table on second page:
    <br><br>
    Table header. Nr. | Date | Amount | price |
    <br>
    Table data        4  | 1.1   | 2            | 2.00 |
    <br>
                             4  |  2.1  | 3           | 3.00 |
    <br>
                             4  |  2.1 | 3           | 3.00 |
    <br>
    total                                              |Nr 4total|
    <br>
                             5  |  2.1  | 3           | 3.00 |
    <br>
                             5  |  2.1  | 3           | 3.00 |
    <br>
                             5  |  2.1  | 3           | 3.00 |
    <br>
                             5  |  2.1  | 3           | 3.00 |
    <br>
    total                                              |Nr 5total|
    <br>
    Table footer                                  |pagesum|
    <br>
    Field                                              |grad total|
    <br><br>
    Is this possible in Adobe Interactive Forms?
    <br>
    <br>
    Thanks for help in advanced!!!!

    Hi,
      Try to create a manual running total formula for summing the fields with a condition.
    Create a @reset formula and place it report header:
    formula:
    whileprintingrecords;
    numbervar i:=0;
    Create a @eval formula and place it in group header A:
    formula:
    whileprintingrecords;
    numbervar i;
    if {groupname.field} = 'Labour' or {groupname.field} = 'Expenses'  then
    i:= i + {summary.field};
    Create a @display formula and place it in report footer;
    formula:
    whileprintingrecords;
    numbervar i;
    Hope this helps!
    Regards,
    Vinay

  • Group/Sort Summary Totals for Duration % Complete not working

    Hello, I'm new to this forum and have used p3 off and on years ago and had some exposure to p5, my background is more toward Project Controls - Cost management rather than scheduling. Here is my issue/question: I was told by the PM not to baseline the schedule (I know, I should have but I didn't, I did as I was specifically requested), that is a topic for another day, however. I am trying to understand the process of the % completes on my resource loaded schedule which all activities are set to duration percent complete. The schedule has roughly quarter of the activities which have been actualized, but my issue is with the "Summary Totals" of the duration % complete when I select that option in the Group/Sorting. All of the activities in a group for example will show 0% complete but the Summary Total of those activities will show greater than 0% or some of the activities duration % completes show a value greater than 0% but the Summary Total of those activities show 0%. What is causing this and why are they not consistent? Any help is greatly appreciated!
    Shannon

    I'm currently showing the duration % complete with a renamed label. The total is not rolling up to the summary. I've also discovered that the unit % complete is not calculating correctly too I believe. For example: I have 3708 budgeted hours and have expended 656 hours and the Unit % Complete is showing 19.08% when I would have thought that the % would have been calculated based on Actual Units (656) / Budgeted Units (3708) totaling 17.69% not 19.08% which it is showing. I cannot find in the reference manual how the percent completes are calculated for units nor in the help section of the software itself either. An explenation would be greatly appreciated!
    Shannon

  • Expression for runing total for a group tablix not reporting properly

    Hello,
    I have this expression in my report
    =Previous(RunningValue(Fields!Amount.Value,sum,"Group Name"))
    But when I run the report the running total still runs to the next group.
    Please hoe do I resolve this.
    Thank you
    Akintayo Kemi

    Hi Akintayo,
    According to your description, you want to get previous total for the data fields Amount. And you don't want the previous total value jump to next group. Right?
    In this scenario, we can add a condition to make the value in the first row of each group to be null. Use the expression below:
    =IIF(Fields!Amount.Value=First(Fields!Amount.Value,"Group Name"),nothing,previous(RunningValue(Fields!Amount.Value,sum,"Group Name")))
    The result looks like below:
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Arrear Amount Not adding in Total Earning

    Dear All,
    When we are generating pay slip by PC00_m40_cedt and with simulation PC00_M40_Calc_SIMU then Stat.net subs.adjustment
    i.e. /552 component is not adding in Total Earning field , please help from where we can also show that amount in Total Earning field.
    Regards
    Vivek Sharma

    Check whether it is coming in Window Earnings side in payslip.......If it is displying in window but it is not adding in total earnings then problem with cumulation IDs....How you have added in WIndow and Cumulation IDs.
    Goto PE51....Select Window and double click on Group.add lile below...
    Sgr                table       ID         Text                 Pty    Cty      DiffRel
    01             RT         /552      XXXXXX               01      X               *      ( Note Use proper line type)
    Cumulation IDs....click on Earning ID ex IN01......double click on IN01 and add....
    RT           /552           XXXXXX            + (MS)      * (DSplit)

  • Active Directory groups not being managed when added to an OD group?

    Hi all,
    Hopefully someone out there might be able to help with this. I have a magic triangle of authentication working and when I add an AD group to an OD group, some work and some don't.
    For example if I add a AD User to an OD group it works. If I add the "Domain Users" AD group to my OD group, it works - everyone on our network is managed (because everyone is in the Domain Users AD group). But if I remove "Domain Users" and add the "Students" AD security group, they are not managed. If I add "Staff' AD group, some staff are managed and some are not (I have confirmed that they are added to the group).
    Is there a trick to having AD security groups work in OD groups every time. (Note they are not distribution groups)
    Thanks,
    Gavin

    If the group was added to SharePoint and then users were added to the group try waiting a day.  The claims token in SharePoint lifetime is fairly long.  So when new users are added to an existing AD group SharePoint will not recognize the new membership
    in the Claims token for 12 -24 hours.  If you add a user today they should be able to log in tomorrow.  Take a look at the following Blog post.  I think this is your issue.
    http://www.andrewjbillings.com/sharepoint-2013-claims-authentication-ad-group-changes-not-reflected/
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • How to handle goup sub total for each group in oracle query ?

    hi,
    i want to handle one complex thing in oracle query.
    i have a grouping in my oracle query.
    i want to do sub total for each group in query and after that i want to subtract one group sub total from previous group subtotal ?
    so how can i handle this in oracle query ?
    any help is greatly appreciated.
    thanks.

    Hello
    Interesting requirement.
    I wonder why are you not using these calculation during the display time. If it is acceptable then you can try using the custom formula with the running total combination in crystral report to achieve to get the required results.
    Best regards
    Ali Hadi

  • Device summary pane does not show capacitiy totals for each category (audio, remaining, photos, etc.)

    When viewing the summary pane for my ipod, the summary bar does not show totals for each category (audio, remaining, photos, etc.). It does not show when hovering over each category either. Seems to be some type of bug with itunes. I have tried re-installing itunes but that does not work. How do I fix this?

    Hello vetsrini.
    Thanks a lot for your kind reply. As i said, i'm new to this and sometimes i just cannot pass over some problems. Here are the fields i have inserted:
    <?for-each:LIST_G_SETUP/AS_OF_DATE?>
    <?end for-each?>
    <?for-each@section:G_CUST_INV?>
    <?for-each:G_1?>
    <?INVNUM?>
    <?INVOICE_TYPE_INV?>
    <?DUE_DATE_INV?>
    <?sum (C_INV_BALANCE)?>
    <?sum (C_INV_B0)?>
    <?sum (C_INV_B1)?>
    <?sum (C_INV_B2)?>
    <?sum (C_INV_B3)?>
    <?sum (C_INV_B4)?>
    <?sum (C_INV_B5)?>
    <?end-for-each-group?>
    <?TOTAL_INV_AMT_DSP?>
    <?TOTAL_INV_B0_DSP?>
    <?TOTAL_INV_B1_DSP?>
    <?TOTAL_INV_B2_DSP?>
    <?TOTAL_INV_B3_DSP?>
    <?TOTAL_INV_B4_DSP?>
    <?TOTAL_INV_B4_DSP?>
    <?end for-each:G_CUST_INV?>
    In the header of the template i also have <?CUST_NAME_INV?> and the report date. When i try to enter the <?AS_OF_DATE?> it is not printed and also the header is not shown any longer. Once again, thank you for any help,
    Octavio

  • Adding expanding boxes for groups on front page of web server

    Hello all..
    At the moment we are expanding or wiki server and we need some way of organising the groups.
    one idea was to sort the groups into expanding lists ie when you open the page all you see is staff and students then when you expand students you get all the student related groups.
    Is this possible or is there a better way.
    If we didnt sort it we will have a list 6' long

    I want to do this as well. I've come up with a couple of ideas.
    1. Create a custom html page for /groups and/or /users where you add/create the links to the various pieces by hand
    - not very friendly to manage and doesn't leverage the dynamic capabilities the current /groups and /users pages have
    2. Create some custom .js that adds a class or id attribute to the list or the list elements so they can be dealt with independently. For this to be easy to manage additional information needs to be pulled from the directory (Active Directory in our case) so you can ID students separately from faculty. Then the logic would be to modify group_listing.xsl and have it generate two UL's, one with a class or id attribute of faculty and the other student and loop the respective entries into each UL. CSS can be used to expand/collapse the lists.
    - this seems doable if I can only figure out how/where to have the server pull additional information from AD (if the students and faculty are flagged as such in AD). This logic wouldn't deal with staff, but that could easily be added.

  • Totals for CKF are not matching

    Hi All,
    We recently upgraded to BI7 and we created Aggregates in the system. We have few calculated key figures (CFK) in the system. When we execute the queries they are not hitting the aggregates in the system because of the property, calculation before aggregation.
    We changed that property calculation before aggregation to calculation after aggregation then the queries are hitting the aggregates. So we moved the aggregates to BQ and BP. There the values for the totals in the report are not matching. For ex: we have value 10 for a CKF in five rows then the total in the result row should be 50 but that is not the case now, it is showing as 45 or 55 some value. The totals are not matching in all the reports where this CKF is involved.
    But when we keep the calculation before aggregation property as it is, then the total values for this CKF are matching in the report. But now the problem is that the queries do not hit the aggregates.
    So instead of going for a CKF we tried with creating a formula in the query with the same calculation as it is in the CKF, but for that formula also the total values are not matching. When we check and compared the formula calculation with other CKFu2019s in the system, we found out that those CKFs which involved the calculations such as multiplication and division the totals are not matching but if the CKF is containing addition and subtraction then the Totals are matching. This is the same case in across all the systems except in Production.
    We have testing system (BT), which is a copy of production; the totals are matching for this CKF in one report. But if we include the same CKF in some other report then the totals for this CKF are not matching in that report.
    We are unable to figure out why the same CKF with same properties and calculations is not behaving in the same way across all the systems. If anybody comes across such issue please let us know how to proceed further.
    Thanks for your patience.
    Hope for your response...

    Hi himanshu,
    If you are using Addition, subtraction with Multiplication & Division, just maintain all in the Sequence how you required using brackets.
    If you are using formula in Row & Column also try to use formula Collision.
    http://help.sap.com/saphelp_nw04/helpdata/EN/d2/02223c5f00612be10000000a11402f/content.htm
    Regards,
    Rajdeep.

  • Total value for PO not displayed

    Hi,
    While creating a SSP PO, the total value is not displayed. Please suggest.
    Regards,
    Anand.

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

Maybe you are looking for