Creating a "daily count" field

This is probably a stupid question.

I have a table, called "Sales", with 3 fields:

1) Customer Name (text)
2) Date of Sale (date)
3) Item Sold (text)

Customers can only buy one item per day.

So, now I all I want a simple table, called "Daily Sales Counts" that
summarizes the daily sales, with two fields:

1) Date
2) Item Sold
2) Total Number of Items sold, per Item

For example, if the table "Sales" has:
John Doe 12/1/07 Widget
Richard Roe 12/1/07 Gadget
Jane Joe 12/1/07 Widget
Bill Boe 12/2/07 Widget
Gary Goe 12/2/07 Widget
Mary Moe 12/2/07 Widget
Terry Toe 12/4/07 Widget
John Doe 12/6/07 Gadget

The table "Daily Sales Counts" would have:
12/1/07 Widget 2
12/1/07 Gadget 1
12/2/07 Widget 3
12/4/07 Widget 1
12/6/07 Gadget 1

I've been working all day it this, to no avail.

I would greatly appreciate any input, suggestions, advice, etc.! Many
thanks, in advance.
Jim Schwartz [ Mi, 26 Dezember 2007 00:33 ] [ ID #1893828 ]

Re: Creating a "daily count" field

On 2007-12-25 15:33:18 -0800, Jim Schwartz <dunestrider [at] mac.com> said:

> I've been working all day it this, to no avail.
>
> I would greatly appreciate any input, suggestions, advice, etc.! Many
> thanks, in advance.

Hey, it's Christmas. Give it a rest!

But when you resume tomorrow, you'll want to look up "subsummary report."

Create a summary field defined as a total of unit sales.

On your report layout, create a subsummary part sorted by date. Create
a second subsummary part sorted by Item. Put the Date field in the
first part, put the Item field in the second part, as well as the Unit
Summary field. This report has no body part.

Now, find your set of records you want to report on, sort first by
date, then by item, and view the report in Preview mode, or print it.
If you sort in the reverse order, you'll see the same report appear
differently, with Items then summarized by the list of sales per day.

You can also add a trailing Grand Summary part at the end and include
only the summary field, and you'll get a total of sales.
--
Lynn Allen
--
www.semiotics.com
Member Filemaker Business Alliance
Long Beach, CA
Lynn Allen [ Mi, 26 Dezember 2007 04:53 ] [ ID #1893829 ]

Re: Creating a "daily count" field

In article <4771d043 [at] news.bnb-lp.com>, Lynn Allen
<lynn [at] NOT-semiotics.com> wrote:
>
> Hey, it's Christmas. Give it a rest!
<snip>

Bah, humbug!!! Christmas is just another day. ;o)

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)
Helpful Harry [ Mi, 26 Dezember 2007 06:09 ] [ ID #1893830 ]
Datenbanken » comp.databases.filemaker » Creating a "daily count" field

Vorheriges Thema: Problems with FM9 after installing Leopard
Nächstes Thema: Win Vista to Mac Server VNC question