Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 798485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:58:43+00:00 2026-05-14T22:58:43+00:00

I have a report where I need to filter out records where there is

  • 0

I have a report where I need to filter out records where there is a duplicate contract number within the same station but a different date. It is not considered a duplicate value becuase of the different date. I then need to summarize the costs and count the contracts but even if i suppress the “duplicate fields” it will summarize the value. I want to select the record with the most current date.

Station Trans-DT  Cost    Contract-No
   8    5/11/2010  10         5008
   8    5/12/2010  15         5008
   9    5/11/2010  12         5012
   9    5/15/2010  50         5012
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T22:58:44+00:00Added an answer on May 14, 2026 at 10:58 pm
    1. Create a group on Contract-No.
    2. Create a formula field to display most recent Trans-DT.
      Something like: Maximum ({Trans-DT}, {Command.Contract-No})
    3. Create your summary fields or running totals based on the newly created Contract-No group.

    Edit:
    To summarize costs and count contracts, you’ll need a bit of trickery.

    Add this (in a formula field) to the report header section:

    // start the sum
    // put in report header
    WhilePrintingRecords;
    Global NumberVar TotalCost := 0;
    

    This goes in the report footer:

    // final count
    // put in report footer
    WhilePrintingRecords;
    Global NumberVar TotalCost;
    TotalCost;
    

    And place this in a formula field within your Contract-No or Station group:

    WhilePrintingRecords;
    Global NumberVar TotalCost;
    if {Command.Trans-DT} = maximum({Command.Trans-DT}, {Command.Contract-No}) then
        TotalCost := TotalCost + {Command.Cost}
    else
        TotalCost;
    

    I’ll leave the counting part to you. Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a report I need to print out in an application I'm usually
I have a number of different Interactive Reports within my application (using Oracle ApEx
I have been trying unsuccessfully to find a way to filter out records from
I have a complicated report that I need to draw with GDI+ (I don't
I have a Report. I need to create another one, similar to the one
I have a report which is composed of several subreports. I need to render
I've exported a database (I need the data for a report) we have a
I have a timeclock system where i need to print a report for each
I have two objects List<Report> List<Newsletter> I need certain properties like Id Date Status
I have a number of reports that need to be both run separately and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.