thanks, steve.

that was one thing i tried, though without indexing or making the counted field be a global.

i'll try it your way!

best,
bill

On Jun 4, 2007, at 2:20 PM, Steve B. Gerow wrote:

bill,
This may help:
Index the field and make a value list from it. Do the following in a script:
Use the ValueListItems function to set the list into a global.
Use the ValueCount function to count the items in the global.
--
Steve

Steve B. Gerow
FileMaker 8/7 Certified Developer

President
Abrazos Data Consulting, Inc.
Dependable Database Development
Pasadena California
www.abrazosdata.com
Member FileMaker Bus. Alliance


From: Bill Kasper <[EMAIL PROTECTED]>
Reply-To: FileMaker Pro Discussions <[email protected]>
Date: Mon, 4 Jun 2007 13:32:52 -0700
To: [email protected]
Subject: counting unique values from all values in a found set

hi,

using fm7 on a mac.  i have a main ordering table (orders.fmp), and
this has a related line items table (lineitems.fmp) via a key field
called <order number>. there can be up to three line items per order.

i have a report needing to know some summary values based on fields
in lineitems.fmp, and can generate the report easily enough.  one
measure is a count of the number of records in a found set in
lineitems.fmp, showing via subsummary in the report as four or five
different categories...the four or five categories each return a
number counted for themselves, and there's a total of all categories.

however, given more than one line item can have the same <order
number>, how can i do a secondary count of order numbers?  i want to
count each unique <order number> once, and the multiples not at all.
i've thought of a couple of complicated scripts, but don't really
feel like those should be necessary.

any help would be appreciated.
thanks,
bill


Bill Kasper
Digital Printing Specialist
UCSC Printing Services


Reply via email to