How to do running totals in a query

Hi Guys, I have following data sample and desired output and I need a running total or subtotals on each row for two quntity fields on same row.
Current data:
ID - ---Day----- Qty1 Qty2
Abc 04/01/2009 100 50
abc 04/02/2009 70 20
def 04/01/2009 10 30...
Desired outPut:
ID - ---Day----- Qty1 Subtoal Qty1 Qty2 SubtotalQty2
Abc 04/01/2009 100 100 50 50
abc 04/02/2009 70 170 20 70
def 04/01/2009 10 180 30 30

Hi,
There's one thing in your example, regarding the last line:
def 04/01/2009 10 180 30 30I assumed you meant:
def 04/01/2009 10 180 30 100 <<== running total should be 100Am I correct?
Then try:
SQL> with t as (
  2  select  'Abc' col1, to_date('04/01/2009', 'dd/mm/yyyy') col2, 100 col3, 50 col4 from dual union all
  3  select'abc', to_date('04/01/2009', 'dd/mm/yyyy'), 70, 20 from dual union all
  4  select 'def', to_date('04/01/2009', 'dd/mm/yyyy'), 10, 30 from dual
  5  ) --Actual query starts here:
  6  select col1
  7  ,      col2
  8  ,      col3
  9  ,      sum(col3) over (order by rownum) rt_col3
10  ,      col4
11  ,      sum(col4) over (order by rownum) rt_col4
12  from t;
COL COL2             COL3    RT_COL3       COL4    RT_COL4
Abc 04-01-2009        100        100         50         50
abc 04-01-2009         70        170         20         70
def 04-01-2009         10        180         30        100Edited by: hoek on Jun 24, 2009 5:19 PM added question

Similar Messages

  • How can implement running total in oracle forms

    I want to implement a running total in oracle form
    like
    100 100
    300 400
    200 600
    500 1100
    200 1300
    100 1400
    PROCEDURE calculate_srno IS
    current_rownum     integer:=:System.Cursor_Record;
    starting_srno integer:=:rs_1;
    last_rownum integer;
    BEGIN
         last_record;
         last_rownum:=:system.cursor_record;
         go_record(1);
         FOR counter IN 1..last_rownum LOOP
              :sum_1:=:rs_1;
              :rs_1:=:sum_1+:rs_1;
         --     :offered_srno_to:=starting_srno;
              if last_rownum=:System.Cursor_Record then exit;
              end if;
         END LOOP;
    END;
    it is not working after want to insert between in the table

    Why write code for this? Oracle Forms 10g has Calculated/Summary fields that will do this for you without the need of writing any PL/SQL.
    Simply add a non-table item to the data block with the item you want to keep the running total for. Then change the following properties of the item:
    Data Type: Number
    Calculation Mode: Summary
    Summary Function: Sum
    Summarized Block: <Your Data Block>
    Summarized Item: <Your Block Item>
    Number of Items Displayed: 1 (if your item is in a Multi-Record (Tabular) layout else you don't need to change this property.
    You will also need to change the following property of the block: Query All Records: Yes
    If changing the Block's "Query All Records" property causes your form to be too slow because of the number of records in your block, then you could keep a running total manually by using a combination of the Post-Query and When-Validate-Item (WVI) triggers. If your block does not allow data entry, then you could do this with just the Post-Query trigger. For example:
    BEGIN
      /* This code sample assumes you have added a non-table item */
      /* to your block called SUMMARY.  */
      :YOUR_BLOCK.SUMMARY := :YOUR_BLOCK.SUMMARY + NVL(:RS_1,0);
    END;If your block allows data entry, then you would add the following to your existing WVI trigger.
    BEGIN
      /* Perform your data entry validation logic first... */
      IF ....
      ELSE
        ...Validation is successful...
        :YOUR_BLOCK.SUMMARY := :YOUR_BLOCK.SUMMARY + NVL(:RS_1,0);
      END IF;
    END;Hope this helps.
    Craig...

  • How to create running total in Analysis

    Hi Experts,
    How can I create a running total in Analysis?
    below is the scenario:
    Account - - - - Quantity
    ACCT1 2
    ACCT2 4
    ACCT3 6
    ACCT4 8
    I need to get the total count for Quantity Column and the total count should be display in the Analysis (20 should be display)
    Thanks,

    HI,
    We have a option in the pivot view properties to display the sum/total at the end/first....You can Use that.Else you can aslso use the Running aggregate functions in the fx tab.
    Edit--->pivot view properties-->columns--->summation symbol is there--->Place the total as you like.
    mark if helpful/correct...
    thanks,
    prassu

  • Running Total & Distinct Count Query

    Crystal 10.0.0.533 CR Professional
    Hope you can assist.
    I have a report listing deals signed, each deal has a corresponding category i.e. industry type, Accountant, Chiropractor, Financial Services, etc.
    I am undertaking a Distinct Count on these categories so that in the group footer it is showing number of different categories signed in a period (the report is grouped into different date periods). This is working OK.
    However, I need to EXCLUDE the category from this distinct count if the deal value is zero.
    I have tried using a formula to show a blank field if the value is zero, however it appears to be distinctly counting the blank as a category?
    Any assistance would be much appreciated.
    Tracy

    Deffinetly it will be less than what you expect for grand total. It is because when you are calculating distinct count for each group suppose
    Group A has categories A,B,C,D-->distinct count (4)
    Group B has C,D,E,F-->distinct count (4)
    but while calculating grand total then the distinct count will be
    A,B,C,D,E,F --> grand total (6) but not (8).
    In this case you need to use mannual running total like this
    whileprintingrecords;
    numbervar i;
    i:=i+{running total};
    place this in group footer and create another fomula like this
    whileprintingrecords;
    numbervar i;
    place this in report footer to get the correct grand total.
    Regards,
    Raghavendra

  • How to Summarized Running Total and Formula ????

    Post Author: ryan_r
    CA Forum: Crystal Reports
    Hi my name is Ryan, I want to ask something. I have build a report
    that contains Running totals and Formula. What I want to do is I want
    to use subtotal and Summary field for the running total and Formula,
    but I can find the field when I click the dropdownlist in the Subtotal
    dialog box or summary field for the running total and the formula. Is
    there any way that I can use subtotal or summary field for Running
    Totals and formula, I do need some help guys, Thanks. FYI: I use Visual Studio.NET 2003; ASP.NET(C#).regards

    Post Author: ryan_r
    CA Forum: Crystal Reports
    Hi kcheeb, thanks for your advice but it doesn't work sorry. By the way maybe I can explain you more of twisted situation.I have updated my report,
    so im not using runningtotals any more, I'm using summary field and
    formula which are;-the summary field is "Sum of SuspenseVoucher.Realisation" located in Group Footer #3: SuspenseMstr.ProgramID-The formula is "@Balance_Formula" which contain:{SuspenseMstr.Budget}
    - Sum ({SuspenseVoucher.PenggunaanBudget}, {SuspenseMstr.ProgramID})
    also located in the same location as summary field above.FYI: I have three group records which are:-Group #1 : SuspenseMstr.APDate (Appearing in months e.g January 2007)-Group
    #2 : programCategoryMstr.programCategoryID (doesn't have any objects I
    just put some dashed line, the group is only for proper sorting)-Group #3: SuspenseMstr.ProgramIDwhat I want to do is:-in the Group Footer #3, I already put "Sum of SuspenseVoucher.Realisation" and "@Balance_formula"-in
    the Group Footer #2, I want to put Summary of Budget but there's a
    problem in here too, in the budget field there are some data are
    conditionally suppressed. I already tried to put some summary field but
    the summary operation wasn't like what I wanted. What I wanted was the
    sum only evaluate the data that appeared in the report not the
    suppressed, but in the summary the suppressed data keep evaluated. And
    in this location I also want to put Summary of "Sum of
    SuspenseVoucher.Realisation" and the Sum of the @Balance_formula.-
    in the Group Footer #1, I want to add some Summary of "Sum of Budget"
    (which I already explained that this operation has a problem) and I
    also want to put the Sum of "Summary of Sum of
    SuspenseVoucher.Realisation" and the Sum of "Sum of @Balance_formula"-And in the Report Footer I want to add some Grand Total from all of the evaluation above.So
    there are my problems, quite much I would say. I hope this explanation
    helping all of you guys to solve my problem, thanks for spending your
    valuable time for me. This matter is really important for me 'cause I
    want to learn something new from all of you experts as I'm still a
    "toddler" in this situation and also because I work in this field, so a
    BIG thank you for all of you guys out there. Best Regards.

  • How do I run totally sperate VI's from a compiled applicatio​n

    Hi, I have hit a wall here and am not sure which direction I should be moving in.  A relevant detail, running LV8.2 and application builder on Vista/XP.  Any suggestions on the approach I should be taking would be most helpful.
    I have a top level application (compiled in the application builder) from there I wish to run other VI's that are elsewhere in my local network file system.  So the top level application gives the user a standard interface, from which they can then run the other VI's which are task specific (but that detail does not matter to the user).
    As time goes by I will be adding more of the task oriented vi's to the system and I want avoid having to make these task oriented vi's part of the top level application as maintenance will be more painful.  Having the ability to fix or add a new individual task oriented VI's without having to recompile the whole top level application is the aim.
    On top of this I do need to pass some info to the task oriented VI and obtain some information back from it.
    Some points that I can't get my head around at this stage are -
    1.  The task oriented VI's - do I have to compile these with application builder or can I call an uncompiled VI and run it in the top level application(I think not)?
    2.  How do I call the task oriented VI from the top level application - I have looked at "Open VI Reference" and "Open Application Reference" and am not sure how these apply to this situation.
      So any thoughts would be appreciated, otherwise I am stuck with a lot of tedious trial and error to figure this out.
      Many Thanks.
    Herbert Niesler
    Solved!
    Go to Solution.

    You can use the concept of "Plug-ins" in your current architecture.
    I have attched a simple calculator vi which actually lets you know how to use this feature in LabVIEW.
    I have created an exe for my Main.vi (called calc.exe)which would serve as the standard user interface. There are plugins by name Add, sub,mul and dev.vi
    These vi are specifically kept in the Plugins directory so that "main" (the calc.exe) knows where to look for these vi's and if present they will get populated to the control called "operations".
    So your task oriented vi's could be made as plugin vi's
    Also, the the run time engine in LV can load files with ".vi" extension. so if you are creating a new vi to perform different task, create a seperate vi and then place them in the plugin folder. Please note that the connector pane must be identical for all the plugin vi's and if you think that your plugin vi's have different input and output terminals then create a cluster for all the inputs(or outputs) and flatten them to string or variant so that ou can maintain a same connector Pane pattern. 
    Regards
    Guru (CLA)
    Attachments:
    Calc.zip ‏160 KB

  • Running total of another running total ( or some other solution )

    I posted in my previous thread that I would like to be able to do rounding at the subtotal level and then have a total of these subtotals.  Here is the original thread:
    totals in a cross tab report
    So I was told that with the cross-tab report I can either do rounding at the details level or at the final total level.  However, I need to be able to do the following:
    Suppose I receive payments from different states.  In my report I would like to be able to display:
    - a total of all payments for one given state, rounded to whole dollars - this one is easy because I just create a running total for the payments and then at the end I round it to whole dollars
    - a total of all payments and all states as one number.  However, the problem I can't figure out here is that this grand total needs to be calculated as the SUM of the totals for each state where the total for each state is rounded to a whole dollar before being added to the grand total.  So the rounding should not be done on the final grand total but rather:
    1. calculate the total of payments for one state and round it to a whole dollar - let's call it StateTotal ( rounded)
    2. calculate the SUM of all StateTotal values.  So it needs to be a SUM of the already rounded state totals.
    Any help will be greatly appreciated.
    thanks

    hello all,
    if you want to use a manual running total then that is okay. you don't actually put the manual running total in the cross-tab expert though as you will get a print time error.
    you use the "Display String" formula dialogue on an existing cross-tab summary to do the manual running total in.
    have a look at the attached sample...there are 2 manual running totals in there...one that goes horizontally (across the columns) and one that goes vertically (down the rows).
    there is also a Xtab Info column that is there just to show you how the manual running total counter variables are incremented through the cross-tab. in crystal reports 2008 there are a lot of new cross-tab functions that are different from this but that is a completely different topic.
    i hope this helps,
    jamie

  • Running Total and In Current Year Columns Source

    Hi all,
    What is the source for Running Total and In Current Year Columns from Absence Detail Screen.
    From Which tables can I get the information on those columns.
    Thanks in Advance

    Hello,
    I am still struck with Running Total Column
    When i fetch running total using this query it works for some of the employees
    SELECT SUM(ABSENCE_hours) from PER_ABSENCE_ATTENDANCES where person_id = <your person id> and absence_attendance_type_id = <your absence type id>
    As there are three different cases here as Days,Hours and No Balance
    I am missing the logic again here when it comes for no balance and days
    Thanks

  • Running total field which evaluates based on another running total field

    I'm figuring out how to use running totals in my reports.
    For each ProductCategory, there're many Products.
    For each Product, there're different ProductVersions.
    For each ProductVersion, it takes different Parts.
    My report should look like this
    Group1: ProductCategory (e.g. Catergory 1)
    Group2: Product (e.g. Product1)
    Group3: ProductVersion 1
    Details: Version 1: 3 * Part1 + 2 * Part2 + 4 * Part3
    GpFooter3: Total of 9 parts used
    Group3: ProductVersion 2
         Details: Version 2: 1 * Part1 + 2 * Part2 + 3 * Part3
    GpFooter3: Total of 6 parts used
    Group3: ProductVersion 3
         Details: Version 3: 2 * Part1 + 2 * Part2 + 3* Part3
    GpFooter3: Total of 7 parts used
    I've a running total at GpFooter3 to count number of parts, reset on change of Group3.
    But for each Product, I'm only interested in the details of the most recent version, that is the version with the greatest version number. So I hide all details and GpFooter3, and want to show
    GpFooter2: Product1, ProductVersion3, 7 parts
    How can I make a running total at GpFooter2 to select the ProductVersion which has the greatest version number among the Group "Product1"? The problem is, the number of versions for each Prodcut is not fixed, so I can't create a running total which evaluates on a particular version number. I tried to use a running total to obtain the maximum version number per Product, but I can't use this in the running total at GpFooter2 as a evaluation formula.
    Your help is much appreciated. Thank you very much.

    Create formula fields that are placed in Group Footer 3 that store the value(s) in global variables (basic syntax):
    global maxVersion as number
    global numParts as number
    maxVersion = {version}
    numParts = count({part}, {version})  ' Assuming grouped on {version}
    formula = ""
    Then use other formula fields to retrieve the values:
    global maxVersion as number
    formula = maxVersion
    And similarly for numParts...
    HTH,
    Carl

  • Summaries Running Totals....

    Hi,
    Can any one help me how to summaries running totals....
    Let say
    Iam calculating number of days per person with some formula,  then iam doing running total for total days by group, till now everything is fine.
    Now i want to summarize these running totals by regionu2026
    I did try to do again running totals. But i can not see the previous running total which I created for Group in the list to add that running total to the field to summarize tabu2026
    How can I Summarize those Running totalsu2026
    Thanks,
    Krish...Yearly

    Try again calculating the total number of days for each region instead of group. Or you can try creating manual running totals by creating formula like this
    whileprintingrecords;
    numbervar i;
    i:=i+{running total};
    regards,
    Raghavendra.G

  • How to calculate a percentage of a Running Total?

    Post Author: pvang
    CA Forum: Formula
    Hi folks,    Quite new here to the forum and to Crystal Report. As you can tell, I've already stumbled upon a roadblock. Here is what I'm trying to do:I am grabbing employee names and the number of cases that they are working via a sql query. So the sql query will result in something like 'Bob', '403'; Bob being the employee and 403 being the number of cases he's working on. In the report, I have a running total that sums up the total number of cases. I want to determine the ratio of Bob's(and every other employee's) cases over the running total amount of cases. So, for demo purposes, Bob has 403 cases and the total amount of cases is 1612, Bob's ratio would be 25%(403/1612). The equation that I am using right now is: /{#RTotal})*100 and it is not working. The ratio starts at 100%(effectively because the running total after the first record is equal to his/her cases) and then drops off dramatically. I know why it is doing that, just don't want those results. I tried using the EvaluateAfter function to no avail. Is this possible? If so, how? Many thanks in advance.

    Post Author: rroberson
    CA Forum: Formula
    Sounds to me like you don't need to use a running total.  Just group on name (bob) and do a normal total (not running total) for the group (group summary).  You can just divide that group summary total by the grand total (another crystal summary) and mult by 100.

  • Cumulative Key Figure (Running Total) - how to use in formula?

    We have a scenario where I need to use the cumulative value of a Key Figure in a subsequent formula. The “Cumulated” property setting at the Key Figure level in the query is a “Displayed Data Only” setting, however, so the cumulated values are not available for use in a formula  The individual values are used by BW as opposed to the cumulative values that are displayed in the column.
    I’ve tried using the “Cumulated” property at the characteristic level. I am then able to use the displayed cumulative values in a formula. However, I also need to display the individual (not cumulated) Key Figure values in a column. These individual values are no longer available for display if the “Cumulated” property is set at the Characteristic level.
    I thought that the “Define Cells” functionality could possible be used, but there is only one Structure in the query, so the “Define Cells” functionality is unavailable. I could not think of a way to use a second structure in the rows, as the rows need to be dynamic (two characteristics, populated based on user input variables).
    It may be possible to accomplish this requirement by adding a column using VBA in the SAPBEXonRefresh sub, but use of VBA is not a preferred option, as the query may be run in either the Excel Analyzer or the Web Analyzer.
    The infoprovider does not contain a Key Figure field for Cumulative Volumes.
    The scenario details:
    Rows (Characteristics):
    A: Plant (values based on user input variable)
    B: Calendar day (values based on user input date variables for start & end dates)
    So there is one row for each day within each plant.
    Columns (Key Figures):
    A: Cumulative Volume at Start of Period (uses user input date variable for start date, and “Constant Value” property. Hidden column.)
    B: Daily Volume (for each day in the period defined by the user input variables for start and end dates)
    C: Cumulative Volume at End of Each Day (formula, meant to be equal to the sum of the Cumulative Volume at start of period plus the total so far of the Daily volumes. In other words, equal to the sum of Column A plus the running total of Column B).
    Does anyone out there have any more ideas on how to accomplish the required Cumulative Volume computation?

    Thanks for your reply Jurgen.
    I've created a Global Calculated Key Figure (CKF), and have looked at and tried a number of settings in the Properties of this new CKF.
    I have not yet been able to make this work for me.
    The "Cumulated" property for a Global CKF is also a display-only property. The displayed running total is not used in any formula containing this CKF, only the individual values are used in the formula.
    If I select the 'Enhance' option, where exception aggregation can be done as I think you suggested, I do not see a 'cumulated' option. If I select the 'Summation' option for 'Exception Aggregation', then the 'Reference Characteristic' pull-down is not available.
    Is there a different 'Exception Aggregation' option I should be using for running totals at the calendar day level?
    Or am I unclear on the concept of your suggestion?
    Perhaps you're on a later version of BW that has more Exception Aggregation options? (We're on BW3.5)

  • Needed a running total in query

    Dear Gurus...Can I've a running total in query like this:
    Item_ Open_Qty_ Rec_Qty_ Iss_Qty_ Bal_
    A 10 5 2 13
    A 0 4 5 12
    A 0 0 6 6
    In this query column Bal is required whose value should be calculated as:
    Bal = ((Open_Qty + Rec_Qty) - Iss_Qty)
    Thanx in advance.

    389 posts and still you seem unaware of:
    - how important it is to mention your database version.
    - the tag, which implicates that you haven't read the FAQ for a while.
    - the 'search' option you have on the right side of the screen.
    You can query running totals easily by using analytic function SUM.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How do I run query per report page?

    I have a report with two subreports which both need queries to run on the fly per supplier(per report page).  All the other subreports on the page as well as the main report queries are loaded in advance before the report and includes all records needed for all suppliers.  However, these two querys that I'm trying to have run per report though can only be loaded one at a time because of the way these queries are formated (it allows a bar graph to show a label for only the current supplier on the x-axis and all other suppliers will display a "" for x-axis label, effectively only showing one legend label per report).  I already have the necessary parameter needed for the report(Pm-Supplier) so how can I run an oracle query on the fly per report page? 
    Eric
    Query 1:
    select vendor,supplierloc,commodity,ip from (select c.Vendor, q.supplierloc, c.commodity,SUM (q.indexpoints+q.lateindexpoints) AS ip
    FROM qa_occ q, glovia_prod.c_vencom@GL7TEST c
    where q.occdate BETWEEN TO_DATE ('4/1/2006', 'mm/dd/yyyy')
    AND TO_DATE ('3/9/2007', 'mm/dd/yyyy')
    and c.vendor=q.supplier
    and (upper(trim(foundby)) not like '%MARKET%' or foundby is null)
    and (upper(trim(foundby)) not like '%TRIAL%' or foundby is null)
    and (upper(trim(rank)) not like '%MARKET%' or rank is null)
    and (upper(trim(rank)) not like '%TRIAL%' or rank is null)
    and nvl(void,'N') = 'N'
    and q.supplier= @SUPPLIER
    GROUP BY C.vendor,q.supplierloc,c.commodity) qa
    union
    select '' as vendor,supplierloc,commodity,ip from (select c.Vendor, q.supplierloc, c.commodity,SUM (q.indexpoints+q.lateindexpoints) AS ip
    FROM qa_occ q, glovia_prod.c_vencom@GL7TEST c
    where q.occdate BETWEEN TO_DATE (@BegDate, 'mm/dd/yyyy')
    AND TO_DATE (@EndDate, 'mm/dd/yyyy')
    and c.vendor=q.supplier
    and (upper(trim(foundby)) not like '%MARKET%' or foundby is null)
    and (upper(trim(foundby)) not like '%TRIAL%' or foundby is null)
    and (upper(trim(rank)) not like '%MARKET%' or rank is null)
    and (upper(trim(rank)) not like '%TRIAL%' or rank is null)
    and nvl(void,'N') = 'N'
    and q.supplier<> @SUPPLIER
    GROUP BY C.vendor,q.supplierloc,c.commodity) qa
    order by commodity,ip desc
    Query 2:
    select c.name as name,c.vendor,c.ven_loc, SUM(q.indexpoints+q.lateindexpoints) as ip
    from qa_occ q,glovia_prod.ven_loc c
    WHERE q.occdate BETWEEN TO_DATE (@BegDate, 'mm/dd/yyyy')
    AND TO_DATE (@EndDate, 'mm/dd/yyyy')
    and (upper(trim(q.foundby)) not like '%MARKET%' or q.foundby is null)
    and (upper(trim(q.foundby)) not like '%TRIAL%' or q.foundby is null)
    and (upper(trim(q.rank)) not like '%MARKET%' or q.rank is null)
    and (upper(trim(q.rank)) not like '%TRIAL%' or q.rank is null)
    and q.supplier is not null
    and nvl(q.void,'N') = 'N'
    and q.supplier=@SUPPLIER
    and q.supplier=c.vendor
    and q.supplierloc=c.ven_loc
    GROUP BY c.name,c.vendor,c.ven_loc
    union
    select '' as name,c.vendor,c.ven_loc, SUM(q.indexpoints+q.lateindexpoints) as ip
    from qa_occ q,glovia_prod.ven_loc c
    WHERE q.occdate BETWEEN TO_DATE (@BegDate, 'mm/dd/yyyy')
    AND TO_DATE (@EndDate, 'mm/dd/yyyy')
    and (upper(trim(q.foundby)) not like '%MARKET%' or q.foundby is null)
    and (upper(trim(q.foundby)) not like '%TRIAL%' or q.foundby is null)
    and (upper(trim(q.rank)) not like '%MARKET%' or q.rank is null)
    and (upper(trim(q.rank)) not like '%TRIAL%' or q.rank is null)
    --and q.supplier is not null
    and nvl(q.void,'N') = 'N'
    and q.supplier=c.vendor
    and q.supplierloc=c.ven_loc
    and q.supplier <> @SUPPLIER
    GROUP BY c.name,c.vendor,c.ven_loc
    ORDER BY ip DESC

    You can't, CR considers each subreport as a separate report and therefore it makes a new connection and runs the SQL for the subreport.

  • How can I display the vendor associated with result of my running total sum

    I have a report that lists vendors with their most vecent order dates.  I need to set up a rotation so that the vendor with the latest order date is next to be selected.  I used the running total summary to pick the latest date.  How can I display the vendor associated with result of my running total summary?

    If your "latest" order date means the "oldest" order date, why don't you try this:
    Go to Report tab -> Record Sort Expert -> Choose your order date in ascending order
    This will make your oldest order your first record shown. 
    You can then create a running total count for each record.
    Lastly, in your section expert under conditional suppress X+2 formula, write this:
    {#CountRecords}>1
    The result will only show the oldest record in your report.
    I hope that helps,
    Zack H.

Maybe you are looking for