dbTalk Databases Forums  

Counting Field Entries

comp.databases.filemaker comp.databases.filemaker


Discuss Counting Field Entries in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Djuro
 
Posts: n/a

Default Counting Field Entries - 10-13-2004 , 11:25 AM






Hi,

I have on my database a field set up as "Country" where all new
entries in the database have their country location recorded.

How can I count how many entries in the database are from US, UK,
Italy etc etc

Many thanks

Djuro

p.s. I am using FM6 on a Mac

Reply With Quote
  #2  
Old   
Paul
 
Posts: n/a

Default Re: Counting Field Entries - 10-13-2004 , 12:07 PM






You can create a new field and set the value to 1.

Then create a summary field that counts or totals the new field.

Create a report that has a group header that groups and sorts by the country
and add the new summary field to the grouping. You dont need to put any
fields in the body because you don't need individual records...just a total.
Remember, you will only see the total if you sort by country then view the
layout in preview mode.

Good luck.
Paul



"Djuro" <djurornic (AT) yahoo (DOT) co.uk> wrote

Quote:
Hi,

I have on my database a field set up as "Country" where all new
entries in the database have their country location recorded.

How can I count how many entries in the database are from US, UK,
Italy etc etc

Many thanks

Djuro

p.s. I am using FM6 on a Mac



Reply With Quote
  #3  
Old   
Djuro
 
Posts: n/a

Default Re: Counting Field Entries - 10-14-2004 , 09:11 AM



Paul,

Thanks for the idea, but, is there anyway that can be done in normal
browse mode without having to create reports?

Regards


Djuro

"Paul" <pzspam (AT) rogers (DOT) com> wrote

Quote:
You can create a new field and set the value to 1.

Then create a summary field that counts or totals the new field.

Create a report that has a group header that groups and sorts by the country
and add the new summary field to the grouping. You dont need to put any
fields in the body because you don't need individual records...just a total.
Remember, you will only see the total if you sort by country then view the
layout in preview mode.

Good luck.
Paul



"Djuro" <djurornic (AT) yahoo (DOT) co.uk> wrote in message
news:acdd1a6c.0410130825.2b52fa04 (AT) posting (DOT) google.com...
Hi,

I have on my database a field set up as "Country" where all new
entries in the database have their country location recorded.

How can I count how many entries in the database are from US, UK,
Italy etc etc

Many thanks

Djuro

p.s. I am using FM6 on a Mac

Reply With Quote
  #4  
Old   
Paul
 
Posts: n/a

Default Re: Counting Field Entries - 10-14-2004 , 09:23 AM



Sorry Djuro, I'm don't if it can be done in browse mode. Maybe someone else
in the group can be of assistance.


"Djuro" <djurornic (AT) yahoo (DOT) co.uk> wrote

Quote:
Paul,

Thanks for the idea, but, is there anyway that can be done in normal
browse mode without having to create reports?

Regards


Djuro

"Paul" <pzspam (AT) rogers (DOT) com> wrote in message
news:<xc-dnfTp_o9Z_fDcRVn-uA (AT) rogers (DOT) com>...
You can create a new field and set the value to 1.

Then create a summary field that counts or totals the new field.

Create a report that has a group header that groups and sorts by the
country
and add the new summary field to the grouping. You dont need to put any
fields in the body because you don't need individual records...just a
total.
Remember, you will only see the total if you sort by country then view
the
layout in preview mode.

Good luck.
Paul



"Djuro" <djurornic (AT) yahoo (DOT) co.uk> wrote in message
news:acdd1a6c.0410130825.2b52fa04 (AT) posting (DOT) google.com...
Hi,

I have on my database a field set up as "Country" where all new
entries in the database have their country location recorded.

How can I count how many entries in the database are from US, UK,
Italy etc etc

Many thanks

Djuro

p.s. I am using FM6 on a Mac



Reply With Quote
  #5  
Old   
Kevin Hayes
 
Posts: n/a

Default Re: Counting Field Entries - 10-14-2004 , 09:24 AM



Djuro wrote:

Quote:
Paul,

Thanks for the idea, but, is there anyway that can be done in normal
browse mode without having to create reports?

Yes. Make the field = 1 as Paul suggested. Then make a relation from
that table to itself based on the Country name. Make a calc field =
Sum(FieldEquallingOne). (the field you just created.

Place that field on your browse layout and it will show how many for
whatever country is set in that record.


Reply With Quote
  #6  
Old   
Paul
 
Posts: n/a

Default Re: Counting Field Entries - 10-14-2004 , 09:43 AM



Thanks Kevin, good to know. I tried it out and it works great.

"Kevin Hayes" <me (AT) here (DOT) com> wrote

Quote:
Djuro wrote:

Paul, Thanks for the idea, but, is there anyway that can be done in
normal
browse mode without having to create reports?


Yes. Make the field = 1 as Paul suggested. Then make a relation from that
table to itself based on the Country name. Make a calc field =
Sum(FieldEquallingOne). (the field you just created.

Place that field on your browse layout and it will show how many for
whatever country is set in that record.



Reply With Quote
  #7  
Old   
flamel
 
Posts: n/a

Default Re: Counting Field Entries - 10-14-2004 , 10:04 AM



Hi Paul,

Glad to hear you got it working.

FWIW though, once again there is no reason to add the extra field that
equals 1.

Just build the calc so that
= Count(Relationship::CountryName)

Since CountryName must include data that satisfies the relationship,
you can count on it (double entendre intentional).

Good luck!


On 2004-10-14 10:43:23 -0400, "Paul" <pzspam (AT) rogers (DOT) com> said:

Quote:
Thanks Kevin, good to know. I tried it out and it works great.

"Kevin Hayes" <me (AT) here (DOT) com> wrote in message
news:ckm26l$9ab$1 (AT) zcars0v6 (DOT) ca.nortel.com...
Djuro wrote:

Paul, Thanks for the idea, but, is there anyway that can be done in normal
browse mode without having to create reports?


Yes. Make the field = 1 as Paul suggested. Then make a relation from
that table to itself based on the Country name. Make a calc field =
Sum(FieldEquallingOne). (the field you just created.

Place that field on your browse layout and it will show how many for
whatever country is set in that record.



Reply With Quote
  #8  
Old   
Paul
 
Posts: n/a

Default Re: Counting Field Entries - 10-14-2004 , 10:15 AM



Perfect, thanks again.

"flamel" <nospam (AT) nospam (DOT) net> wrote

Quote:
Hi Paul,

Glad to hear you got it working.

FWIW though, once again there is no reason to add the extra field that
equals 1.

Just build the calc so that
= Count(Relationship::CountryName)

Since CountryName must include data that satisfies the relationship, you
can count on it (double entendre intentional).

Good luck!


On 2004-10-14 10:43:23 -0400, "Paul" <pzspam (AT) rogers (DOT) com> said:

Thanks Kevin, good to know. I tried it out and it works great.

"Kevin Hayes" <me (AT) here (DOT) com> wrote in message
news:ckm26l$9ab$1 (AT) zcars0v6 (DOT) ca.nortel.com...
Djuro wrote:

Paul, Thanks for the idea, but, is there anyway that can be done in
normal
browse mode without having to create reports?


Yes. Make the field = 1 as Paul suggested. Then make a relation from
that table to itself based on the Country name. Make a calc field =
Sum(FieldEquallingOne). (the field you just created.

Place that field on your browse layout and it will show how many for
whatever country is set in that record.





Reply With Quote
  #9  
Old   
Kevin Hayes
 
Posts: n/a

Default Re: Counting Field Entries - 10-14-2004 , 10:17 AM



Very good point on the Count. I'm used to making that "1" field, because
I used to make one in every table for doing Cartesian joins (pre-version 7)

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.