Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting Specific Data

Status
Not open for further replies.
Feb 9, 2009
77
US
What is the best way to get a count of a particular instance in your data. I have a field called origination date. If the count of the fields that have an origination date greater than todays date is greater than 10, I want to suppress that group. Any ideas?
 
Create a formula {@futuredate} like this:

if {table.originatioindate} > currentdate then 1

Then go to report->selection formula->GROUP and enter:

sum({@futuredate},{table.group}) <= 10

This will display only those groups with 10 or fewer future dates.

Note that with group selection if you need to do calculations across groups, you must use running totals, since non-group selected records will contribute to the more usual inserted summaries.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top