Showing  running totals on AR statatement Report

Hi All I need assistance in populating the Running totals on AR statement Report  , I am trying to calculate the running total on the RDF using the (sum Over Partition ) and Not on the RTF template please assist .
here is my query below :
select customers.customer_name,
  detail.customer_id,
  detail.customer_site_use_id,
:CP_ACC_NAME,
:CP_ACC_NUM,
:CP_BRNCH_NAME,
:CP_COL_EMAIL,
:CP_COL_PHONE,
:CP_BRANCH_NR,
decode(  (select meaning
from ar_lookups
where lookup_type = 'INV/CM/ADJ' and lookup_code =  detail.class), 'Payment', apply_date, trx.trx_date)  TRX_DATE,
trx.INVOICE_CURRENCY_CODE,
trx.INVOICE_CURRENCY_CODE INVOICE_CURRENCY_CODE_BAL,
NVL(trx.term_due_date,trx.TRX_DATE)  term_due_date,
detail.customer_id cst_id,
  detail.customer_site_use_id cst_site_id,
  detail.customer_trx_id,
  detail.trx_number,
   (select meaning
from ar_lookups
where lookup_type = 'INV/CM/ADJ' and lookup_code =  detail.class) class,
  detail.amount_full_original,
  detail.end_bal * -1 , (detail.end_bal + detail.amount_full_original)* -1  closing_balance ,
detail.amount_full_original -  detail.the_order * -1  closing_bal,
  (detail.amount_full_original - detail.running_total) running_total ,
  detail.running_tot ,
  customers.customer_name address1,
  customers.address1 address2,
  customers.address2 address3,
  customers.address3 address4,
  customers.city||' '||customers.state address5,
  customers.country||' '||customers.postal_code address6,
  addr.address1 rm_address1,
  addr.address2 rm_address2,
  addr.address3 rm_address3,
  addr.address4 rm_address4,
  addr.address5 rm_address4,
   :p_as_of_date_from date_from,
   to_char(to_date(:p_as_of_date_to,'DD-MON-YYYY'),'DD-Mon-YYYY') date_to,
  addr.org_id rm_org_id,
   rtrim(to_char(sysdate,'DD')||' '||to_char(sysdate,'Month'))||' '||to_char(sysdate, 'YYYY') curr_date
from (select customer_id, CUSTOMER_SITE_USE_ID, trx.CUSTOMER_TRX_ID,trx.TRX_NUMBER, null apply_date,ps.class,ps.AMOUNT_DUE_ORIGINAL amount_full_original, the_trx.end_bal,the_trx.running_total , the_trx.running_tot , 1 the_order
select customer_trx_id, sum(acctd_end_bal) end_bal  , running_total  ,  running_tot
SELECT ps.customer_trx_id ,
   sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
   NULL,to_date(:p_as_of_date_from))
  * ps.amount_due_remaining) start_bal,
   sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
   NULL,to_date(:p_as_of_date_to))
  * ps.amount_due_remaining) end_bal,
   sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
   NULL,to_date(:p_as_of_date_from))
  * ps.acctd_amount_due_remaining) acctd_start_bal,
   sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
   NULL,to_date(:p_as_of_date_to))
  * ps.acctd_amount_due_remaining) acctd_end_bal ,
   (sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
   NULL,to_date(:p_as_of_date_from))
  * ps.amount_due_remaining) + sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
   NULL,to_date(:p_as_of_date_to))
  * ps.acctd_amount_due_remaining) ) running_total ,  
   sum((sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
   NULL,to_date(:p_as_of_date_from))
  * ps.amount_due_remaining) + sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
   NULL,to_date(:p_as_of_date_to))
  * ps.acctd_amount_due_remaining) )) over (partition by ps.customer_trx_id  order by ps.customer_trx_id)running_tot
   FROM ar_payment_schedules_all ps
   WHERE ps.payment_schedule_id+0 > 0
   --JF2 AND ps.gl_date_closed >= to_date(:p_as_of_date_from)
   AND  ps.class IN ( 'CB', 'CM','DEP','DM','GUAR','INV')
   AND  ps.gl_date  <= to_date(:p_as_of_date_to)
   and org_id = nvl(:P_ORG_ID,org_id)--1246
   --and customer_id = :p_customer_id --1075
   --and CUSTOMER_SITE_USE_ID = :p_customer_site_id --1066
   --and customer_trx_id = 66291
   --'|| l_ps_org_where ||'
   GROUP BY ps.customer_trx_id ,ps.acctd_amount_due_remaining , ps.gl_date,ps.gl_date_closed ,ps.class , rownum 
  ps.customer_trx_id ,
   sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
  ra.gl_date,to_date(:p_as_of_date_from))
  * ( ra.amount_applied  + NVL(ra.earned_discount_taken,0)
   + NVL(ra.unearned_discount_taken,0))) start_bal,
   sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
  ra.gl_date,to_date(:p_as_of_date_to))
  * ( ra.amount_applied  + NVL(ra.earned_discount_taken,0)
   + NVL(ra.unearned_discount_taken

Hi
Yes i would like more help as i have never used group by roll up before
SELECT p.employee_number,
p.full_name employee_name,
DECODE (p.sex, 'M', 'Male', 'F', 'Female') gender,
(DECODE (p.per_information4,
'01', 'Indian',
'02', 'African',
'03', 'Coloured',
'04', 'White')) race,
p.original_date_of_hire,
a.effective_start_date startdate_current_position,
RTRIM (SUBSTR (ps.NAME, 1, INSTR (ps.NAME, ';')), ';') current_position,
ho.NAME current_organization,
xx_return_company_name(a.person_id, a.effective_start_date) current_company,
RTRIM (SUBSTR (ps1.NAME, 1, INSTR (ps1.NAME, ';')),';') previous_position,
ho1.NAME previous_organization,
xx_return_company_name(a1.person_id, a1.effective_start_date) previous_company,
a1.effective_start_date startdate_prev_position
FROM per_assignments_v2 a,
per_assignments_v2 a1,
per_all_people_f p,
per_all_positions ps,
per_all_positions ps1,
hr_all_organization_units_tl ho,
hr_all_organization_units_tl ho1
WHERE a1.person_id = a.person_id
AND NVL (a1.position_id, 9) <> a.position_id
AND a1.effective_end_date = a.effective_start_date - 1
AND p.person_id = a.person_id
and ho.ORGANIZATION_ID=ps.ORGANIZATION_ID
and ho1.ORGANIZATION_ID=a1.ORGANIZATION_ID
AND a.effective_start_date BETWEEN p.effective_start_date AND p.effective_end_date
AND a.position_id = ps.position_id
and p.EMPLOYEE_NUMBER not in ('1','2','3')
AND a1.position_id = ps1.position_id(+)
order by p.full_name

Similar Messages

  • Sub-Report Running Total

    Post Author: Set_Shot_Dave
    CA Forum: General
    Hello All,
    Let me set up my problem first.
    I have a running total from a subreport and a running total from my main report.
    I shared my running total from both reports ( it didn't work when I did or didn't).
    when I do my calculation I get a boolean true as my answer.
    By the way my running total from my main report is controled by a formula.
    In subreport I did the following;
    Called the formula share1
    shared numbervar Cong1;
    cong1 = sub-report-running total
    in main report i did the follwing
    called the formula share2
    shared numbervar Cong2;
    Cong2 = main-report-running total
    Still in main report
    I create a a field called Calcuation
    shared numbervar Cong1
    shared numbervar Cong2
    numbervar calculation
    calculation = Cong1 / Cong2
    I get a boolean True

    Post Author: Set_Shot_Dave
    CA Forum: General
    I brought in the shared variable into the report on its own.
    No calculation just a formula field as followed
    @calculation
    shared numbervar share1;
    numbervar calculation;
    calculation:= share1
    I get  0.00
    The fields are in the report footer of the main report and report footer of the sub-report is there a problem with this
    the

  • Running total / Summary - 3 groups

    Dear All,
    I am facing an problem in Summary / Running Total in my crystal  Report. I have 3 groups as under :
    1) Document Series
    2) Territory
    3) Transaction Details which includes Document Total
    Now Example my document series is Projects and Territory is Japan and India and in Transaction Details which is document total has values of 100, 200, 300,500 for Japan and 300,400 for India
    Now I am not able to bring a summary / running total of Japan which should be 1100 and for India 700 respectively.
    I want summary for Document Series Also means for Projects it should show the total of 1100 + 700 = 1800
    and a grand total of 1800 if its only projects series and if other series it should show projects + handling series.
    Pleas help as I have tried but not been successful.
    regards,
    kamlesh

    for Territory Running total
    1. Field to summarize : documentTotal
    2. Evaluate : for each record
    3. Reset: on change of field -> Territory
    Place it in Territory Group footer
    for Document Series Total
    1. Field to summarize : documentTotal
    2. Evaluate : for each record
    3. Reset: documentseries
    Place it in Document Series group Footer
    for Grand Total
    1. Field to summarize : documentTotal
    2. Evaluate : for each record
    3. Reset: never
    Place it in Report Footer
    HTH,
    Jyothi

  • Display Subreport Totals in the Main Report

    I am using CF10 Report Builder. I have a main report that show counts/amounts by award type for admitted and deposited students. I have a sub report that shows counts/amounts by award type and level for current students who have registered and those who have not yet registered. I need to show the totals of current students by level and weather they have registered or not.
    I tried adding a sub report to show the totals but the sub report does not show up on the main report. Is there a way to do this that I am missing?

    I created the sub-report because the award information is kept in separate
    tables for incoming and returning students. I will work on combining the
    the two.
    Thanks
        Bonni
    Bonni Harris
    Database Analyst
    Eureka College
    300 E. College Avenue
    Eureka, IL 61530-1500
    309-467-6467
    On Tue, Apr 28, 2015 at 12:25 PM, EddieLotter <[email protected]>

  • Running Total in QLD

    Hi,
    Is there a way in QLD can have a running total like the Crystal Report capabilities? Is this possible in the Repetative Area1.
    Example :
    DocTotal Drawsum Result
    500000   200000     300000
    300000   100000     200000
    200000    200000     0
    The purpose of this is for Cash Advance Monitoring from AP Downpayment Invoice.
    Is this possible by running difference / Balance ?
    Thank you very much.
    Regards,
    clint

    Hi Suda,
    this is the data for you to refer :
    CREATE TABLE (
       INT,
       DATETIME,
       NVARCHAR(100),
       NUMERIC(15,2),
       NUMERIC(15,2),
       INT,
       NUMERIC(15,2),
       NUMERIC(15,2),
       NUMERIC(15,2),
       NUMERIC(15,2)
    GO
    /* Data for the `Query_Result` table  (Records 1 - 8) */
    INSERT INTO (, , , , , , , , , )
    VALUES (1575, '20080110', N'SAADA PASIGAN', N'0', N'165308.83', 135, N'165308.83', N'500000', N'334691.17', N'334691.17')
    GO
    INSERT INTO (, , , , , , , , , )
    VALUES (1592, '20080111', N'SAADA PASIGAN', N'0', N'79563.6', 135, N'79563.6', N'500000', N'420436.4', N'420436.4')
    GO
    INSERT INTO (, , , , , , , , , )
    VALUES (1599, '20080111', N'SAADA PASIGAN', N'0', N'53102.95', 135, N'53102.95', N'500000', N'446897.05', N'446897.05')
    GO
    INSERT INTO (, , , , , , , , , )
    VALUES (1604, '20080111', N'SAADA PASIGAN', N'0', N'38415.6', 135, N'38415.6', N'500000', N'461584.4', N'461584.4')
    GO
    It compute for the difference of the DocTotal1 and Drawsum, that is correct but I want to have a running diffrence betwenn MIN(Drawsum) only.
    Example from the above data :
    The total Cash Advance is 500000 only. The Drawsum will deduct the 500000 until it become zero. Refer Below :
    Doctotal  DrawSum   The Remaining Total of 500000
    500000   165308.83   334691.17
    the remaining amt shall be carry on which is the 334691.17 and not the 500000.
    DocTotal       DrawSum    The Remaining Total of 500000
    334691.17     79563.6       255127.57
    255127.57     53102.95     202024.62
    202024.62     38415.6       163609.2
    and so onn...
    Hope that you got me.
    Thank you.
    Clint

  • Order top down for a running total

    HI Is it possible to do this. I have a running total for the amt column of the row. There is one group, the transaction code. is it possible to order the data according to the amount column from high to low?

    hi Paul,
    a group cannot unfortunately be sorted on anything that is considered whileprintingrecords...e.g. running totals, shared vars.
    however, if this is a requirement then you can pass the sort criteria to a subreport and then use the subreport to display your data. the subreport is then sorted using this criteria (rolled up in a string running total) and the main report is suppressed.
    as an example, have a look at the attachment...extract the contents and change the .txt extension to .rpt.  there are some instructions on the report as to how to use the above technique.
    your other choice is to create the report off of a Command object and create the running total in the command object.
    SQL Expressions can sometimes be used (depending on your database) to bring in RT data but require a Select statement inside the expression  which is unfortunately not supported. so a Command would be recommended should you wish to do this with SQL.
    cheers,
    jamie

  • Need to sum hh:mm:ss in crystal report using Running Total Fields

    Hello,
    I am new to .Net and crystal reports so please go easy on me.
    I am trying to develop a crystal report using Visual Basic .NET. I have a column which displays the "Inbound Time" in "hh:mm:ss" format. I have to sum the total inbound time and display it.
    I tried using the Running Total and i am not successful.
    Here is the code which I am using in the Running total
    WhilePrintingRecords;
    if isNumeric({Report3;1.TotalInboundTime}) then
    {Report3;1.TotalInboundTime}
    else
    CStr ({Report3;1.TotalInboundTime});
    NumberVar array test2 := [ToNumber(left(CStr({Report3;1.TotalInboundTime}),2)),ToNumber(mid(Cstr({Report3;1.TotalInboundTime}),4,2)),ToNumber(right(Cstr({Report3;1.TotalInboundTime}),2))];
    StringVar test1 := CStr( (ToNumber(test2[1])3600)+(ToNumber(test2[2])60)+(ToNumber(test2[3])));
    InboundTime is the time field which is in "hh:mm:ss"  format.

    Hello Bharathi,
    There are a couple of KBs about this. I haven't tested them myself, but you could give them a try:
    [How sum multiple time fields in Crystal Reports|http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2008378]
    [Creating a running total to show the difference between two datetime fields |http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010261]
    [Totalling time values that are stored as numbers in the database|http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2005576]
    Cheers,
    Fritz

  • Running Total Issue or Possibly Formula Issue in Crystal Reports 9

    Post Author: Jeffs23
    CA Forum: Formula
    My issue involves two formula's - @TotalTime and @Converted Time and a Running Total (RTotal0).
    @TotalTime{Data.ApptTime}/60@Converted Timenumbervar x := {#RTotal0};totext(truncate(x),0,"")" Hrs "totext(remainder(x,truncate(x))*60,0,"") + " Mins"Running Total (RTotal0)
    Field to Summarize - @TotalTime
    Type of Summary - sum
    Under Evaluate Section:
    "Use a Formula":
    onfirstrecord or
    {Data.ResourceStart} <> previous({Data.ResourceStart}) or
    {Data.Resource} <> previous({Data.Resource})
    ) and
    minimum({Data.ApptKind},{Data.ResourceStart}) = 1 AND
    maximum({Data.Column},{Data.ResourceStart}) >= '1'
    Reset on change of field {Data.Resource}
    A little background:My report deals with a Doctors schedule. In the doctors schedule, a appointment is booked and is by default placed into Column 1. It always defaults to Column 1. If the provider elects to double book their time and schedule another patient at the exact same time, the second appointment hits column 2. It expands in essence. It is possible to have up to 4 appointments in one time slot. This is why we wait forever at the Doctors office - appointments get overbooked because patients cancel or no show frequently and the provider would rather have the patients wait then risk no appointment at all. My Client wants the "TOTAL TIME" a provider was "scheduled" to see patients, not the time they actually saw the patients. So if the Provider was scheduled to see patients from 8 am to noon and had patients doublebooked for every time slot, I only want to report the overall time he saw patients regardless of the doublebooking, triplebooking or quadruplebooking. So the total time for my example should be 4 hours not 8 hours. The good news is this is painfully close to being correct! What is currently happening, is if the schedule contains more than 1 facility the time calculates wrong.  I think my issue may be in the running Total but not 100% sure. I need it to calculate time on each facility - {Data.Facility}.

    Post Author: Jeffs23
    CA Forum: Formula
    I had some minor issues with my formulas and Running Total so I modified them alittle:
    @TotalTime
    If {Data.ApptTime} = 0 then    0else    {Data.ApptTime}
    @Converted Time
    If {#RTotal0} = 0 then    "--"else    ToText(Truncate({#RTotal0}/60),0,"") + " Hour(s), " + ToText(Remainder({#RTotal0},60),0,"") + " Min(s)"
    My running total stayed the same.......
    Field to Summarize - @TotalTime Type of Summary - sum Under Evaluate Section: "Use a Formula":(onfirstrecord or{Data.ResourceStart} <> previous({Data.ResourceStart}) or{Data.Resource} <> previous({Data.Resource}) ) andminimum({Data.ApptKind},{Data.ResourceStart}) = 1 AND maximum({Data.Column},{Data.ResourceStart}) >= '1' Reset on change of field {Data.Resource}
    Some fake sample data:
    Resource = Francis, William MD
    Facility 1: River Oaks Main Clinic
    Facility 2: Western Medical Hospital
    Date of Service = 10/25/2007
    From 7:15 am to 11:45 am, Patients were treated at Facility 1: River Oaks Main Clinic *** (total time = 4 hours 30 min)
    From 12:15 pm to 1:00 pm, Patients were treated at Facility 2: Western Medical Hospital *** (total time = 45 min)
    From 1:00 pm to 3:15 pm, Patients were treated at Facility 1: River Oaks Main Clinic *** (total time = 2 Hours 15 min)
    The report should tell me Total time at River Oaks Main Clinic = 6 Hours 45 min and 45 min for Western Medical Hospital. What it currently is doing, is reporting the 6 Hours 45 min on the River Oaks Main Clinic and 7 Hours 30 min on the Western Medical Hospital. The time for this facility should be 45 minutes, yet its taking the full provider time and throwing it into this second facility. I am assuming its because the Running total tells it "Reset on change of field {Data.Resource}". Somehow, I need it to evaluate on both the Resource and the Facility. Any suggestions?

  • 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.

  • Crystal report running total balance

    Hi guys, please help me.
    im creating a report using crystal report that display running balance from subreport.
    i do have subreport and add it to main report but i need it real time changing.
    for example
    TRANSACTION TYPE                    QTY_IN               QTY_OUT          RUNNING BALANCE
    RECEIVED                                        1                         0                         1
    RECEIVED                                        2                         0                         3
    SHIP OUT                                         0                          1                         2
    SHIP OUT                                         0                          1                         1
    RECEIVED                                        1                         0                          2
    diagram shows the needed output of the report. please help. thanks

    hi sir abhilash, i know you know how to fix this, maybe i need to provide some more information about the report: here what i did:
    created formula @QTY_IN where code is:
                                  if {ITRN.TRANTYPE} = 'DP' then
                                      {ITRN.QTY}
                                  else
                                  if{ITRN.TRANTYPE}='AJ' then
                                 (if {ITRN.QTY} >=0 then {ITRN.QTY}) else
                                  0
    create formula @QTY_OUT
                                  if{ITRN.TRANTYPE}='AJ' then
                                 (if {ITRN.QTY} >=0 then 0 else
                               {ITRN.QTY}) else
                                  if{ITRN.TRANTYPE}='WD' then
                            {ITRN.QTY}
                             else 0
    create running total fields for @QTY_IN And @QTY_OUT
                             total_qty_in and total_qty_out
                             sum the fields and resets every change of group.
    create a formula(running) based on your suggetion
    create running_total_reset code is
                                  WhilePrintingRecords;
                                  numbervar rt := 0;
    paste it to group header.
    the output is
                                      in               out             running
    shipment              0                -4               146116
    shipment             0                 -1               146117
    shipment               0               -4               146116
    but it should be
                                      in               out                            running
    shipment              0                -4    (-146118)           146114
    shipment             0                 -1    (-146114)           146113
    shipment               0               -4     (-146113)          146109
    so on so forth.
    we can do this sir. thanks ^__^.
    really appreciate your help.

  • 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.

  • 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

  • Item Transaction History Report - Calculation for creating 'Running Total'

    Hello
    Using Oracle Discoverer, we have written a report that pulls back all Inventory Transactions (by item number). This report lists both transactions IN (e.g. receipts into the store) and OUT (e.g. issues out from the store).
    Our customer would like an additional column, to represent 'Running Total', to be added to the report. This column needs to capture the running 'On Hand Quantity' for the associated Item, as each transaction (both transactions IN and OUT of store) is displayed.
    For example, if the initial/first transaction for an item was a Receipt of 500, then this column (on the first line) should display 500. If the second transaction for the item was an issue of 15, then this column (on the second line) should display 485. If the third transaction was for an issue of 50, then this column (on the third line) should display 435. If the fourth transaction was for a receipt of 20, then this column (on the fourth line) should display 455 etc etc
    I'm not sure how I'd write a calculation to cater for this (within discoverer) - do you know if this is achievable? Any help would be much appreciated. This would be easy enough to do in Excel, but I'm a bit of a novice when it comes to discoverer(!)
    Many thanks
    Ross

    Hi,
    You can generally do this type of calculation using analytic functions. You would partition by the item number and order by the transaction date in the analytic function. You can use SUM function (with an order by) to get a running total of a column in the report. You can SUM a calculation containing a CASE statement which changes the OUT transactions to a negative number. The SUM function will start at zero, so you then can use FIRST_VALUE function to get the first value for the item which you could then add to the totals.
    Rod West

  • 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.

  • How to show a Page Total in a Main Report that is calculated in a SubReport

    Hi,
    I have a Main Report and a SubReport with the detail.
    The Report has several pages. I want to show a Page Total in each Page, retrieving data that is in the subreport (Detail).
    I tried to use a shared variable, but the problem is that the formula fields are assigned at the end of the subreport, so I can't pass the value back (to the main report) until the last record of the subreport is printed.
    I also can't show the Page Total at the subreport, because I have a particular format that I need to respect and only can be printed from the Main Report.
    Is any way to do this ? At this moment, with the shared variables I'm getting 0 until the last record is printed.
    Also, I can calculate the Page Total from outside Crystal Reports, do to there some fields that can grow, so I can't figure out how many record are going to be printed.
    Thanks in advance!
    Ariel

    hello, this may depend on how the main report was actually paging...
    1) do you have one group per page for example?
    2) is the sub on a group footer level?
    3) does the subreport use a different data set than the main report?
    some suggested workarounds would be to
    a) use a report header cross-tab (identical to the existing crosstab) that creates an array of values that you can access anywhere on the main report
    b) place an identical cross-tab above the existing one, and suppress all of the subreport sections (not the section where the subreport sits) and then bring the value back to the main report
    cheers,
    jamie

Maybe you are looking for

  • Will I loose apps and settings if I move to Family Sharing instead of using one Apple ID?

    I am looking at setting up Family Sharing.  I currently have all of the families devices under my apple ID.  If I create new accounts for each member of the family, will they loose all the apps and data on their devices?

  • I've tried everything someone give me an answer that actually works

    "usb device not recognized try reconnecting the device if windows still does not recognize it replace the device" Ipods are not cheap and i've barely had this thing a few months its the brand new ipod touch gen4 and it worked just a few hours ago i'v

  • Select data from DataBase

    Hi; I try to select data from DataBase, But I get the following error, Could anyone help? thanks. Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver. OracleDriver at java.net.URLClassLoader$1.run(Unknown Source) at java.s

  • Why so long to export?

    My files are taking a very long time to export. Any one got any idea as to why? Is there some way to contact a help desk at Adobe??

  • How to verify lockout treshold and duration set bij local GPO using script

    Hi all, I want to succeed in veryfying the account lockout treshold and duration by checking registry. However this is impossible in server 2012 r2. previously these settings where visible in the registry but now it seems that they are hide in the SA