![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
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 |
#5
| |||
| |||
|
|
Paul, Thanks for the idea, but, is there anyway that can be done in normal browse mode without having to create reports? |
#6
| |||
| |||
|
|
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. |
#7
| |||
| |||
|
|
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. |
#8
| |||
| |||
|
|
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. |
#9
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |