Running total in report footer returning inaccurate result

Post Author: smarkta
CA Forum: Formula
I am writing a report that contains 3 groups.  I have created running totals for each group that are accurate by selecting the group to evaluate and reset on.  now I need to basically sum the results of the all the group running totals but have had no success.  any tips on how to do this would be greatly appreciated.
Thanks

Post Author: Charliy
CA Forum: Formula
Were you doing a Distinct Count?  Did you have a formula on the Running Total?  What is there about the Group Totals that make them different than the final total.

Similar Messages

  • Associate a record name with a running total in Report Footer

    Please Help!
    I have a report that returns records for the most recent order recieved by vendor.
    The page header displays Vendor, Contact, Order #, and date
    I did a group by Vendor
    I used a running total on the order date
    with a summary of minimum
    that evaluates on change of group
    Reset never
    This returns the last order date for the vendor with the oldest order
    How can I get the vendors name that is associated with the oldest order date to display in the Rport Footer.

    Please follow the following steps: I tested it and it works.You dont need to use running total.
    1. Add the Vendor,Contact,Order #, Order Date to Details Section (u can delete them if not needed from details section)
    2. Create a Group on Vendor.
    3. Add a Summary  i.e. Minimum(Order Date)
    4. Copy this summary to Group Header if you want or just let it be in the Group Footer Section
    5. Add a SubReport in the Report Footer Section.
    6.The Subreport Should be based on the Command like:
    SELECT `Orders`.`Customer ID`, `Orders`.`Order Date`
    FROM   `Orders` `Orders`
    WHERE `Orders`.`Order Date`=
    SELECT MIN(`Orders`.`Order Date`) 
    FROM  `Orders` `Orders`)
    7. Refresh the Report and you will see that Report Footer section displays all the vendors with minimum order date along with their name.
    One more thing to keep in mind is that more than one vendor might have the same minimum order date.

  • RUNNING TOTAL IN REPORTS

    Hi,
    Can any one tell me how to create a running total in Oracle reports. I have two fields pulled in the SQL called CR and DR. I want to do the running total at report level. Here what I want
    CR------DR-------RTOTAL
    20-----10---------10 ( here the RTOTAL Field is (20 - 10) )
    30-----15---------25 ( here the RTOTAL Field is (30 - 15) + 10)
    50-----25---------50 ( here the RTOTAL Field is (50 - 25) + 25)
    75-----35---------90 ( here the RTOTAL Field is (75 - 35) + 50)
    Thanks
    -Feroz

    Hello,
    You can use the following SQL query :
    select cr,dr,cr-dr cr_minus_dr from <table> ...
    and create a Summary Column in the Reports :
    Source : the field cr_minus_dr
    Function : Sum
    Regards

  • Running totals at the footer of the report

    I want to create running totals but print them not in e.g. in a group footer. All totals should be printed at the end of the report. The number of needed running totals is not defined before, it depends on the number of different grouping criterias:
    Example
    Criteria   Amount
    1995      10
    1995       10
    1996       20
    1997       30
    1997       10
    At the end of the report shoul appear the following:
    1995     20
    1996     20
    1997     40
    There could be more criteria in the report (e.g. 1998 or 1999), but it is not defined before I start the report.
    Thank you for your support

    Hi Torsten,
    If you want to create year wise running totals without considering groups, you can create like :
    go in Field ExplorerRunning TotalsRight click and select New
    Give the name as 1995 and select Field to summarize and select Sum as type of summary
    In Evaluate select Formula and give a formula like : Year = 1995
    In Reset do not reset.  You get the value of 1995 year this can be placed at the end of your report.
    You may have to create different funning total for different year.
    Thanks,
    Sastry

  • Report obsolete returns diff results when backups are UNAVAIL vs AVAIL

    Hello from Nova Scotia, Canada:
    I'm wondering if someone out there who lives and breaths rman (10gR2) for a living can shed some light...
    We are finding that report obsolete (as well as delete obsolete) are returning different results depending on if our backups
    are AVAILABLE or UNAVAILABLE.
    In our shop, our backups are changed to UNAVAILABLE because they get moved to a different location later, but delete
    obsolete doesn't seem to work as expected unless the backups are AVAILABLE.
    I am pasting some output below to demonstrate my point. Basically, in the output you are about to see, I'm showing you
    my retention policy and I'm listing the backups that I have (and you can see their status is "A" for available). Then I do a
    'report obsolete' command to show you what is considered obsolete (3 files are - which is what I expected). Then I change
    all my backups to unavailable. Then I list all my backups again and show you that their status has changed to "U" for unavailable.
    Then I do 'report obsolete' again and as you can see, I get different results! Can someone explain this to me?? I have RTFManuals
    and no where does it say that availability is a factor that can impact determining what is obsolete. You also see in the output
    below what version we're using (10.2.0.4.0) and that we are using a recovery catalog.
    If someone would like to see additional information, feel free to ask, I'm more than happy to help you help me.
    I should also mention this is a 2 node rac on linux.
    Many Thanks.
    ========================================================
    $ rman target / catalog rrc/rg@RRC
    Recovery Manager: Release 10.2.0.4.0 - Production on Tue May 11 22:06:21 2010
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database: IPCSD (DBID=1703825384)
    connected to recovery catalog database
    RMAN> show retention policy;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
    RMAN> list backup summary;
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time     #Pieces #Copies Compressed Tag
    64093   B  F  A DISK        05/10/2010 03:06:52 2       1       NO         HOTBKUP201005100300_DB
    64122   B  A  A DISK        05/10/2010 03:08:41 1       1       NO         HOTBKUP201005100300_ARCHLOGS
    64361   B  F  A DISK        05/10/2010 21:56:33 2       1       NO         HOTBKUP201005102149_DB
    64362   B  F  A DISK        05/10/2010 21:56:37 1       1       NO         HOTBKUP201005102149_DB
    64390   B  A  A DISK        05/10/2010 21:58:02 1       1       NO         HOTBKUP201005102149_ARCHLOGS
    64508   B  F  A DISK        05/11/2010 03:07:01 2       1       NO         HOTBKUP201005110300_DB
    64509   B  F  A DISK        05/11/2010 03:07:10 1       1       NO         HOTBKUP201005110300_DB
    64544   B  A  A DISK        05/11/2010 03:07:47 1       1       NO         HOTBKUP201005110300_ARCHLOGS
    RMAN> report obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 1 days
    Report of obsolete backups and copies
    Type                 Key    Completion Time    Filename/Handle
    Backup Set           64093  05/10/2010 03:06:51
      Backup Piece       64097  05/10/2010 03:06:51 /oracle_admin/rman_backups/201005100300/RMAN_HOTBKUP_IPCSD_201005100300_BS_1349_PC_2_CP_1_DB
    Backup Set           64093  05/10/2010 03:04:01
      Backup Piece       64096  05/10/2010 03:04:01 /oracle_admin/rman_backups/201005100300/RMAN_HOTBKUP_IPCSD_201005100300_BS_1349_PC_1_CP_1_DB
    Backup Set           64122  05/10/2010 03:08:41
      Backup Piece       64125  05/10/2010 03:08:41 /oracle_admin/rman_backups/201005100300/RMAN_HOTBKUP_IPCSD_201005100300_BS_1351_PC_1_CP_1_ARCHLOGS
    RMAN> change backup unavailable;
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005100300/RMAN_HOTBKUP_IPCSD_201005100300_BS_1349_PC_1_CP_1_DB recid=1533 stamp=718599624
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005100300/RMAN_HOTBKUP_IPCSD_201005100300_BS_1349_PC_2_CP_1_DB recid=1534 stamp=718599846
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005100300/RMAN_HOTBKUP_IPCSD_201005100300_BS_1351_PC_1_CP_1_ARCHLOGS recid=1536 stamp=718600043
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1354_PC_1_CP_1_DB recid=1539 stamp=718667376
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1354_PC_2_CP_1_DB recid=1540 stamp=718667600
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1355_PC_1_CP_1_DB recid=1541 stamp=718667797
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1356_PC_1_CP_1_ARCHLOGS recid=1542 stamp=718667821
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005110300/RMAN_HOTBKUP_IPCSD_201005110300_BS_1357_PC_1_CP_1_DB recid=1543 stamp=718686020
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005110300/RMAN_HOTBKUP_IPCSD_201005110300_BS_1357_PC_2_CP_1_DB recid=1544 stamp=718686253
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005110300/RMAN_HOTBKUP_IPCSD_201005110300_BS_1358_PC_1_CP_1_DB recid=1545 stamp=718686430
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005110300/RMAN_HOTBKUP_IPCSD_201005110300_BS_1359_PC_1_CP_1_ARCHLOGS recid=1546 stamp=718686452
    Changed 11 objects to UNAVAILABLE status
    RMAN> list backup summary;
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time     #Pieces #Copies Compressed Tag
    64093   B  F  U DISK        05/10/2010 03:06:52 2       1       NO         HOTBKUP201005100300_DB
    64122   B  A  U DISK        05/10/2010 03:08:41 1       1       NO         HOTBKUP201005100300_ARCHLOGS
    64361   B  F  U DISK        05/10/2010 21:56:33 2       1       NO         HOTBKUP201005102149_DB
    64362   B  F  U DISK        05/10/2010 21:56:37 1       1       NO         HOTBKUP201005102149_DB
    64390   B  A  U DISK        05/10/2010 21:58:02 1       1       NO         HOTBKUP201005102149_ARCHLOGS
    64508   B  F  U DISK        05/11/2010 03:07:01 2       1       NO         HOTBKUP201005110300_DB
    64509   B  F  U DISK        05/11/2010 03:07:10 1       1       NO         HOTBKUP201005110300_DB
    64544   B  A  U DISK        05/11/2010 03:07:47 1       1       NO         HOTBKUP201005110300_ARCHLOGS
    RMAN> report obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 1 days
    Report of obsolete backups and copies
    Type                 Key    Completion Time    Filename/Handle
    Backup Set           64362  05/10/2010 21:56:37
      Backup Piece       64366  05/10/2010 21:56:37 /oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1355_PC_1_CP_1_DB
    RMAN>I just want to point out that the one obsolete file just contains a Control File and a SPFILE, as shown below:
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    64362   Full    17.64M     DISK        00:00:02     05/10/2010 21:56:37
            BP Key: 64366   Status: UNAVAILABLE  Compressed: NO  Tag: HOTBKUP201005102149_DB
            Piece Name: /oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1355_PC_1_CP_1_DB
      Control File Included: Ckp SCN: 15213106404   Ckp time: 05/10/2010 21:56:35
      SPFILE Included: Modification time: 05/09/2010 18:00:42---------------
    **** END *****
    Edited by: user478914 on May 12, 2010 3:03 AM
    Edited by: user478914 on May 12, 2010 3:24 AM

    Thanks for reading my post. Here is the result of doing the crosscheck command.
    Problem still exists. Someone correct me if I'm wrong but I believe crosscheck does
    nothing because all my backups are listed as unavailable, so there is nothing for it to do.
    Any other thoughts or suggestions?
    This problem is driving me bonkers. I have read the Backup and Recovery Basic Guide and Advanced Guide,
    googled the web, searched OTN, searched Metalink and I can't find anything on the topic of backup
    piece availability affecting obsolescence. Many thanks.
    RMAN> list backup summary;
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time     #Pieces #Copies Compressed Tag
    64361   B  F  U DISK        05/10/2010 21:56:33 2       1       NO         HOTBKUP201005102149_DB
    64362   B  F  U DISK        05/10/2010 21:56:37 1       1       NO         HOTBKUP201005102149_DB
    64390   B  A  U DISK        05/10/2010 21:58:02 1       1       NO         HOTBKUP201005102149_ARCHLOGS
    64508   B  F  U DISK        05/11/2010 03:07:01 2       1       NO         HOTBKUP201005110300_DB
    64509   B  F  U DISK        05/11/2010 03:07:10 1       1       NO         HOTBKUP201005110300_DB
    64544   B  A  U DISK        05/11/2010 03:07:47 1       1       NO         HOTBKUP201005110300_ARCHLOGS
    64761   B  F  U DISK        05/12/2010 03:06:23 2       1       NO         HOTBKUP201005120300_DB
    64762   B  F  U DISK        05/12/2010 03:06:30 1       1       NO         HOTBKUP201005120300_DB
    64792   B  A  U DISK        05/12/2010 03:08:13 1       1       NO         HOTBKUP201005120300_ARCHLOGS
    RMAN> crosscheck backup;
    using channel ORA_DISK_1
    RMAN> report obsolete recovery window of 1 days;
    Report of obsolete backups and copies
    Type                 Key    Completion Time    Filename/Handle
    Backup Set           64362  05/10/2010 21:56:37
      Backup Piece       64366  05/10/2010 21:56:37 /oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1355_PC_1_CP_1_DB
    Backup Set           64509  05/11/2010 03:07:10
      Backup Piece       64520  05/11/2010 03:07:10 /oracle_admin/rman_backups/201005110300/RMAN_HOTBKUP_IPCSD_201005110300_BS_1358_PC_1_CP_1_DB
    RMAN>

  • SNMP POE Consumption returns inaccurate results

    Hello everyone!
    I have posted a similar topic a few months back without getting any replies so im hoping to get someones input this time
    One of our end costumers is trying to poll the Total Power Consumption MIB (OID 1.3.6.1.2.1.105.1.3.1.1.4) using Cisco Works and Cisco NCS from a 2960 switch
    The problem is we notice we are getting inaccurate results, when the values differ greatly between what we see in Cisco Works/NCS and in the output of show power inline from the switch. We are polling and issuing the command at the same time and the results are not even close to each other.
    Im providing screenshots of the results when issueing SNMP WALK and the output of the command show power inline from two switches showing the same
    behavior.
    Have anyone encountered such an issue? Any suggestion on something we might be missing?
    Thanks in advance.
    Daniel.

    I'm not sure it's a bug. I'm monitoring 3750-X's. I guess it could be, but I think it's something to do with the "measured" part of the status. It records this OID as being power used as "measured". If that's the case then it's great because it means it's more accurate and show power inline. Show power inline seems to just add up the allocated power. 
    It might be the OID is more accurate, it would just be nice to get confirmation of that fact.

  • How do I put a running total in a Reports 6i Report?

    I need to write a report which shows a running total at the foot of each page. The report is a series of (potentially) multi-page sections each formatted like this:
    Page 1
    ======
    Tom £100
    Dick £150
    Harry £100
    Sub Total £350
    Page 2
    ======
    Peter £200
    Paul £50
    Mary £100
    Total £700
    Lines are of variable height, so I can't predict how many there'll be on a page.
    The help system just tells me to "use a summary field". Yeah, right. Can anybody give me some more detailed instructions?
    -- Chris Hunt

    Thanks for that.
    I didn't really express the problem as well as I might have done, as the Sub-Total needs to be the sum of all the items on the current page and on all preceeding pages. resetting on page just gives you the total for that page.
    I did find a way to do it. First you set up a summary field in the same group as the data lines, summing the amount and resetting on the parent group. This gives you a running total for each row:
    Page 1
    ======
    Tom £100 £100
    Dick £150 £250
    Harry £100 £350
    Page 2
    ======
    Peter £200 £550
    Paul £50 £600
    Mary £100 £700
    You don't actually output this summary field in the prinout (except when debugging :-) ). Now create a summary field at the foot of the page, or in the margin. Set its value to the Max() of the running total summary, resetting on page. That gives you the amount required, assuming all individual amounts are positive.
    If it's possible to have negative amounts, I expect that using Last() instead of Max() for the page summary would do the trick.

  • Report not showing correct results

    I am new to SSRS.  Using SQL 2008, Visual Studio 2010 shell.
    I have a stored procedure that when I execute it through SSMS, it returns the correct results.  However, when my report runs through SSRS (using the same stored procedure).  I get inconsistent results.
    I've been able to narrow it down to a specific parameter in my report where I pass in Id's.  This particular parameter gets its values from a query and is setup to use multiple values.  I have focused on two ID's which together are giving
    me problems. 
    The IDs are !'" and
    !!T.
    When I ONLY select !'" the report returns the correct results.
    When I ONLY select !!T the report return the correct results.
    When I select !'" and !!T the report only return the results for !!T.
    I have no clue why SSRS doesn't like this.  Any help would be appreciated.
    jhoop

    I created the specific function referenced in your link and it didn't help.
    Function
    CREATE FUNCTION [dbo].[c__SplitValues]
    -- Add the parameters for the function here
    @List nvarchar(2000)
    ,@SplitOn nvarchar(2000)
    RETURNS
    @RtnValue TABLE
    -- Add the column definitions for the TABLE variable here
    Id int identity(1,1)
    ,Value nvarchar(100)
    AS
    BEGIN
    -- Fill the table variable with the rows for your result set
    While(CHARINDEX(@SplitOn, @List) > 0)
    BEGIN
    INSERT INTO @RtnValue (value)
    SELECT
    VALUE = LTRIM(RTRIM(SUBSTRING(@List, 1, CHARINDEX(@SplitOn, @List) - 1)))
    SET @List = SUBSTRING(@List, CHARINDEX(@SplitOn, @List) + LEN(@SplitOn), LEN(@List))
    END
    INSERT INTO @RtnValue (Value)
    SELECT Value = LTRIM(RTRIM(@List))
    RETURN
    END
    The line in my SQL statement where I use this function
    AND TableName.UserId IN (SELECT Value FROM dbo.c__SplitValues(@UserId,','))
    jhoop

  • RUNNING TOTAL

    Hi,
    Can any one tell me how to create a running total in Oracle reports. I have two fields pulled in the SQL called CR and DR. I want to do the running total at report level. Here what I want
    CR------DR-------RTOTAL
    20-----10---------10 ( here the RTOTAL Field is (20 - 10) )
    30-----15---------25 ( here the RTOTAL Field is (30 - 15) + 10)
    50-----25---------50 ( here the RTOTAL Field is (50 - 25) + 25)
    75-----35---------90 ( here the RTOTAL Field is (75 - 35) + 50)
    Thanks
    -Feroz

    Hi Bernd ,
    I tried this and here is the result.
    Query :
    SELECT MAIN_AC_CODE, JV_NO_T, JV_DATE_T, JV_DR_AMT, JV_CR_AMT, SUM(JV_DR_AMT - JV_CR_AMT) OVER ( PARTITION BY MAIN_AC_CODE ORDER BY MAIN_AC_CODE,JV_NO_T) RUNNING_TOTAL
    FROM FIN_JV_T WHERE MAIN_AC_CODE = 1102071001
    ORDER BY MAIN_AC_CODE, JV_NO_T , JV_DATE_T
    output :
    MAIN_AC_CODE     JV_NO     JV_DATE     DR_AMT      CR_AMT     RUNNING_TOTAL
    1102071001      JV1      05-JUL-06 6000      0           -11650
    1102071001      JV1      05-JUL-06 0           17650      -11650
    1102071001      JV13      15-JUL-06 15000      0           12750
    1102071001      JV13      15-JUL-06 30000      0           12750
    1102071001      JV13      15-JUL-06 7000      0           12750
    1102071001      JV13      15-JUL-06 0           30200      12750
    1102071001      JV13      15-JUL-06 1500      0           12750
    1102071001      JV13      15-JUL-06 1100      0           12750
    1102071001      JV14      16-JUL-06 1100      0           16358
    1102071001      JV14      16-JUL-06 2508      0           16358
    1102071001      JV15      16-JUL-06 3609      0           19872
    1102071001      JV15      16-JUL-06 0      95      19872
    1102071001      JV16      16-JUL-06 0      3608      16264
    1102071001      JV19      17-JUL-06      17000 0           -6668
    1102071001      JV19      17-JUL-06 0           22932      -6668
    1102071001      JV2      05-JUL-06      84000      0           18213
    1102071001      JV2      05-JUL-06 0           59119      18213
    1102071001      JV20      17-JUL-06 0           13000      5213
    1102071001      JV21      17-JUL-06 0      4000      1213
    1102071001      JV4      05-JUL-06      28134      0           -31786.57
    1102071001      JV4      05-JUL-06 0           61133.57      -31786.57
    1102071001      JV5      05-JUL-06 0      2970      -34756.57
    1102071001      JV7      05-JUL-06 5500      0           -29256.57
    1102071001      JV8      09-JUL-06 12500      0           -39147.57
    1102071001      JV8      09-JUL-06 0           22391      -39147.57
    1102071001      JV9      12-JUL-06 6740      0           -45107.57
    1102071001      JV9      12-JUL-06 0           12700      -45107.57

  • Design a procedure which returns a result set of a select Query

    Hi...
    Can some one help me out with a brief design or work around for creating a stored procedure which runs a select Query and Returns a result set...
    If not a stored procedure, at least a function which makes the job simple....
    Awaiting help in this regard ........

    Hi...
    I am sorry for providing insufficient Info...
    Actually I am using Oracle 10G DB...
    I have a select Query..
    Since I am a part of team which is building a Complete Data Driven site, Even an SQL Query and a PL/SQL function body was stored in the Table itself to bring in some kind of Dynamism in the site.... But the master table was loaded with a lot of data and hence Now we decided to Store everythin in a generic package..
    I used REF CURSORS to store a result set of a simple SELECT Query.... and declaring it as an out parameter in my Procedure body so that the JAVA team can directly access the Procedure from the JAVA layer....
    Now I want to know can I do anything more efficient to carry out the above operation....

  • Interactive Report only returns data if user login in english

    Hi All.
    I'm working with CRM 7.0
    If i login in English, i can run the report "accounts with open activities" perfectly (and i can get some results with it). If the same user, with the same roles, login in Portuguese, and run the same report, system shows no results.
    Any hint about this issue?
    Thanks in advance
    Inê

    Hi Inês,
    in fact it is difficult to understand the reason for this without screenshots of both EN and PT logon.
    If the texts, which are shown in case of EN logon are all SAP standard texts and in other areas your Portuguese UI is pretty much complete, then I guess these texts are not translated and you should raise a customer message (adding the screen shots mentioned above). However this is of course only valid for SAP standard UI texts - and in addition there might be some specific applications where SAP does not provide translations to PT.
    Best regards,
    Nils Buerckel

  • Getting running total formula result at the beginning of the report

    Hello All,
    I am having an inquiry that if I can get a grand total in the report footer to the report header.
    The grand total is not a direct sum.  I am using three formulas
    the first formula:
    @reset Group Header
    whileprintingrecords;
    numbervar sumpct4;
    if not inrepeatedgroupheader then
    sumpct4 := 0;
    the second formula: Details section
    whileprintingrecords;
    numbervar sumpct4 := sumpct4 + {@Total_Market};   // {@Total_Market}; =  Amount+ Interest
    numbervar grtotal4 := grtotal4 + {@Total_Market};
    Group Footer
    whileprintingrecords;
    numbervar sumpct4;
    Report Footer
    whileprintingrecords;
    numbervar grtotal4;
    All that I need is to show the total which is in the report footer at the top of the page where I am having a summary.
    So, can you please help me.
    Thanks
    Edited by: maas maas on Sep 8, 2010 12:48 PM

    Hello my friend,
    I want this to be controlled in crystal.
    Is there is a way to get the grand total by using multiple formulas or any other way?
    Here is the structure of my report:
    Group Header 1: CCY
    Group Header 2:Type
    @reset Group Header
    whileprintingrecords;
    numbervar sumpct4;
    if not inrepeatedgroupheader then
    sumpct4 := 0;
    Group Header 3A: Deal No
    Group Header 3B: Deal No (subreport to get the {@amount} for each deal)
    I will pass the end_date from the main report to subreport and I will get the sum(amount) for each deal between date (1-1-2008) to end_date. The sum will be as a shared variable to the {@amount} formual in the main report.
    Details:
    Deal No, {@amount}, {@Price}, {@market}, {@Total_Market}
    {@Price}: if {table.price} = 0 then
    100
    else {table.price}
    {@market}: if Type <> "DEP" then
    ({@amount}*{@Price})/100
    else
    {@amount}
    {@Total_Market}:{@market}+ {@Price}
    Running formula to get Total_market: Details section
    whileprintingrecords;
    numbervar sumpct4 := sumpct4 + {@Total_Market};
    numbervar grtotal4 := grtotal4 + {@Total_Market};
    Group Footer 3B: Deal No
    Group Footer 3A: Deal No
    Group Footer 2:Type
    In this group I am placing a running total formula:
    whileprintingrecords;
    numbervar sumpct4;
    Group Footer 1: CCY
    Report Footer:
    @grand_Total
    whileprintingrecords;
    numbervar grtotal4;
    Now, i want this @grand_total formula result to be shown in Group Header 1: CCY.
    I tried to insert a subreport at the beginning which it is a copy of the main report, but I did not get the coorec t result because I am getting the {@amount} from a subreport and in crystal I can't insert a subreport in an existing subreport.

  • Oracle report running total Resseting balance

    Dear All,
    I am developing report on Oracle R12 fixed Assets, I have to calculate the running total for each asset.
    In brief
    Asset 1
    cost Deprciation Adjusted Cost
    50 - 2 48
    48 -5 45
    45 - 4 41
    I achieved that by using
    if :p_val is null then
    :result := nvl(:cost,0)-nvl(:depriciation,0);
    :P_val :='5';
    return :result;
    else
    :result := nvl(:result,0)-nvl(:depriciation,0) ;
    return :result;
    end if;
    working fine
    But problem is when the next asset start on same report
    Asset 2
    cost Deprciation Adjusted Cost
    100 5 36
    it substracts the last total (running total of previous asset with depriciation which was 41 in this example).
    Oracle Champs pl advice me how to solve this.
    I really dont got any idea how to solve this.
    thanks

    Dear,
    Thanks for your reply , in your reply what you said I tried this but in pl/sql I am not actually achieving the result. The balance is not resetting at next group if you give one accurate line it would be really helpfull.
    thanks

  • Oracle report running total Resetting balance on next group

    Dear All,
    I am developing report on Oracle R12 fixed Assets, I have to calculate the running total for each asset.
    In brief
    Asset 1
    cost Deprciation Adjusted Cost
    50 - 2 48
    48 -5 45
    45 - 4 41
    I achieved that by using
    if :p_val is null then
    :result := nvl(:cost,0)-nvl(:depriciation,0);
    :P_val :='5';
    return :result;
    else
    :result := nvl(:result,0)-nvl(:depriciation,0) ;
    return :result;
    end if;
    working fine
    But problem is when the next asset start on same report
    Asset 2
    cost Deprciation Adjusted Cost
    100 5 36
    it substracts the last total (running total of previous asset with depriciation which was 41 in this example).
    Oracle Champs pl advice me how to solve this.
    I really dont got any idea how to solve this.
    thanks

    Dear,
    Thanks for your reply , in your reply what you said I tried this but in pl/sql I am not actually achieving the result. The balance is not resetting at next group if you give one accurate line it would be really helpfull.
    thanks

  • XL Reporter - Cumlative Running Total

    Hi All
    I'm running XL Reporter on SBO and trying to place a excel formula to have a running total against a sales spread sheet, but it isn't working and i wonder if any of you people could help me?
    i'll show what im trying to achieve, Items and Row Total are taken from SBO so id like a column beside Row Total to add the 640
    R
    O      (Column A)                                            (Column B)                        (Column C)
    W    Items                                           Row Total                           Cumlative Total ( What i need)
    1    =ixDimGet("DVD Cases")          =ixGet("640.00")                     640                 +B1
    2    =ixDimGet("Blank DVD")          =ixGet("340.00")                     980                 B2C1
    3    =ixDimGet("Manuals")          =ixGet("795.00")                     1775               B3C2
    4    =ixDimGet("Reg Cards")          =ixGet("1437.33")                    3212.33          B4C3
    The result that returns is just the value of Column B and the row total.  If have tried everything but to no avail.
    Hope this makes sense
    Thanks in Advance.
    Edited by: Philip Eller on May 30, 2008 9:02 AM

    Hi
    If I understood you correctly this is how you do it:
    =IF(D7="Row Total",D8,SUM($D$8:D8))
    I assumed that you will have a column header just above your first value in the expanding rows, so the first value of the running total will be equal to the value of the 1st row in your report. The $ signs will anchor the first value in D8 and the second D8 without the $ signs will expand with your rows.
    Regards
    Daan

Maybe you are looking for

  • IPhoto '08 quiting unexpectedly

    Just upgraded to iLife '08 and iPhoto quits unespectedly when another software becomes activated. If I'm using iPhoto and and activate iTunes iPhoto closes imediately. I just took a trip to Europe and took about 2k photos and while using iLife '06 wa

  • Authorization issue in ESR

    Hi PI experts, All of a sudden the Display/Edit button is disabled in ESR and I am not able to edit any objects (Message Mappings, Service Interfaces and so on). Is this related to authorization? I checked with BASIS guys and they said that they did

  • Problem after installing iTunes 10.3

    After I installed iTunes 10.3 as an update my HDD has seemed considerably slower in general, all applications run slower, even after running Onyx and Disk Utility. Rebooting takes over a minute longer, (I have no network or power issues) . How do I r

  • I lost my iPod. I know it couldn't of gone far but how can I locate it

    I had my iPod touch in the car but I cant find it and I want to know the website on how to locate it

  • Adobe Intractive Forms error

    Dears, I have installed Netweaver 2004s on Windows 2003 server. Now my users are getting error while they are using adobe service of SAP. Error is:    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: ADS Rend