Crystal Report Calculation

Hello,
I am trying to a custom P&L report. The year end part is in a loop as it should add the previous balance to the current balance and display the total just as it looks in the SAP  business one P&L report.
I have this formula below but it does not add up the totals row by row, but adds the same row total together hence not giving the cumulative total.
Local NumberVar result := Count ({JDT1.Debit});
Local NumberVar i := 1;
While i <= result  Do
   Local NumberVar debit := {JDT1.Debit};
   result := i;
   i := i + 1;
{JDT1.Debit} + debit
Help me tweak this.
Edited by: Marco on Dec 16, 2009 12:42 PM

How is they year to end column of the Profit and Loss statement calculated. I am creating a custom Profit and Loss Report using Crystal reports and this column has me buffled.

Similar Messages

  • Crystal reports- Calculation between two reports

    Hi Experts
    I have designed a sales and purchase transaction report using crystal reports and i have designed another report for accounting transactions like Excise Duty payable and receivables, Vat payable and receivables, Expenses(like EB, Maintenance) and so on. Finally I added accounting report as sub-report into First Report.
    My question is, is it possible to made some calculations between sub-report and main report.
    Hope some solutions from you.
    By
    Kala

    Hello,
    right upto the linking is good?
    Right now you have to create a formula (which you might have already done for "Total expenses", you just need to alternate it slightly.
    Example:
    On 2nd report (subreport) You might have a formula like given below.
    Instead of Numbervar CAvg, which is the last shown value in the below formula, you have to make it like Shared Numbervar CAvg.
    Whileprintingrecords;
    Numbervar TJs;
    Numbervar TotalJobs=0;
    Shared Numbervar CAvg;
    Shared Numbervar CAvg=0;
    TotalJobs := DistinctCount({lab_credits.credit_no},{lab_credits.reason_code}); 
    CAvg:= TotalJobs /{@WorkingDays};
    TJs:=TJs + CAvg;
    CAvg
    Do your calculation above.
    Now in the main report you will create another formula which will look like below.
    Whileprintingrecords;
    Shared Numbervar CAvg;
    Numbervar TAvg:=fieldname;
    Numbervar TotalBoth:= Shared Numbervar CAvg+ Numbervar TAvg;
    TotalBoth;
    You will have a reset formula which will be placed ontop of the report header , group header if you are using grouping like this
    Whileprintingrecords;
    Shared Numbervar CAvg:=0;
    SHared Numbervar TAvg:=0;
    bearing in mind that we do not have to declare CAvg field here as it is being shared.
    Hope this helps
    Regards
    Jehanzeb

  • Cross Tab calculation in Individual column-Crystal Report

    Hi experts
    I am preparing a report in Crystal report 2008. Report template is Cross Tab.
    Structure of report is
    Cardname-Row, DocType-Columnd, DocTotal-Summarize field.
    Result of this report is
                          IN(Invoice)             RC(Incoming Payment)      Total
    XYZ                    1000                  -500                                 500
    ABC                    2000                 -1000                               1000
    Total                   3000                  -1500                               1500
    I have inserted a column using calculated member. I want to Calculate in that column with BP opening balance
    eg. OCRD.Balance-DocTotal when I do this it give first value to all column rows, i.e (consider XYZ opng Balance is 1500, I have calculate month opening balance which meance Current Opening Balance-Current month Order bookings=Month opening balance)
              IN(Invoice)             RC(Inc Pmt)      Total   Opng Balance
    XYZ       1000                  -500                  500     500
    ABC      2000                 -1000                1000     500
    Total      3000                  -1500                1500    500
    I want to calculate Opng Balance for each CardName but it gives first Customers opning balance to all customers.
    Give me solution.
    Thanks in Advance

    Hi
    I think you can do calculation based on the formula .On the cross tab ,there is :
    X -selection - row
    Y - selection -column
    Z - summary
    You can also use formula on cross tab to do that function  and insert into summary section .
    Hope this helps .
    Bishal

  • Calculating Average Days in Crystal Reports using a Visual FoxPro driver

    Post Author: sher
    CA Forum: Crystal Reports
    I use the following code in a crystal XI report to calculate average days between two dates using the sql server driver.  It worked fine.  I used the same code in a crystal XI program using a visual FoxPro driver.  It does not work.  Can someone help me with code needed to calculate average days using a visual foxpro driver?
    cast ( Avg( DateDiff( DD, CREDENTIALING.APPLICATION_RECEIVED, ENTITYASSIGNMENTS.STATUSASOF )) As int ) AS AvgDaysFromReceipt,
    cast ( Sum( DateDiff( DD,CREDENTIALING.APPLICATION_RECEIVED, ENTITYASSIGNMENTS.STATUSASOF)) As int )  AS TotDaysFromReceipt

    Not sure if this is any simpler but you could save this as a custom function, that way you will have to modify it once a year for the holidays.
    numbervar days;
    datevar date1 := minimum({?My Parameter});
    datevar date2 := maximum({?My Parameter});
    days := DateDiff ("d", date1, date2) -
    DateDiff ("ww", date1, date2, crSaturday) -
    DateDiff ("ww", date1, date2, crSunday);    // this will give you the number of business days
                                                        // (excluding Saturdays and Sundays) for a given date range.
    // then, for each holiday, you can enter lines like this
    if date(2008,01,01) in {?My Parameter} then days := days - 1;
    // The final tally of DAYS should give you the total business days in a date range.
    totext(days,0);
    where {?My Parameter} is the date range.

  • Freed goods item too in Value in crystal report

    Hi,
    iam invoicing SAP out put in Crystal format, now i required the free goods item  too in value( only in crystal report).
    Pls throw some light on this issue.
    Regards
    Shafique

    you need to total the pricing good and free goods? correct
    you should use manual running totals to calculate the values
    RESET               whileprintingrecords;
                   Numbervar  X := 0;
    CALCULATION          whileprintingrecords;
                   Numbervar  X := x + ;
    DISPLAY               whileprintingrecords;
                   Numbervar  X;
                   X
    im sure you have a group by invoice number in there.
    you will need to create 1 set of the above formulas for each total. (1 pricing, 1 free)
    reset placed in group header or report header dependent on where you want the values displayed
    calculation placed where it should be calc, details usually unless you have a group by goods
    display where you want the values to display in the report.
    the calculation formula may need to use a formula to capture good type

  • Not Displaying "Net Sales" key figure in Crystal Report

    Hi All,
    I have made one Info cube (with Characteristics -Product, Region and Customer and Key Figure - Net Sales) from Flat File.
    I want to make crystal report on this. For that i have connected this infocube in crystal Reports via OLAP Connectivity. I am getting all the characterisitc in Field Explorer and one more Field "Measure" in which two field is displayed:
    - Measures, Level 0
    - Measures, Level 0 (long)
    Now i have dragged all the characterisitcs in detail section with Measure, Level 0(long). While i am viewing the preview of this, i am not getting value of that line item.
    Ex.
    Product Region Customer NetSales
    Actual one:
    AC East BigBazar 14000
    with Measure, Level 0(long):
    AC East BigBazar NetSales
    with Measure, Level 0
    AC East BigBazar [Measures].[ZNETSALES]
    I am not getting 14000 i.e. Actual value.
    Hope i am clear with my idea. Am i missing something?
    Regards,
    Rishit Kamdar

    col1 col2 col3 col4 col5.......say you have 5 columns
    for the denominator calculation
    the value should be
    numerator /
    select (select count(column) from table) - (select count(column) from table where column<>0)
    Thanks,
    Ganesh

  • Bex Query not passing all rows to Crystal reports

    hello experts,
    i have created a bex query that shows all employees from the master data table and links to the cats table to show absence hours...
    in bex, all employees are showing and some of the employees have hours showing for sick time. this is known as a left outer join.
    i have created a report in crystal with this bex query and it does not show rows from the master data that do not have a link to the cats table. only the rows that have a link to the cats table are showing up. (this is compared to a inner join)
    the reason i need the master data from the employee table is that the users want to divide the total hours off(sick time) per department by the total employees in that department.
    here is the sql query from crystal that was created automatically when i used the bex query to created the crystal report.
    SELECT {Measures.4J8L2TQJ3P517ISQ1R4Y8UZ36, Measures.4J9PY3UANRIW2HW15YSOED92A, Measures.4J9TLIO0NDQROSA2YONCW6HB6}
    ON COLUMNS,
    NON EMPTY
    CROSSJOIN(0EMPLOYEE.LEVEL01.MEMBERS, 0EMPLOYEE__0COMP_CODE.LEVEL01.MEMBERS)
    DIMENSION PROPERTIES 0EMPLOYEE.50COMP_CODE, 0EMPLOYEE.50MAST_CCTR ON ROWS
    FROM ZCATS_MC1/ZZCATS_MC1_Q001C
    SAP VARIABLES 0I_DAYS INCLUDING 0CALDAY.20100502 : 0CALDAY.20100903
    i am using the mdx driver, and the integration kit is 2.8.
    any thoughts?
    thanks,
    erik

    Thanks Ingo for the quick response.
    this sounds like a limitation in the integration between bex and crystal because the query shows the correct data and the crystal reports does not. i have tried to add a calculated key figure to all the rows and put a number in it but it still does not show the rows in crystal.
    my issue is that they(the business users) want to know all the employees in the employee master data along with all the sick / illness data.
    do you have a suggestion for this issue?
    do you think that the mdx driver should be updated to allow master data to flow to crystal?
    thx,
    Erik

  • Issue while exporting report in PDF using crystal report XI

    Hello,
    I am facing issue while exporting a report to PDF through crystal report XI. Reports are generating properly in the crystal report browser but when I am exporting the reports in PDF or trying to get print by clicking on print button, reports not generating properly.
    Allignment in the exported PDF reports getting changed and reports margin is also changes. Due to this some part of report is chopped and printed on the next page.
    I have deployed my application on IBM WebSphere 6.1 server and I am getting following error which might help to identify this issue.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: The response has already been commited.---- Error code:0 Error code name:succeeded
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
         at com.crystaldecisions.report.web.component.o.a(Unknown Source)
         at com.crystaldecisions.report.web.event.br.a(Unknown Source)
         at com.crystaldecisions.report.web.event.w.a(Unknown Source)
         at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)
         at com.crystaldecisions.report.web.event.av.a(Unknown Source)
         at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)
         at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
         at com.ibm._jsp._CrystalReportViewer._jspService(_CrystalReportViewer.java:107)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
         at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:115)
         at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:168)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1812)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
         at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
    Caused by: com.ibm.wsspi.webcontainer.ClosedConnectionException: OutputStream encountered error during write
         at com.ibm.ws.webcontainer.channel.WCCByteBufferOutputStream.write(WCCByteBufferOutputStream.java:80)
         at com.ibm.ws.webcontainer.srt.SRTOutputStream.write(SRTOutputStream.java:96)
         at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.writeOut(BufferedServletOutputStream.java:438)
         at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.flushBytes(BufferedServletOutputStream.java:344)
         at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.flush(BufferedServletOutputStream.java:323)
         at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.flushBuffer(BufferedServletOutputStream.java:478)
         at com.ibm.ws.webcontainer.srt.SRTServletResponse.flushBuffer(SRTServletResponse.java:452)
         at com.ibm.ws.webcontainer.srt.SRTServletResponse.flushBuffer(SRTServletResponse.java:436)
         at com.crystaldecisions.report.web.viewer.JSPViewerResponse.flushBuffer(Unknown Source)
         ... 33 more
    Caused by: java.io.IOException: Async IO operation failed, reason: RC: 64  The specified network name is no longer available.
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:203)
         ... 3 more
    Thanks in advance
    Alok P.

    The stack trace is caused by whitespace in your CrystalReportViewer.jsp file.  Look up SAP Note 1199025 for the resolution.
    It's not related to the PDF formatting issue.  There's been changes to the formatting with the most recent version - Crystal Reports for Eclipse 2.0 - so if you haven't already, I recommend you upgrade.
    Note that there's differences in font metric calculation when using Adobe PDF format such that there's no way to get exact agreement between output of the CR and PDF.  But the latest version helps greatly.
    Sincerely,
    Ted Ueda

  • Refer to a Form Field in a Crystal Report

    Hello!
    For a customer I need to set up a Layout in Crystal Reports for Asset History Sheet in Fixes Assets.
    Depending on the Depreceation Area (IFRS, HGB) the (printed) report contains different data, I need to filter the data in the Asset History Form that is shown on the screen in different ways.
    I have to make sure that no HGB report can be printed with IFRS numbers (and vice versa).
    The information about the Depreceation Area is written in a field in the Asset History Form on the screen, it is not stored in any table.
    Is it possible to check the content of this field in my Report?
    Thanks and best regards
    Peter Ganserer

    Hi Peter,
    If the Form Field is a direct field from table, you can add the field from table. However, if it is a calculated field, you may not have option to put it into Crystal Report.
    Thanks,
    Gordon

  • Report works on CR Developer XI but not on Crystal Reports Server

    I have a crystal report I created in Crystal Reports Developer XI that uses a command.  The code is as follows:
    select     supplier.supplier_sc, price_list.supplier_id, doc_line.doc_head_sc, product.product_id, product.product_n, price_list.unit_price, price_list.price_list_id,convert(varchar(50),product.product_n)+ ': $' + convert(varchar(50),price_list.unit_price)
    from     price_list, supplier, product, doc_line
    where     price_list.supplier_id = supplier.supplier_id AND
              price_list.product_id = doc_line.product_id AND
              supplier.supplier_id = price_list.supplier_id AND
              price_list.product_id = product.product_id AND
              doc_line.doc_head_sc like 'REQ%'
    I've tested this in SQL directly and it works as expected.  Furthermore in Crystal Reports Developer XI it works fine there too.  Basically the calculated column reprsented by the code: (convert(varchar(50),product.product_n) ': $' + convert(varchar(50),price_list.unit_price)+ shows up as the following as a sub-parameter for my test example:
    Dell 1600 Printer: $125.00
    Dell 1600 Printer: $150.00
    But once it is published to Crystal Reports Server, it shows up as:
    Dell 1600 Printer
    Dell 1600 Printer
    It isn't combining the columns as expected.  This particular sub-parameter is supposed to pull the product name and all the various price list amounts for the particular supplier chosen earlier.  I've tried re-publishing it, but to no avail.  What am I doing wrong? 
    I'm running Crystal Reports Developer XI 11.0.0.1282 and Crystal Reports Server 11.5 in case that is relevant.

    Moved to BOE forums.

  • How to use the distinct key in formula field in SAP Crystal Reports

    I want to use the distinct key in formula field in SAP Crystal reports.
    When i'm using it shows an error.
    Please suggest me....

    Hi,
    Use DistinctCount keyword directly for your calculation instead of count(distinct(....
    Alternatively, if you want to avoid duplicate records, under "File" > "Report Options" make the 'Select Distinct Records' as True.
    Thanks,
    Raghavendra

  • How to store the value of sum of group in Crystal Report at the runtime!

    Hello all,
    I creates a Formula Field that hold the value of Sum of Group in Crystal Report. I would like to know how to store it in a variable and pass it to store procedure. Is it an option in Crystal report to do it. I knew that Crystal Report can cache the report for sharing. My detailed issue as following:
    - Created a Formula Field named TOTAL AMOUNT that calculated the complex expression. This TOTAL AMOUNT is dynamic based on group and variables.
    - I would like to store that value from TOTAL AMOUNT and pass it to the stored procedure parameter IN.
    Any helps are much appreciated. Thanks.

    I doubt that this is possible since it would only calculate this value once the report has data.  This sounds more like a report design question that should be asked over [here|SAP Crystal Reports;

  • How to change crystal report data field at runtime ?

    Hello everyone,
    I have a Crystal Report file ,which i am using to generate report for my windows form project .
    In that report i have a filed called as Quantity which data type is set as decimal, the requirement is like that the number of value those comes after decimal point that should be set according to the value which is given by the user at the run time .
    For eg: If user gives 1 at the run time then the report Qty field value set one value after decimal point. Like 12.1
    if user gives 2 then Qty field the value is 12.22 like tat  but user can give from zero to any number.. and if it is zero it should not show decimal
    Note: The main idea hear is how to change the filed in Crystal Report decimal point value by using code(or we say writing code we need to set manually as user input it will change)
    Can any body help me how to solve this issue .
    S.K Nayak

    I think you could probably make the field you see a formula field and take a parameter as the number of decimal places.
    totext converts a number to a string.
    totext({decimalField}, 2)
    That's 2 decimal places.
    You could probably substitute a {parameter} for that 2.
    If not then you could substitute an entire formula.
    To explore formulas:
    foreach (FormulaFieldDefinition f in rpt.DataDefinition.FormulaFields)
    MessageBox.Show(f.Name);
    // f.Text = your new formula
    Where rpt is an instantiated report.
    Or add another string field which you display in the column and do the calculation with the original decimal.
    Hope that helps.
    Recent Technet articles:
    Property List Editing;  
    Dynamic XAML

  • Error  while exporting in pdf in crystal report XI

    Post Author: Siddheswar
    CA Forum: General
    hi
    I am getting the following error in crystal report XI while exporting to pdf.
    The Error:
    Method 'ISCREditableRTFExportFormatOptions_reserved5' on type 'CrystalDecisions.ReportAppServer.ReportDefModel.EditableRTFExportFormatOptionsClass' from assembly 'CrystalDecisions.ReportAppServer.ReportDefModel, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' is overriding a method that has been overridden.
    Please Help.
    Thanking in advance.
    Regards
    Siddheswar

    The stack trace is caused by whitespace in your CrystalReportViewer.jsp file.  Look up SAP Note 1199025 for the resolution.
    It's not related to the PDF formatting issue.  There's been changes to the formatting with the most recent version - Crystal Reports for Eclipse 2.0 - so if you haven't already, I recommend you upgrade.
    Note that there's differences in font metric calculation when using Adobe PDF format such that there's no way to get exact agreement between output of the CR and PDF.  But the latest version helps greatly.
    Sincerely,
    Ted Ueda

  • Crystal Report formula with datediff not working as expected

    We need a Crystal Report formula to display the number of seconds the oldest arriving call has been waiting.  Across multiple resources that can each have an "oldest call".  The database stores a datetime value for the time the oldest call arrived.  If there are no waiting calls, then this field is NULL.  (MSSQL database).  It seemed reasonable to implement this in a formula that 1) discovers the minimum of "oldest call" timestamps in the selected records, and 2) to use "datediff" to produce the difference (in seconds) between the "oldest call" timestamp and current time.
    The first attempt at this relied on "implied" iteration that could be done within a formula.  Something like:
    data: OLDESTARRIVALTIME
           null
           '2014-06-14 08:08:08.000'
           null
          '2014-06-14 08:07:55.000'
           null
    whilereadingrecords;
    datetimevar minArrival;
    if isNull({SVCCLASSMEASURES_VW.OLDESTARRIVALTIME}) = False
                   and minArrival < {SVCCLASSMEASURES_VW.OLDESTARRIVALTIME} then
         minArrival := {SVCCLASSMEASURES_VW.OLDESTARRIVALTIME};
    DateDiff("s", minArrival, {SVCCLASSMEASURES_VW.UTCDATE})
    We tried storing the values of OLDESTARRIVALTIME in an array.  We could see it iterating, but the values in the array only contained
    the column value from the first record.
    This was to solve the problem of screening null values and producing the minimum of the set.
    Since that didn't work (and the web articles seemed to imply this would iterate over all the records, we tried another approach.  This
    time we set NULL timestamps in the table to a timestamp far in the future, so that we could directly apply "minimum" to produce
    the correct "begin" for datediff.
    data: OLDESTARRIVALTIME
              '2030-01-01 00:00:00.000'
              '2014-06-14 08:08:08.000'
              '2030-01-01 00:00:00.000'
              '2014-06-14 08:07:55.000'
              '2030-01-01 00:00:00.000'
    datetimevar minArrival = minimum({SVCCLASSMEASURES_VW.OLDESTARRIVALTIME});
    datetimevar minUTC = minimum({SVCCLASSMEASURES_VW.UTCDATE});
    if minArrival < minUTC then
         DateDiff("s", minArrival, minUTC)
    else
         0
    (minUTC would be current time in UTC)
    So, to start things off, the last formula produces negative numbers!  They hover in negative seconds within a negative minute (-33, -45, etc.).
    That's inconceivable, considering the test for minArrival < minUTC.  Both of the fields are "datetime".
    As it turns out, in the near term, it's most important to get the second formula working.  And, of course, insights into getting the first
    formula to work are welcome as well!
    Have we run into some weird behavior of the "DateDiff" function?
    Thanks!

    If DateDiff is always returning a negative number you could try swapping the dates around in the call to DateDiff - it should look like this:
         DateDiff("s", minUTC, minArrival)    
    Or you could use the Absolute Value of the calculation:
         Abs(DateDiff("s", minUTC, minArrival) )
    As for your first formula, you need to initialize the variable to a value prior to using it in the comparison.  If you don't, its value is null and comparing it against a value won't work.  (See What is Null and Why is it Important for Crystal Reports | SAP BI BLOG for a blog that I wrote about working with nulls in Crystal.)
    You should change your existing formula to something like this:
    whilereadingrecords;
    datetimevar minArrival;
    if OnFirstRecord then minArrival := DateTime(2013, 1, 1, 0, 0, 0);
    if not isNull({SVCCLASSMEASURES_VW.OLDESTARRIVALTIME})
                   and minArrival > {SVCCLASSMEASURES_VW.OLDESTARRIVALTIME} then
         minArrival := {SVCCLASSMEASURES_VW.OLDESTARRIVALTIME};
    Note how I changed the If statement.  Also, you want to replace minArrival with the field value if the field is less than the current value of minArrival - so you need to use ">" instead of "<" in the comparison.  Place this formula in the details section.  It will now show anything because of the semi-colon on the end.  This will ensure that it gets evaluated for every record.
    Now, create a second formula that looks like this:
    whileReadingRecords;
    datetimevar minArrival;
    DateDiff("s", minArrival, {SVCCLASSMEASURES_VW.UTCDATE})
    Place this formula in a footer section - it will not work in a header section.  If you need it in a header section you might be able to take the "whilereadingrecords" off of both formulas and use the "Maximum()" summary function to get the correct value.
    -Dell

Maybe you are looking for

  • Itunes saying not enough space when ipod empty

    Hi, I went to update my ipod mini(4gb) after having to reinstall itunes(annoying) and itunes is saying there is not enough free space to update all files.Even tho my ipod is completley empty itunes thinks there's only about 50% free. Even when i go t

  • Can't re-install Photoshop Elements 10

    I recently re-formatted my hard drive. I've since tried to re-install Photoshop Elements 10...but cd drive will not even recognize that the Adobe disc is in there. I've installed other software from their cd's...no problems. This is driving me crazy.

  • Mac mini as music server

    I currently have a apple TV which serves as a music server, but the hard disk is getting to small and I can not use all the genius and DJ functions as with itunes on a mac. The itunes library sits on my mac pro. iphones and ipod are synchronized with

  • ANNOUNCE: JRockit downloads available on Oracle Technology Network

    JRockit downloads are now available to the community again: http://www.oracle.com/technology/software/products/jrockit/index.html We will soon post a FAQ on this page explaining some of the changes in JRockit's status, but a couple of the most obviou

  • Screen Tearing/Screen Repeating Itself

    Hello, A couple days ago my screen started to really show some weird things, my screen would begin to tear/pixelate and show weird stuff, this happened more often when i scrolled the page, and it happens extremely often when there is a big program ru