Incorrect subtotal

Hi,
We are facing a unique problem. When we see the data by a fiscal period the total for a certain column is the sum of the line items. But the total is not coming right. But if we right click on the result and give calculate-> summation we get the expected result.
I would need your thoughts on this.
thanks
Amit

It would sum it down, but be aware that if you are applying a filter to the data on the results after the query has run, the total will be the original total and will not remove the amounts that you have removed from the results via the filter, unless you actually tell it to sum. Does that make sense?  Please see my example.
Material     Amount
XXXXXX         10
YYYYYY         20
ZZZZZZ         20
Total          50
If you put in a filter to exclude material XXXXX, the total would remain 50 unless you told it "summation". In that case, it would re-sum the total to be 40.

Similar Messages

  • Crystal XI - SubTotal incorrect due to duplicate entries in report

    First note that I am not a programmer.  Is someone I can ask a question also using Frontrange Heat applications?  I am trying to select all tickets closed by certain individuals.  I've tried some stuff from forums, but i'm batting my head on this one as well.  Anyone out there that can help.
    Example of what my spreadhseet looks like:
    Group #1 Name:  CallLog.Closed by
    Closed by:    John Smith        Sub-Total Tickets:  4
         00123456     closed         2012-01-03
         00123456     closed         2012-01-03
         00234567     closed         2012-01-02
         01255555     closed         2012-02-03
    I want the total to come up with 3 instead of 4. 
    Closed by:    Jane Smith       Sub-Total Tickets:  4
         00345345     closed        2012-01-16
         00256767     closed        2012-01-24
         00256767     closed        2012-01-24
         00256767     closed        2012-01-24
    I want the total to come up with 2 instead of 4.
    Total:    Should come up as 5 and not 8.

    Hi,
    Here's what you need to do:
    Solution 1
    1) Create a Running Total. In the Field to Summarize area insert the 'Number_Field'. The Type of Summary should be 'Distinct Count'. Evaluate for Each record and Reset to 'On Change of Group' and insert the Group Name field in here.
    2) Place this Running Total in the Group Footer
    3) Create a formula @add_RT and place this on the Group Footer
    whileprintingrecords;
    numbervar fin_tot := fin_tot + {#RTotal0};
    4) Create this formula @disp_tot and place it on the Report Footer:
    WhilePrintingRecords;
    numbervar fin_tot;
    Solution 2
    1) Create this formula @array_accum and place it on the details section:
    WhilePrintingRecords;
    numbervar array arr;
    numbervar j;
    if not({Sheet1_.Number} in arr) then
        j := j + 1;
        redim preserve arr[j];
        arr[j] := {Sheet1_.Number};
    2) Create this formula @reset and place it on the Group Header:
    WhilePrintingRecords;
    numbervar j :=0;
    numbervar array arr := 0;
    3) Create this formula @disp_group_total and place it on the Group Footer:
    WhilePrintingRecords;
    numbervar array arr;
    numbervar fin_count;
    fin_count := fin_count + ubound(arr);
    ubound(arr);
    4) Create this formula @disp_grand_total and place it on the Report Footer:
    WhilePrintingRecords;
    numbervar fin_count;
    Please let me know how this goes!
    -Abhilash

  • Goods receipt subtotal is showing zero instead sum of quantity..!

    Hi Guys,
    1. Goods movement subtotal showing 0 instead of the total of the quantity.
    The check throwing the following error message.
    Update control of movement type is incorrect (entry 122 X X)
    Message no. M7226
    2. Purchase order data tab not showing item details for variance items but showing the message
    "This item has not been ordered."  But the PO items are ordered and present in the PO.
    Please find the screen shots.
    Thanks
    Sam

    Hi Sam,
    Kindly  Check table T156SC entries there is a entry missing in the table.
    And if required so kindly Maintain the missing entries in table.
    If entries of movement type 101 are prefect then
    Goto Transaction  -- SE37 ,
    Function module -- MB_CONTROL_MOVETYPE_GET_SINGLE
    Kindly do Set a break point to select statement which is failing at the table above at both the systems.You should be able to crack the error.
    Hope this will help you to solve the issue.
    And if not Kindly let us know.
    Thanks & Regards
    Ritesh Kumar

  • Set select one of the cell in subtotal row in ALV report

    Dear all,
    I have a ALV report that has subtotal amount by Vendor ID.
    I want to set the selection at vendor ID column (same row with subtotal).
    I tried both set_selected_cell() and set_current_cell() methods, the cell selected is incorrect. It doesnt seem to be able to select any cell at the same row of SUBTOTAL.
    lr_selections = ref_table->get_selections( ).
          lt_current_cell = lr_selections->get_current_cell( ).
          lt_current_cell-row = lt_current_cell-row.
          lt_current_cell-columnname = 'LIFNR'.
          lr_selections->set_current_cell( lt_current_cell ).
    Please help. Thanks.

    HP should provide tested recovery DVD every note book user. along with note book.
    That is solution
    fws1 wrote:
    I neglected to add that the system is configured exactly as from the factory, save a few added programs and user files. No hardware changes or OS up or downgrade. The hard drive was corrupted by some type of root virus and had to be fully reformatted. I did the format manually as well as let the HP Recovery disks. Same result either way. The recovery program, after the failure,  prompts user to insert a flash drive and creates some file, but HP has no info on the file creation or what to do with said file!  
    fws1 wrote:
    I neglected to add that the system is configured exactly as from the factory, save a few added programs and user files. No hardware changes or OS up or downgrade. The hard drive was corrupted by some type of root virus and had to be fully reformatted. I did the format manually as well as let the HP Recovery disks. Same result either way. The recovery program, after the failure,  prompts user to insert a flash drive and creates some file, but HP has no info on the file creation or what to do with said file!  

  • S_ALR_87012083: incorrect (sub)totals in exported excel

    Hi,
    We run S_ALR_87012083 to do vendor line item analysis.
    Standard the report subtotals on Vendor, G/L account, Company Code and Currency (in this sequence).
    Sort order Ascending: Company Code, G/L account, Vendor, Special G/L indicator, Assignment, Posting Date, Currency and Business Area.
    Data is displayed in non ALV layout.
    If we use the "Export to Excel" button the result in MHTML format is showing incorrect subtotals and totals.
    These are multiplied with a factor 10.000.000.
    We use 2 digitals behind the comma in SAP and 2 digitals are displayed in excel.
    The single line item values do show correct.
    Even if we are only using 1 item for subtotal or non at all, this issue still comes up.
    I have also removed one to all items from the sort order list, still the same problem.
    Also tried other vendor and customer line item reports starting with S_ALR, but they all have this issue.
    Checked the solution in OSS 423335, but didn't work out (or maybe I am misunderstanding the term sort level).
    So anyone who could help, it would be much appreciated.
    Best regards,
    Geert

    Hi,
    We have the same problem, here is the answer we received from SAP:
    Dear customer,
    Firstly the component BC-CST is not proper, I would like to change
    to BC-FES-OFFI for checking, also it's more like BC-SRV-ALV.
    There is same issue reported from other customers and was solved by
    note 1356898 which provided by our develoer .
    #1356898 WD ABAP ALV export with aggregations is incorrect
    But for tchnical reasons this note needs at lease SAPKB70020 as
    prerequisite.
    If you can't apply this note right now, then you can use below
    workaround to avoid the issue :
    Before you export your list to Excel:
    1. push the "Change layout" button (Ctrl+F8)
    2. choose the tab "Sort order" an check for which column the subtotals
    are created
    3. switch back to the tab "Displayed Columns" and search for this column in the right list and add it to the left one.
    4. Confirm the changes
    If you now export the data, the texts should be there.
    Hope the information helpful.
    Janno

  • Dynamic Subtotal that includes Local Member in sum

    Hi,
    I have a dynamic report that i have separated into sections using blank local members. Now within one of these groups is a local member row that is an EPMRETRIEVEDATA function that is pulling some other data. Finally, I have a repeating subtotal local member that totals the values for each group of cost centers.
    My issue is that the SUBTOTAL local member won't include the EPMRETRIEVEDATA local member in the sum.
    It doesn't matter if I use sum of EPMSELECTEDMEMBERS or EPMALLMEMBERS. Of course, I can code in the excel reference but then the subtotal isn't dynamic and the reference will be incorrect if the report expands.
    FYI, in the attached picture, the highlighted row is the local member with EPMRETRIEVEDATA and the row below in bold is the SUBTOTAL.
    Any help with this is much appreciated!
    Edited to add more recent picture. Thanks!

    Another tricky option is:
    Subtotal member formula:
    =SUM(EPMSELECTEDMEMBERS(SOMEDIM))+INDIRECT(ADDRESS(ROW(EPMSELECTEDMEMBERS(SOMEDIM))+ROWS(EPMSELECTEDMEMBERS(SOMEDIM)),COLUMN(EPMSELECTEDMEMBERS(SOMEDIM))))
    During local member processing EPMSELECTEDMEMBERS(SOMEDIM) will be replaced with the range of normal members and INDIREC(ADDRESS(... will compose the reference to cell just under this range.
    B.R. Vadim

  • Subtotal Heder not showing

    Hi all,
    Submodule for displaying subtotal text is not triggered.
    Kindly suggest me.
    Source Code is as follows.
    FORM sub_get_event .
      DATA: l_s_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 4
        IMPORTING
          et_events       = i_events
        EXCEPTIONS
          list_type_wrong = 1
          OTHERS          = 2.
    Subtotal
      READ TABLE i_events  INTO l_s_event
                        WITH KEY name = slis_ev_subtotal_text.
      IF sy-subrc = 0.
        MOVE c_formname_subtotal_text TO l_s_event-form.
        MODIFY i_events FROM l_s_event INDEX sy-tabix.
      ENDIF.
    ENDFORM.                    " SUB_GET_EVENT
    *******************this code is not triggred *for displaying text for subtotal*******************************
    FORM subtotal_text CHANGING
                   p_total TYPE any
                   p_subtot_text TYPE slis_subtot_text.
    WBS Element level sub total
      IF p_subtot_text-criteria = 'WBS_ELEMENT'.
        p_subtot_text-display_text_for_subtotal
        = 'Subtotal at WBS element level'.
      ENDIF.
    ENDFORM.            
    Thanks in advance

    Hello,
    Some basic questions.
    Are you putting the internal table i_events in the it_events of the FM REUSE_ALV_GRID_DISPLAY?
    Try to pass the sy-tabix value of the loop to a variable to avoid a incorrect index, I think one of this situations is happening, because your code is OK.
    Hope it Helps.
    Kleber Santos

  • Subtotal on every group code

    Morning all,
    I have created a report which is grouped by Reason Code (A numbering system 01- 999). This report produces Total Jobs, Total Lenses and their averages.
    There is one slight addition I would like to add into the report.
    I would like to create a formula so that report sub totals each record according to the code range.
    For example:
    When producing report for all codes (01- 999) It should produce results like this.
    01 to 99
    Sub Total
    100 to 199
    Sub total
    200 - 299
    Subtotal
    and so on (upto 999).
    Then Grand total of everything.
    Any ideas how to achieve something like this?
    Report Layout:
    Grouped by - Reason code 01- 999
    Group Header = Reason Code and Reason Description
    Group Footer = Total Jobs, Total Lenses, Total Average
    Report Footer = Total of Total Jobs, Total of Total Lenses and avg
    Currently report when produced, it produces results like this
    01 - 999
    Total lenses, jobs and averages.
    Hence there is no sub division between code ranges.
    Could someone advise me on this please?
    Many thanks
    Regards
    Jehanzeb

    Thanks for your quick reply Sastry,
    I have tried your method but it says a string is required here. I suspect that I am using Group Name and that is the reason why it is showing that message. Here is how I designed the formula
    I named the formula "grouping"
    Then entered the following code:
    If GroupName ({lab_reasons.reason_code}) >= 1 and
    GroupName({lab_reasons.reason_code}) <=99
    then "01 - 99"
    Else If GroupName ({lab_reasons.reason_code}) >= 100 and
    GroupName ({lab_reasons.reason_code}) <=199
    Then "100 - 199"
    Else If GroupName ({lab_reasons.reason_code}) >=200 and
    GroupName ({lab_reasons.reason_code}) <=299
    Then "200 - 299"
    Else If GroupName ({lab_reasons.reason_code}) >= 300 and
    GroupName ({lab_reasons.reason_code}) <=399
    Then "300 - 399"
    Else If GroupName ({lab_reasons.reason_code}) >= 400 and
    GroupName ({lab_reasons.reason_code}) <=499
    Then "400 - 499"
    Else If GroupName ({lab_reasons.reason_code}) >=500 and
    GroupName ({lab_reasons.reason_code}) <=599
    Then "500 - 599"
    Else If GroupName ({lab_reasons.reason_code}) >= 600 and
    GroupName ({lab_reasons.reason_code}) <=699
    Then "600 - 699"
    Else If GroupName ({lab_reasons.reason_code}) >= 700 and
    GroupName ({lab_reasons.reason_code}) <=799
    Then "700 - 799"
    Else If GroupName ({lab_reasons.reason_code}) >=800 and
    GroupName ({lab_reasons.reason_code}) <=899
    Then "800 - 899"
    Else If GroupName ({lab_reasons.reason_code}) >= 900 and
    GroupName ({lab_reasons.reason_code}) <=999
    Then "900 - 999";
    I think I am doing it incorrectly. Could you please put some light on this.
    Regards
    jehanzeb

  • For the mid month new joiner the annual Conveyance exemption is coming incorrectly

    Dear All,
    For one of our client, we have have faced a uniqe issue.
    If any employee join in the mid of the month, his prorated conveyance amount ( wage type 2020) is coming correctly. Suppose an employee joined at 16th of the month, system is calculating his conveyance for that month as INR 400 and which is correct.
    However in his tax calculation for that particular month, system is taking INR 400*(rest of the month of the FY) in the wage type /4E3. which is incorrect. Suppose he joined in 16th April , system is calculating tax exemption 400*12=4800
    Now if we run next month payroll ,  system is caculating the exemption properly. i.e. INR 400 + 800* rest of the month of the FY,
    Please help
    Regards
    Tirtha

    Hi Tirtha,
    system is calculating perfectly.
    first of all system check the no. of present days and accordingly it give the amount in the wage type /3C3 conveyance amount monthly and /3C4 will give Conveyance monthly exemption and it will multiply with no. of months to the fiscal year end and store in the wage type /4E3.
    for example check for PF:
    Every month PF amount store in WT /3F1 and send to /3F5 and this WT multiplied with No. of months and store the Annual amount in wt /3F6.
    Regards,
    Praneeth kumar

  • Previewing Pages document in Preview shows page numbers incorrectly

    Previewing Pages (5.2) document in Preview (7.0) shows page numbers incorrectly. Regardless of starting page number preview shows as Page 1.
    Suggestions appreciated...

    That appears to be YABIP5 (Yet Another Bug In Pages 5].
    Pages .09 documents are fine.
    No prizes however for finding bugs in Pages 5/5.2 it's swarming with them.
    Peter

  • Field should not display in the subtotal row in ALV report after sorting .

    we have a requirement, after sorting and subtotaling, the output in ALV is -
    vbeln        amount1  amount2  amount3
    123           11              12            13
    123           12             13             14
    123           23             25             27 
    133           11              12            13
    133           12             13             14
    133           23             25             27
    Now the customer wants the ALV outpput in this fashion -
    123           11              12            13
    123           12             13             14
                     23             25             27    --->123 (vbeln) should not come in subtotaling row
    133           11              12            13
    133           12             13             14
                      23             25             27--->133(vbeln) should not come in subtotaling row

    Hi,
    if it helps you could create a hierachy. In this way you can define the field catalog for the lines and for the subtotal columns. The only thing is that you would always show the subtotal rows.
    You have references of hierachy alvs in
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c060fcb4-2c62-2b10-d2b2-f32407a5cc6f
    ALV Hierarchy
    alv hierarchy
    In this case it also sorts
    Sorting for ALV hierarchy
    I hope it helps.
    Edited by: Oscar Pecharroman on Aug 2, 2010 1:13 PM

  • Office 2013 - Incorrect Icons In Taskbar When Apps Running

    Hi,
    I have a a strange issue relating to Office 2013 (all apps in suite) in our school based Windows 7 domain environment.
    When students login and run any app from the office suite they launch correctly and are able to be used.  However the icon that is displayed in the task bar for say, Word, is not that of Word but is the icon for Database Compare 2013.  Powerpoint
    as another example always displays the Publisher icon.  If you right click the icon the options available also refer to the incorrect app, so instead of an option to bring the Powerpoint app to the forefront it says Publisher.
    The incorrect icon is always the same one for each app whenever launched and is the same for all users.
    We have updated Windows and the Office to the latest patches.  Possibly worth noting that we are running this config on Apple iMacs using bootcamped Windows 7 but I don't personally believe this has any bearing as it's only Office related.I have search
    for instances of this issue and see there is a hotfix for incorrect icons when in a remote session rather than physically logged onto a machine.  I also see references to deleting the icon cache for the user but local user profiles are scrapped on the
    machines here when the student logs off.
    Any help or pointers are greatly appreciated.
    Kind Regards
    Radar.

    I've reviewed screenshot from you initial post on Answer forum.
    http://answers.microsoft.com/en-us/office/forum/office_2013_release-office_install/office-2013-incorrect-icons-in-taskbar-when-apps/ef99ce77-1e88-44c5-8214-c6c69837a9ae
    Since the icon shows fine in local but only incorrect through RDP session, I am thinking this might not be the promblem of Office application self. RDP session might not load the correct icon for Office duo to the file permission or wrong path.
    Better to post your question to forum for Remote Desktop Services (Terminal Services)
    http://social.technet.microsoft.com/Forums/windowsserver/en-us/home?forum=winserverTS
    Thanks for your understanding.
    Tony Chen
    TechNet Community Support

  • My iCloud account name was inputted incorrectly when my iPhone was set up. I made a new iCloud account but my phone still automatically loads the old and unusable iCloud account. How can I update my phone to load the new and correct account?

    My iCloud account name was inputted incorrectly during initial phone set up. I created another iCloud account name but it is still the old and wrong iCloud account that automatically loads whenever I access the iCloud tab on my phone. How do I replace it my new and correct account name?

    She won't after the change.
    Note you can use the same Apple ID in
    Settings > iTunes & App Store > Apple ID: > here to share purchased music, apps and books.
    Other than that each of you should use your own Apple ID for iMessage, FaceTime, iCloud, Game Center, etc.

  • IMAGES - In a search of me, images of me are incorrect. Can they be removed? Or just show photos that actually are me or from my website.

    When I am in Mozilla Foxfire and do a search, I get transferred to Yahoo. Then I do a search for myself to see what comes up. Where it says "images" there are images of me that are incorrect. How do I get rid of these images? I would like to have actual photos of me, which are on web sites. Or photos from my own web site.

    Yahoo's search results actually are sourced from Bing. If you go to Bing search directly and run your search there, you can provide Feedback on the results.
    * General search page: http://www.bing.com/search - after getting your results, scroll to the bottom of the page to find the Feedback link
    * Image search page: http://www.bing.com/images/search - after generating your results, check for a button attached to the lower right of the window frame

  • ITunes no longer works on my Windows VISTA system.  Get error msg saying C runtime library incorrectly... Error 7, Windows error 1114..

    iTunes no longer works on my Windows VISTA system.  Get error msg saying an application is attempting to access C runtime library incorrectly... Error 7, Windows error 1114.  Same msg, or one that says unable to install, when trying to update or reinstall iTunes.  iTunes worked well up until about a month ago when this error msg starting appearing.

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

Maybe you are looking for