By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,949 Members | 2,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,949 IT Pros & Developers. It's quick & easy.

Count Checkboxes

P: n/a
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
Share this Question
Share on Google+
14 Replies


P: n/a

"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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a

"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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a

"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

P: n/a
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

P: n/a
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

P: n/a

"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 discussion thread is closed

Replies have been disabled for this discussion.