473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Count Checkboxes

I have to create a QA report regarding callers calling into a phone
hotline.

The report consists of many checkboxes such as:

Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know

I thought it best to use the Caller ID to help me group responses?

How best do I go about counting the respective checkboxes?

Thanks!

John
Sep 17 '08 #1
14 3618

"zufie" <jo***********@illinois.govwrote in message
news:1b**********************************@p25g2000 hsf.googlegroups.com...
I have to create a QA report regarding callers calling into a phone
hotline.

The report consists of many checkboxes such as:

Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know

I thought it best to use the Caller ID to help me group responses?

How best do I go about counting the respective checkboxes?

Thanks!

John

1) How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a spreadsheet?
CallerID R1 R2 R3 ........ R50

Or did you normalize and put one checkbox per row?
CallerID QuestionID Response

2) What are you counting?
Number of Yes responses per Caller ID
Number of times a response was true, false or NULL for all Caller IDs


Sep 17 '08 #2
On Sep 17, 3:07*pm, "paii, Ron" <n...@no.comwrote:
"zufie" <john.marru...@illinois.govwrote in message

news:1b**********************************@p25g2000 hsf.googlegroups.com...


I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John

1) How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a spreadsheet? Yes
CallerID * R1 *R2 *R3 ........ R50

Or did you normalize and put one checkbox per row? No
CallerID QuestionID *Response

2) What are you counting?
Number of Yes responses per Caller ID Yes
Number of times a response was true, *false or NULL for all Caller IDs-Hide quoted text -
Counting the number of times a response was Yes, No, Don't Know

I then have to calculate the percent of callers that responded Yes,
No, Don't Know

Thanks,
John

- Show quoted text -
Sep 17 '08 #3
On Sep 17, 3:18*pm, zufie <john.marru...@illinois.govwrote:
On Sep 17, 3:07*pm, "paii, Ron" <n...@no.comwrote:
"zufie" <john.marru...@illinois.govwrote in message
news:1b**********************************@p25g2000 hsf.googlegroups.com....
I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John
1) How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a spreadsheet? *Yes
CallerID * R1 *R2 *R3 ........ R50
Or did you normalize and put one checkbox per row? No
CallerID QuestionID *Response
2) What are you counting?
Number of Yes responses per Caller ID Yes
Number of times a response was true, *false or NULL for all Caller IDs- Hide quoted text -

Counting the number of times a response was Yes, No, Don't Know

I then have to calculate the percent of callers that responded Yes,
No, Don't Know

Thanks,
John
- Show quoted text -- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -
How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a
spreadsheet? Yes, all the checkboxes in one row with the Caller ID
like a spreadsheet
CallerID R1 R2 R3 ........ R50

Or did you normalize and put one checkbox per row? I didn't normalize.
That is, there is more than one checkbox per row
CallerID QuestionID Response

Thanks,
John

Sep 17 '08 #4
On Sep 17, 3:21*pm, zufie <john.marru...@illinois.govwrote:
On Sep 17, 3:18*pm, zufie <john.marru...@illinois.govwrote:


On Sep 17, 3:07*pm, "paii, Ron" <n...@no.comwrote:
"zufie" <john.marru...@illinois.govwrote in message
>news:1b**********************************@p25g200 0hsf.googlegroups.com....
I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John
1) How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a spreadsheet? *Yes
CallerID * R1 *R2 *R3 ........ R50
Or did you normalize and put one checkbox per row? No
CallerID QuestionID *Response
2) What are you counting?
Number of Yes responses per Caller ID Yes
Number of times a response was true, *false or NULL for all Caller IDs- Hide quoted text -
Counting the number of times a response was Yes, No, Don't Know
I then have to calculate the percent of callers that responded Yes,
No, Don't Know
Thanks,
John
- Show quoted text -- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -

How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a
spreadsheet? Yes, all the checkboxes in one row with the Caller ID
like a spreadsheet
CallerID * R1 *R2 *R3 ........ R50

Or did you normalize and put one checkbox per row? I didn't normalize.
That is, there is more than one checkbox per row
CallerID QuestionID *Response

Thanks,
John- Hide quoted text -

- Show quoted text -
That is, the checkboxes for Yes, No, Don't Know for a particular
question are listed on the same row in the datasheet view (spreadsheet
view).

Thanks,
John
Sep 17 '08 #5

"zufie" <jo***********@illinois.govwrote in message
news:65**********************************@l43g2000 hsh.googlegroups.com...
On Sep 17, 3:21 pm, zufie <john.marru...@illinois.govwrote:
On Sep 17, 3:18 pm, zufie <john.marru...@illinois.govwrote:


On Sep 17, 3:07 pm, "paii, Ron" <n...@no.comwrote:
"zufie" <john.marru...@illinois.govwrote in message
news:1b**********************************@p25g200 0hsf.googlegroups.com...
I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency?
1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John
1) How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a
spreadsheet? Yes
CallerID R1 R2 R3 ........ R50
Or did you normalize and put one checkbox per row? No
CallerID QuestionID Response
2) What are you counting?
Number of Yes responses per Caller ID Yes
Number of times a response was true, false or NULL for all Caller IDs-
Hide quoted text -
>
Counting the number of times a response was Yes, No, Don't Know
I then have to calculate the percent of callers that responded Yes,
No, Don't Know
Thanks,
John
- Show quoted text -- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -

How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a
spreadsheet? Yes, all the checkboxes in one row with the Caller ID
like a spreadsheet
CallerID R1 R2 R3 ........ R50

Or did you normalize and put one checkbox per row? I didn't normalize.
That is, there is more than one checkbox per row
CallerID QuestionID Response

Thanks,
John- Hide quoted text -

- Show quoted text -
That is, the checkboxes for Yes, No, Don't Know for a particular
question are listed on the same row in the datasheet view (spreadsheet
view).

Thanks,
John

Is there more then 1 question per row?
Please post the table structure

Try a summation query to get percent of times a question was answered true.
Sep 17 '08 #6
If what you need is a total for the Yes/No fields in one row, you can use
the IIF function in combination with the Sum function to give a total.
It would be something like this:

=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))

IIF has three arguments: 1) the expression to evaluate, 2) the result to
return if true, and 3) the result to return if false). In this case,
each IIF evaluates to 1 if the field is true, i.e. the box is checked,
and to 0 if it is not. Sum adds them together to return your result.

Otherwise, if what you need is a total of the Yes/Nos for the whole
table, you can put the function above into an aggregate query and sum it.
The function will add the Yes/Nos in each row and the query will sum them
into one total.

If neither of those is what you're looking for, give us some more detail
on what you're dealing with and what you're wanting to accomplish.

Hope this helps,

Carlos

zufie <jo***********@illinois.govwrote in news:1b1b7f2f-7e9a-4ecc-9d8c-
7f**********@p25g2000hsf.googlegroups.com:
I have to create a QA report regarding callers calling into a phone
hotline.

The report consists of many checkboxes such as:

Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know

I thought it best to use the Caller ID to help me group responses?

How best do I go about counting the respective checkboxes?

Thanks!

John

Sep 17 '08 #7
On Sep 17, 5:45*pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote:
If what you need is a total for the Yes/No fields in one row, you can use
the IIF function in combination with the Sum function to give a total. *
It would be something like this:

=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))

IIF has three arguments: 1) the expression to evaluate, 2) the result to
return if true, and 3) the result to return if false). *In this case,
each IIF evaluates to 1 if the field is true, i.e. the box is checked,
and to 0 if it is not. *Sum adds them together to return your result.

Otherwise, if what you need is a total of the Yes/Nos for the whole
table, you can put the function above into an aggregate query and sum it.*
The function will add the Yes/Nos in each row and the query will sum them
into one total.

If neither of those is what you're looking for, give us some more detail
on what you're dealing with and what you're wanting to accomplish.

Hope this helps,

Carlos

zufie <john.marru...@illinois.govwrote in news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p25g2000hsf.googlegroups.com:
I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John- Hide quoted text -

- Show quoted text -

I need to count the total number of times each of the following three
checkbox responses was given:
1)Yes
2)No
3)Don't Know

I thought it best to use the Caller ID to group the responses?

Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses:
1)Yes
2)No
3)Don't Know

If that, is what you meant, then we are on the same sheet of music.

If not, I hope my above message made it clearer what I meant?

Thanks!,
John

Sep 18 '08 #8
On Sep 18, 8:18*am, zufie <john.marru...@illinois.govwrote:
On Sep 17, 5:45*pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote:


If what you need is a total for the Yes/No fields in one row, you can use
the IIF function in combination with the Sum function to give a total. *
It would be something like this:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
IIF has three arguments: 1) the expression to evaluate, 2) the result to
return if true, and 3) the result to return if false). *In this case,
each IIF evaluates to 1 if the field is true, i.e. the box is checked,
and to 0 if it is not. *Sum adds them together to return your result.
Otherwise, if what you need is a total of the Yes/Nos for the whole
table, you can put the function above into an aggregate query and sum it. *
The function will add the Yes/Nos in each row and the query will sum them
into one total.
If neither of those is what you're looking for, give us some more detail
on what you're dealing with and what you're wanting to accomplish.
Hope this helps,
Carlos
zufie <john.marru...@illinois.govwrote in news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p25g2000hsf.googlegroups.com:
I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John- Hide quoted text -
- Show quoted text -

I need to count the total number of times each of the following three
checkbox responses was given:
1)Yes
2)No
3)Don't Know

I thought it best to use the Caller ID to group the responses?

Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses:
1)Yes
2)No
3)Don't Know

If that, is what you meant, then we are on the same sheet of music.

If not, I hope my above message made it clearer what I meant?

Thanks!,
John- Hide quoted text -

- Show quoted text -
SORRY, I meant CHECKED:

I need to count the total number of times each of the following three
checkbox responses was CHECKED:
(That is, the total number of times the Yes check box was checked, the
total number of times the No check box was checked, the total number
of times the Don't Know check box was checked). I thought it best to
use the Caller ID to group these responses?

1)Yes
2)No
3)Don't Know

================================================== ============================
Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses (That is, the percent of
callers checking Yes, the percent of callers checking No, the
percent of callers checking Don't Know)
1)Yes
2)No
3)Don't Know

If that, is what you meant, then we are on the same sheet of music.

If not, I hope my above message made it clearer what I meant?

Thanks!,
John
Sep 18 '08 #9
On Sep 18, 8:25*am, zufie <john.marru...@illinois.govwrote:
On Sep 18, 8:18*am, zufie <john.marru...@illinois.govwrote:


On Sep 17, 5:45*pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote:
If what you need is a total for the Yes/No fields in one row, you canuse
the IIF function in combination with the Sum function to give a total.. *
It would be something like this:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
IIF has three arguments: 1) the expression to evaluate, 2) the resultto
return if true, and 3) the result to return if false). *In this case,
each IIF evaluates to 1 if the field is true, i.e. the box is checked,
and to 0 if it is not. *Sum adds them together to return your result.
Otherwise, if what you need is a total of the Yes/Nos for the whole
table, you can put the function above into an aggregate query and sumit. *
The function will add the Yes/Nos in each row and the query will sum them
into one total.
If neither of those is what you're looking for, give us some more detail
on what you're dealing with and what you're wanting to accomplish.
Hope this helps,
Carlos
zufie <john.marru...@illinois.govwrote in news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p25g2000hsf.googlegroups.com:
I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John- Hide quoted text -
- Show quoted text -
I need to count the total number of times each of the following three
checkbox responses was given:
1)Yes
2)No
3)Don't Know
I thought it best to use the Caller ID to group the responses?
Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses:
1)Yes
2)No
3)Don't Know
If that, is what you meant, then we are on the same sheet of music.
If not, I hope my above message made it clearer what I meant?
Thanks!,
John- Hide quoted text -
- Show quoted text -

SORRY, I meant CHECKED:

I need to count the total number of times each of the following three
checkbox responses was CHECKED:
(That is, the total number of times the Yes check box was checked, the
total number of times the No check box was checked, the total number
of times the Don't Know check box was checked). I thought it best to
use the Caller ID to group these responses?

1)Yes
2)No
3)Don't Know

================================================== =========================*===
Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses (That is, the percent of
callers checking Yes, *the percent of callers checking No, *the
percent of callers checking Don't Know)
1)Yes
2)No
3)Don't Know

If that, is what you meant, then we are on the same sheet of music.

If not, I hope my above message made it clearer what I meant?

Thanks!,
John- Hide quoted text -

- Show quoted text -
Ok, I now have a sum of the Yes checkbox responses & now have a sum of
the No checkbox responses.

However, the sums are negative numbers. How can I change these sums to
positive numbers?

I tried changing the sums to positive numbers in a query, in a form,
and in a report...all without success!

Here is my SQL code for my query:

SELECT DISTINCTROW Sum([IBCCP Referral Query].[MinOfAgencyContactYes])
AS [Sum Of MinOfAgencyContactYes], Sum([IBCCP Referral Query].
[MinOfAgencyContactNo]) AS [Sum Of MinOfAgencyContactNo]
FROM [IBCCP Referral Query];

Any suggestions as how to change these sums to positive numbers?

Thanks!
John
Sep 18 '08 #10
On Sep 18, 9:54*am, zufie <john.marru...@illinois.govwrote:
On Sep 18, 8:25*am, zufie <john.marru...@illinois.govwrote:


On Sep 18, 8:18*am, zufie <john.marru...@illinois.govwrote:
On Sep 17, 5:45*pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote:
If what you need is a total for the Yes/No fields in one row, you can use
the IIF function in combination with the Sum function to give a total. *
It would be something like this:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
IIF has three arguments: 1) the expression to evaluate, 2) the result to
return if true, and 3) the result to return if false). *In this case,
each IIF evaluates to 1 if the field is true, i.e. the box is checked,
and to 0 if it is not. *Sum adds them together to return your result.
Otherwise, if what you need is a total of the Yes/Nos for the whole
table, you can put the function above into an aggregate query and sum it. *
The function will add the Yes/Nos in each row and the query will sum them
into one total.
If neither of those is what you're looking for, give us some more detail
on what you're dealing with and what you're wanting to accomplish.
Hope this helps,
Carlos
zufie <john.marru...@illinois.govwrote in news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p25g2000hsf.googlegroups.com:
I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John- Hide quoted text -
- Show quoted text -
I need to count the total number of times each of the following three
checkbox responses was given:
1)Yes
2)No
3)Don't Know
I thought it best to use the Caller ID to group the responses?
Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses:
1)Yes
2)No
3)Don't Know
If that, is what you meant, then we are on the same sheet of music.
If not, I hope my above message made it clearer what I meant?
Thanks!,
John- Hide quoted text -
- Show quoted text -
SORRY, I meant CHECKED:
I need to count the total number of times each of the following three
checkbox responses was CHECKED:
(That is, the total number of times the Yes check box was checked, the
total number of times the No check box was checked, the total number
of times the Don't Know check box was checked). I thought it best to
use the Caller ID to group these responses?
1)Yes
2)No
3)Don't Know
================================================== =========================**===
Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses (That is, the percent of
callers checking Yes, *the percent of callers checking No, *the
percent of callers checking Don't Know)
1)Yes
2)No
3)Don't Know
If that, is what you meant, then we are on the same sheet of music.
If not, I hope my above message made it clearer what I meant?
Thanks!,
John- Hide quoted text -
- Show quoted text -

Ok, I now have a sum of the Yes checkbox responses & now have a sum of
the No checkbox responses.

However, the sums are negative numbers. How can I change these sums to
positive numbers?

I tried changing the sums to positive numbers in a query, in a form,
and in a report...all without success!

Here is my SQL code for my query:

SELECT DISTINCTROW Sum([IBCCP Referral Query].[MinOfAgencyContactYes])
AS [Sum Of MinOfAgencyContactYes], Sum([IBCCP Referral Query].
[MinOfAgencyContactNo]) AS [Sum Of MinOfAgencyContactNo]
FROM [IBCCP Referral Query];

Any suggestions as how to change these sums to positive numbers?

Thanks!
John- Hide quoted text -

- Show quoted text -
Ok, I figured it out!

I used Abs(field).

Here is my sql code for one query:

SELECT Abs([MinOfAgencyContactYes]) AS Expr1,
Abs([MinOfAgencyContactNo]) AS Expr2
FROM [IBCCP Referral Query];

OR

I can use Abs(Sum([field])) which is safer to use, in case I have both
pos (+) and Neg (-) numbers (values).

Here is my my sql code for using Abs(Sum([field])) in a query:

SELECT Abs(Sum([MinOfAgencyContactYes])) AS Expr1,
Abs(Sum([MinOfAgencyContactNo])) AS Expr2
FROM [IBCCP Referral Query]
WITH OWNERACCESS OPTION;

I can also use Sum(Abs([field])) but this is less accurate as you
could have both pos (+) and Neg (-) (values).

Sep 18 '08 #11

"zufie" <jo***********@illinois.govwrote in message
news:da**********************************@k7g2000h sd.googlegroups.com...
On Sep 18, 9:54 am, zufie <john.marru...@illinois.govwrote:
On Sep 18, 8:25 am, zufie <john.marru...@illinois.govwrote:


On Sep 18, 8:18 am, zufie <john.marru...@illinois.govwrote:
On Sep 17, 5:45 pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote:
If what you need is a total for the Yes/No fields in one row, you
can use
the IIF function in combination with the Sum function to give a
total.
It would be something like this:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
IIF has three arguments: 1) the expression to evaluate, 2) the
result to
return if true, and 3) the result to return if false). In this case,
each IIF evaluates to 1 if the field is true, i.e. the box is
checked,
and to 0 if it is not. Sum adds them together to return your result.
Otherwise, if what you need is a total of the Yes/Nos for the whole
table, you can put the function above into an aggregate query and
sum it.
The function will add the Yes/Nos in each row and the query will sum
them
into one total.
If neither of those is what you're looking for, give us some more
detail
on what you're dealing with and what you're wanting to accomplish.
Hope this helps,
Carlos
zufie <john.marru...@illinois.govwrote in
news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p25g2000hsf.googlegroups.com:
I have to create a QA report regarding callers calling into a
phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency?
1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John- Hide quoted text -
- Show quoted text -
I need to count the total number of times each of the following three
checkbox responses was given:
1)Yes
2)No
3)Don't Know
I thought it best to use the Caller ID to group the responses?
Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses:
1)Yes
2)No
3)Don't Know
If that, is what you meant, then we are on the same sheet of music.
If not, I hope my above message made it clearer what I meant?
Thanks!,
John- Hide quoted text -
- Show quoted text -
SORRY, I meant CHECKED:
I need to count the total number of times each of the following three
checkbox responses was CHECKED:
(That is, the total number of times the Yes check box was checked, the
total number of times the No check box was checked, the total number
of times the Don't Know check box was checked). I thought it best to
use the Caller ID to group these responses?
1)Yes
2)No
3)Don't Know
================================================== =========================*
*===
Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses (That is, the percent of
callers checking Yes, the percent of callers checking No, the
percent of callers checking Don't Know)
1)Yes
2)No
3)Don't Know
If that, is what you meant, then we are on the same sheet of music.
If not, I hope my above message made it clearer what I meant?
Thanks!,
John- Hide quoted text -
- Show quoted text -

Ok, I now have a sum of the Yes checkbox responses & now have a sum of
the No checkbox responses.

However, the sums are negative numbers. How can I change these sums to
positive numbers?

I tried changing the sums to positive numbers in a query, in a form,
and in a report...all without success!

Here is my SQL code for my query:

SELECT DISTINCTROW Sum([IBCCP Referral Query].[MinOfAgencyContactYes])
AS [Sum Of MinOfAgencyContactYes], Sum([IBCCP Referral Query].
[MinOfAgencyContactNo]) AS [Sum Of MinOfAgencyContactNo]
FROM [IBCCP Referral Query];

Any suggestions as how to change these sums to positive numbers?

Thanks!
John- Hide quoted text -

- Show quoted text -
>I can also use Sum(Abs([field])) but this is less accurate as you
could have both pos (+) and Neg (-) (values).
If the field is true/false then you will not have an pos (+) numbers.
Checked = True = -1
Uncheck = False = 0
Sep 18 '08 #12
On Sep 18, 1:45*pm, "paii, Ron" <n...@no.comwrote:
"zufie" <john.marru...@illinois.govwrote in message

news:da**********************************@k7g2000h sd.googlegroups.com...
On Sep 18, 9:54 am, zufie <john.marru...@illinois.govwrote:
On Sep 18, 8:25 am, zufie <john.marru...@illinois.govwrote:
On Sep 18, 8:18 am, zufie <john.marru...@illinois.govwrote:
On Sep 17, 5:45 pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote:
If what you need is a total for the Yes/No fields in one row, you
can use
the IIF function in combination with the Sum function to give a
total.
It would be something like this:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
IIF has three arguments: 1) the expression to evaluate, 2) the
result to
return if true, and 3) the result to return if false). In this case,
each IIF evaluates to 1 if the field is true, i.e. the box is
checked,
and to 0 if it is not. Sum adds them together to return your result.
Otherwise, if what you need is a total of the Yes/Nos for the whole
table, you can put the function above into an aggregate query and
sum it.
The function will add the Yes/Nos in each row and the query will sum
them
into one total.
If neither of those is what you're looking for, give us some more
detail
on what you're dealing with and what you're wanting to accomplish..
Hope this helps,
Carlos
zufie <john.marru...@illinois.govwrote in

news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p25g2000hsf.googlegroups.com:
I have to create a QA report regarding callers calling into a
phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency?
1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John- Hide quoted text -
- Show quoted text -
I need to count the total number of times each of the following three
checkbox responses was given:
1)Yes
2)No
3)Don't Know
I thought it best to use the Caller ID to group the responses?
Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses:
1)Yes
2)No
3)Don't Know
If that, is what you meant, then we are on the same sheet of music.
If not, I hope my above message made it clearer what I meant?
Thanks!,
John- Hide quoted text -
- Show quoted text -
SORRY, I meant CHECKED:
I need to count the total number of times each of the following three
checkbox responses was CHECKED:
(That is, the total number of times the Yes check box was checked, the
total number of times the No check box was checked, the total number
of times the Don't Know check box was checked). I thought it best to
use the Caller ID to group these responses?
1)Yes
2)No
3)Don't Know

================================================== =========================**
*===


Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses (That is, the percent of
callers checking Yes, the percent of callers checking No, the
percent of callers checking Don't Know)
1)Yes
2)No
3)Don't Know
If that, is what you meant, then we are on the same sheet of music.
If not, I hope my above message made it clearer what I meant?
Thanks!,
John- Hide quoted text -
- Show quoted text -
Ok, I now have a sum of the Yes checkbox responses & now have a sum of
the No checkbox responses.
However, the sums are negative numbers. How can I change these sums to
positive numbers?
I tried changing the sums to positive numbers in a query, in a form,
and in a report...all without success!
Here is my SQL code for my query:
SELECT DISTINCTROW Sum([IBCCP Referral Query].[MinOfAgencyContactYes])
AS [Sum Of MinOfAgencyContactYes], Sum([IBCCP Referral Query].
[MinOfAgencyContactNo]) AS [Sum Of MinOfAgencyContactNo]
FROM [IBCCP Referral Query];
Any suggestions as how to change these sums to positive numbers?
Thanks!
John- Hide quoted text -
- Show quoted text -
I can also use Sum(Abs([field])) but this is less accurate as you
could have both pos (+) and Neg (-) (values).

If the field is true/false then you will not have an pos (+) numbers.
* *Checked = True = -1
* *Uncheck = False = 0- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -
Yes, true. Thanks.

This is not the problem now.

My problem now is, now that I have used Sum(Abs([field])) to convert
my neg. (-) values to pos. (+) values how can I obtain the correct
percentage.

For example, here is my expression from my query trying to calculate
the correct percentage, in this case, 2/2+3 = .4*100 = 40%.

Expr18: (((Abs(Sum([MinOfAgencyContactYes])))/
(Abs(Sum([MinOfAgencyContactYes])))+
(Abs(Sum([MinOfAgencyContactNo])))))

Expr18 returns 400% instead of 40% due to using Sum(Abs([field])).

How can I correct this?

I am so close to completing this report.

Thanks,

John
Sep 18 '08 #13
On Sep 18, 2:59*pm, zufie <john.marru...@illinois.govwrote:
On Sep 18, 1:45*pm, "paii, Ron" <n...@no.comwrote:


"zufie" <john.marru...@illinois.govwrote in message
news:da**********************************@k7g2000h sd.googlegroups.com...
On Sep 18, 9:54 am, zufie <john.marru...@illinois.govwrote:
On Sep 18, 8:25 am, zufie <john.marru...@illinois.govwrote:
On Sep 18, 8:18 am, zufie <john.marru...@illinois.govwrote:
On Sep 17, 5:45 pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote:
If what you need is a total for the Yes/No fields in one row, you
can use
the IIF function in combination with the Sum function to give a
total.
It would be something like this:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
IIF has three arguments: 1) the expression to evaluate, 2) the
result to
return if true, and 3) the result to return if false). In this case,
each IIF evaluates to 1 if the field is true, i.e. the box is
checked,
and to 0 if it is not. Sum adds them together to return your result.
Otherwise, if what you need is a total of the Yes/Nos for the whole
table, you can put the function above into an aggregate query and
sum it.
The function will add the Yes/Nos in each row and the query will sum
them
into one total.
If neither of those is what you're looking for, give us some more
detail
on what you're dealing with and what you're wanting to accomplish.
Hope this helps,
Carlos
zufie <john.marru...@illinois.govwrote in
news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p25g2000hsf.googlegroups.com:
I have to create a QA report regarding callers calling into a
phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency?
1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John- Hide quoted text -
- Show quoted text -
I need to count the total number of times each of the following three
checkbox responses was given:
1)Yes
2)No
3)Don't Know
I thought it best to use the Caller ID to group the responses?
Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses:
1)Yes
2)No
3)Don't Know
If that, is what you meant, then we are on the same sheet of music.
If not, I hope my above message made it clearer what I meant?
Thanks!,
John- Hide quoted text -
- Show quoted text -
SORRY, I meant CHECKED:
I need to count the total number of times each of the following three
checkbox responses was CHECKED:
(That is, the total number of times the Yes check box was checked, the
total number of times the No check box was checked, the total number
of times the Don't Know check box was checked). I thought it best to
use the Caller ID to group these responses?
1)Yes
2)No
3)Don't Know
================================================== =========================***
*===
Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses (That is, the percent of
callers checking Yes, the percent of callers checking No, the
percent of callers checking Don't Know)
1)Yes
2)No
3)Don't Know
If that, is what you meant, then we are on the same sheet of music.
If not, I hope my above message made it clearer what I meant?
Thanks!,
John- Hide quoted text -
- Show quoted text -
Ok, I now have a sum of the Yes checkbox responses & now have a sum of
the No checkbox responses.
However, the sums are negative numbers. How can I change these sums to
positive numbers?
I tried changing the sums to positive numbers in a query, in a form,
and in a report...all without success!
Here is my SQL code for my query:
SELECT DISTINCTROW Sum([IBCCP Referral Query].[MinOfAgencyContactYes])
AS [Sum Of MinOfAgencyContactYes], Sum([IBCCP Referral Query].
[MinOfAgencyContactNo]) AS [Sum Of MinOfAgencyContactNo]
FROM [IBCCP Referral Query];
Any suggestions as how to change these sums to positive numbers?
Thanks!
John- Hide quoted text -
- Show quoted text -
>I can also use Sum(Abs([field])) but this is less accurate as you
>could have both pos (+) and Neg (-) (values).
If the field is true/false then you will not have an pos (+) numbers.
* *Checked = True = -1
* *Uncheck = False = 0- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -

Yes, true. Thanks.

This is not the problem now.

My problem now is, now that I have used Sum(Abs([field])) *to convert
my neg. (-) values to pos. (+) values how can I obtain the correct
percentage.

For example, here is my expression from my query trying to calculate
the correct percentage, in this case, 2/2+3 = .4*100 = 40%.

Expr18: (((Abs(Sum([MinOfAgencyContactYes])))/
(Abs(Sum([MinOfAgencyContactYes])))+
(Abs(Sum([MinOfAgencyContactNo])))))

Expr18 returns 400% instead of 40% due to using Sum(Abs([field])).

How can I correct this?

I am so close to completing this report.

Thanks,

John- Hide quoted text -

- Show quoted text -
I think I figured it out?!

Here is my new expression 18 (I divided by 10 to return the correct
percentage, in this case, 40%).

Expr18: (((Abs(Sum([MinOfAgencyContactYes])))/
(Abs(Sum([MinOfAgencyContactYes])))+
(Abs(Sum([MinOfAgencyContactNo])))))/10

Thanks!!!!!!!!

John
Sep 18 '08 #14

"zufie" <jo***********@illinois.govwrote in message
news:07**********************************@k36g2000 pri.googlegroups.com...
On Sep 18, 2:59 pm, zufie <john.marru...@illinois.govwrote:
On Sep 18, 1:45 pm, "paii, Ron" <n...@no.comwrote:


"zufie" <john.marru...@illinois.govwrote in message
news:da**********************************@k7g2000h sd.googlegroups.com...
On Sep 18, 9:54 am, zufie <john.marru...@illinois.govwrote:
On Sep 18, 8:25 am, zufie <john.marru...@illinois.govwrote:
On Sep 18, 8:18 am, zufie <john.marru...@illinois.govwrote:
On Sep 17, 5:45 pm, "Carlos Nunes-Ueno"
<sulla...@athotmaildot.com>
wrote:
If what you need is a total for the Yes/No fields in one row,
you
can use
the IIF function in combination with the Sum function to give a
total.
It would be something like this:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
IIF has three arguments: 1) the expression to evaluate, 2) the
result to
return if true, and 3) the result to return if false). In this
case,
each IIF evaluates to 1 if the field is true, i.e. the box is
checked,
and to 0 if it is not. Sum adds them together to return your
result.
>
Otherwise, if what you need is a total of the Yes/Nos for the
whole
table, you can put the function above into an aggregate query
and
sum it.
The function will add the Yes/Nos in each row and the query will
sum
them
into one total.
If neither of those is what you're looking for, give us some
more
detail
on what you're dealing with and what you're wanting to
accomplish.
>
Hope this helps,
Carlos
zufie <john.marru...@illinois.govwrote in
news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p25g2000hsf.googlegroups.com:
I have to create a QA report regarding callers calling into a
phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency?
1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group
responses?
>
How best do I go about counting the respective checkboxes?
Thanks!
John- Hide quoted text -
- Show quoted text -
I need to count the total number of times each of the following
three
checkbox responses was given:
1)Yes
2)No
3)Don't Know
I thought it best to use the Caller ID to group the responses?
Next, I need to calculate the percent of callers that checked each
of
the following three checkbox responses:
1)Yes
2)No
3)Don't Know
If that, is what you meant, then we are on the same sheet of
music.
>
If not, I hope my above message made it clearer what I meant?
Thanks!,
John- Hide quoted text -
- Show quoted text -
SORRY, I meant CHECKED:
I need to count the total number of times each of the following
three
checkbox responses was CHECKED:
(That is, the total number of times the Yes check box was checked,
the
total number of times the No check box was checked, the total number
of times the Don't Know check box was checked). I thought it best to
use the Caller ID to group these responses?
1)Yes
2)No
3)Don't Know
================================================== =========================*
**
*===
Next, I need to calculate the percent of callers that checked each
of
the following three checkbox responses (That is, the percent of
callers checking Yes, the percent of callers checking No, the
percent of callers checking Don't Know)
1)Yes
2)No
3)Don't Know
If that, is what you meant, then we are on the same sheet of music.
If not, I hope my above message made it clearer what I meant?
Thanks!,
John- Hide quoted text -
- Show quoted text -
Ok, I now have a sum of the Yes checkbox responses & now have a sum of
the No checkbox responses.
However, the sums are negative numbers. How can I change these sums to
positive numbers?
I tried changing the sums to positive numbers in a query, in a form,
and in a report...all without success!
Here is my SQL code for my query:
SELECT DISTINCTROW Sum([IBCCP Referral Query].[MinOfAgencyContactYes])
AS [Sum Of MinOfAgencyContactYes], Sum([IBCCP Referral Query].
[MinOfAgencyContactNo]) AS [Sum Of MinOfAgencyContactNo]
FROM [IBCCP Referral Query];
Any suggestions as how to change these sums to positive numbers?
Thanks!
John- Hide quoted text -
- Show quoted text -
>I can also use Sum(Abs([field])) but this is less accurate as you
>could have both pos (+) and Neg (-) (values).
If the field is true/false then you will not have an pos (+) numbers.
Checked = True = -1
Uncheck = False = 0- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -

Yes, true. Thanks.

This is not the problem now.

My problem now is, now that I have used Sum(Abs([field])) to convert
my neg. (-) values to pos. (+) values how can I obtain the correct
percentage.

For example, here is my expression from my query trying to calculate
the correct percentage, in this case, 2/2+3 = .4*100 = 40%.

Expr18: (((Abs(Sum([MinOfAgencyContactYes])))/
(Abs(Sum([MinOfAgencyContactYes])))+
(Abs(Sum([MinOfAgencyContactNo])))))

Expr18 returns 400% instead of 40% due to using Sum(Abs([field])).

How can I correct this?

I am so close to completing this report.

Thanks,

John- Hide quoted text -

- Show quoted text -
>I think I figured it out?!
>Here is my new expression 18 (I divided by 10 to return the correct
percentage, in this case, 40%).
>Expr18: (((Abs(Sum([MinOfAgencyContactYes])))/
(Abs(Sum([MinOfAgencyContactYes])))+
(Abs(Sum([MinOfAgencyContactNo])))))/10
>Thanks!!!!!!!!
>John
It will always be negative so you can multiply by -1 instead of using Abs
I would suggest you add a count of the key field to use in your expression.
[SumOfAgencyContactYes] / [CountOfContactID] * -100
Note: you can use the query field names in your expression instead of
recalculating each value.

Sep 18 '08 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pete | last post by:
There is a Summary/Example further down... On page one of my site I have a form with some checkboxes and detailed descriptions. When the form is submitted (to page two), the values of the...
4
by: Pete | last post by:
Okay, I'm still stuck with this problem. Here's a quick recap/summary :- 1. Page 1:User checks 3 out of 10 checkboxes and submits form to page 2 2. Page 2:Item count shows 3 items. User checks...
1
by: Hunter | last post by:
Hi group - I'm using php to extract data from postgres and print to browser. I have data that was input through checkboxes on a form - each checkbox had a different value but got pushed into the...
10
by: suzy | last post by:
i have generated a list of checkboxes (at runtime) using the checkboxlist control. i want to add an onclick event onto each checkbox so i can perform a count of how many items have been...
0
by: dcs | last post by:
I created basic MS Access form, which allows me to log procedures by clicking checkboxes. I need to submit a total or count of my procedures and I would like to create a report in order to do this....
1
by: babu17 | last post by:
hi, i have a list of checkboxes, the number of checkboxes is dynamic. All the checkboxes have same name. i am trying to get the length of selected checkboxes. <input type=checkbox name=name1...
4
by: haresh.amis | last post by:
hello to all, I m using .net 2.0 and i face a problem that is as under Well I have a checkboxlist which i bound in .cs page now I want to count that how many checkboxes ate checked ( In...
2
by: darkminos | last post by:
Hi, I have the following code int countCheckState = 0 for (int i = 0; i < CheckboxList.Count; i++) { if (CheckboxList.Checked) countCheckState++ if (countCheckState == 0)
6
by: BeaBea | last post by:
Hi All, I am trying to set up a report based on a Select Query. I need to do a count based on four different fields. Field 1: Product Type (text field - 5 different products) Field 2: Claim...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.