Hi there,
Can someone please tell me how to do this.
I have fields that are either checkboxes, drop-down value lists, or
radio buttons,
I want to be able to calculate the number of records that have a
certain value from these fields. For example, if I have a value list
that has say One, Two, Three in it, I want to see the total number of
records that has one, the total with two etc. Also, if I have a
checkbox, I want to see how many records has each option.
I need to get this info in order to do a report summarizing different
things.
Can someone please tell me how to do this?
Thanks a lot,
Chris
|
|
0
|
|
|
|
Reply
|
marshachristy (5)
|
10/24/2005 11:09:14 PM |
|
You need a utility table for this where you create 1 record per value
list item.
Create a link from the value list item field in the utility table to
the actual field that uses that value list in your database.
Create a calc field in the utility table that counts the related
records.
|
|
0
|
|
|
|
Reply
|
FP
|
10/25/2005 2:42:24 AM
|
|
In article <1130195354.445166.201660@g43g2000cwa.googlegroups.com>,
marshachristy@gmail.com wrote:
> Hi there,
>
> Can someone please tell me how to do this.
>
> I have fields that are either checkboxes, drop-down value lists, or
> radio buttons,
>
> I want to be able to calculate the number of records that have a
> certain value from these fields. For example, if I have a value list
> that has say One, Two, Three in it, I want to see the total number of
> records that has one, the total with two etc. Also, if I have a
> checkbox, I want to see how many records has each option.
>
> I need to get this info in order to do a report summarizing different
> things.
>
> Can someone please tell me how to do this?
It depends on exactly what you're wanting to do with the totals and how
you're doing the summarizing.
FP has given you one method using a separate file and relationship link.
Another method is to use a set of Calculation fields.
eg.
Option_Is_One = If (Option = "One", 1, 0)
Option_Is_Two = If (Option = "Two", 1, 0)
Option_Is_Three = If (Option = "Three", 1, 0)
etc.
You can then use a summary field or self-relationship to the same table
/ file to simply Sum these fields.
Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)
|
|
0
|
|
|
|
Reply
|
Helpful
|
10/25/2005 6:23:35 AM
|
|
|
2 Replies
668 Views
(page loaded in 0.07 seconds)
Similiar Articles: Counting number of records from a value list - comp.databases ...Hi there, Can someone please tell me how to do this. I have fields that are either checkboxes, drop-down value lists, or radio buttons, I want to b... Count repeat of value across all records - comp.databases ...Counting number of records from a value list - comp.databases ... Count repeat of value across all records - comp.databases ... How to count the number of each intensity ... Get Record count of EBCDIC file - comp.unix.shellCounting number of records from a value list - comp.databases ... Get Record count of EBCDIC file - comp.unix.shell Counting number of records from a value list - comp ... How to count the number of unique entry of one field - comp ...Counting number of records from a value list - comp.databases ... I have a database with a number value in ... ... How to count the number of unique entry of one field ... how to count the number of elements in a macro variable? - comp ...Counting number of records from a value list - comp.databases ... how to count the number of elements in a macro variable? - comp ... How to count the number of each ... updating a value list in a checkbox field - comp.databases ...Counting number of records from a value list - comp.databases ... updating a value list in a checkbox field - comp.databases ... Counting number of records from a value ... Counting comma seperated fields - comp.lang.awkduplicate records data into single row - comp.soft-sys.sas ... Counting number of records from a value list - comp ... removing duplicate records based on specific field ... creating a counting variable - comp.soft-sys.sasCounting number of records from a value list - comp.databases ... creating a counting variable - comp.soft-sys.sas You need a utility table for this where you create 1 ... Boxplot given a 5 number summary - comp.soft-sys.sasCounting number of records from a value list - comp.databases ... FP has given you one method using a separate file and ... summary of sub-summary - comp.databases ... FM7:Win32: counting instances of a value across fields - comp ...What I'd like to do is to count the number of instances of any given value in a given row. ... as you should work in the file/table which has the records that ... Counting number of records from a value list - comp.databases ...Hi there, Can someone please tell me how to do this. I have fields that are either checkboxes, drop-down value lists, or radio buttons, I want to b... Counting Values in a Database Table with the SQL COUNT FunctionYou can use it to count all records in a table, count unique values in a column or count the number of times records ... In this case, the query would return a value of 1, as ... 7/22/2012 1:13:31 PM
|