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 | | | | re: Count Checkboxes
"zufie" <john.marruffo@illinois.govwrote in message
news:1b1b7f2f-7e9a-4ecc-9d8c-7fde3aeb708e@p25g2000hsf.googlegroups.com... Quote:
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 | | | | re: Count Checkboxes
On Sep 17, 3:07*pm, "paii, Ron" <n...@no.comwrote: Quote:
"zufie" <john.marru...@illinois.govwrote in message
>
news:1b1b7f2f-7e9a-4ecc-9d8c-7fde3aeb708e@p25g2000hsf.googlegroups.com...
>
>
>
>
> Quote:
I have to create a QA report regarding callers calling into a phone
hotline.
> Quote:
The report consists of many checkboxes such as:
> Quote:
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
> Quote:
I thought it best to use the Caller ID to help me group responses?
> Quote:
How best do I go about counting the respective checkboxes?
> > >
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 Quote:
- Show quoted text -
| | | | re: Count Checkboxes
On Sep 17, 3:18*pm, zufie <john.marru...@illinois.govwrote: Quote:
On Sep 17, 3:07*pm, "paii, Ron" <n...@no.comwrote:
>
>
> Quote:
"zufie" <john.marru...@illinois.govwrote in message
> Quote:
news:1b1b7f2f-7e9a-4ecc-9d8c-7fde3aeb708e@p25g2000hsf.googlegroups.com....
> Quote: Quote:
I have to create a QA report regarding callers calling into a phone
hotline.
> Quote: Quote:
The report consists of many checkboxes such as:
> Quote: Quote:
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
> Quote: Quote:
I thought it best to use the Caller ID to help me group responses?
> Quote: Quote:
How best do I go about counting the respective checkboxes?
> > > Quote:
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
> Quote:
Or did you normalize and put one checkbox per row? No
CallerID QuestionID *Response
> Quote:
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
>
>
> Quote:
- 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 | | | | re: Count Checkboxes
On Sep 17, 3:21*pm, zufie <john.marru...@illinois.govwrote: Quote:
On Sep 17, 3:18*pm, zufie <john.marru...@illinois.govwrote:
>
>
>
>
> Quote:
On Sep 17, 3:07*pm, "paii, Ron" <n...@no.comwrote:
> Quote: Quote:
"zufie" <john.marru...@illinois.govwrote in message
> Quote: Quote:
>news:1b1b7f2f-7e9a-4ecc-9d8c-7fde3aeb708e@p25g2000hsf.googlegroups.com....
> Quote: Quote:
I have to create a QA report regarding callers calling into a phone
hotline.
> Quote: Quote:
The report consists of many checkboxes such as:
> Quote: Quote:
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
> Quote: Quote:
I thought it best to use the Caller ID to help me group responses?
> Quote: Quote:
How best do I go about counting the respective checkboxes?
> > > Quote: Quote:
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
> Quote: Quote:
Or did you normalize and put one checkbox per row? No
CallerID QuestionID *Response
> Quote: Quote:
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 -
> Quote:
Counting the number of times a response was Yes, No, Don't Know
> Quote:
I then have to calculate the percent of callers that responded Yes,
No, Don't Know
> > Quote: Quote:
- Show quoted text -- Hide quoted text -
> Quote:
- Show quoted text -- Hide quoted text -
> Quote:
- 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 | | | | re: Count Checkboxes
"zufie" <john.marruffo@illinois.govwrote in message
news:65d837b2-d01d-412e-a264-e72ea1492b4a@l43g2000hsh.googlegroups.com...
On Sep 17, 3:21 pm, zufie <john.marru...@illinois.govwrote: Quote:
On Sep 17, 3:18 pm, zufie <john.marru...@illinois.govwrote:
>
>
>
>
> Quote:
On Sep 17, 3:07 pm, "paii, Ron" <n...@no.comwrote:
> Quote: Quote:
"zufie" <john.marru...@illinois.govwrote in message
> >news:1b1b7f2f-7e9a-4ecc-9d8c-7fde3aeb708e@p25g2000hsf.googlegroups.com...
> Quote: Quote:
I have to create a QA report regarding callers calling into a phone
hotline.
> Quote: Quote:
The report consists of many checkboxes such as:
> Quote: Quote:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency?
1Week/2Weeks/3 Quote: Quote: Quote:
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
> Quote: Quote:
I thought it best to use the Caller ID to help me group responses?
> Quote: Quote:
How best do I go about counting the respective checkboxes?
> > > Quote: Quote:
1) How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a
spreadsheet? Yes Quote: Quote: Quote:
CallerID R1 R2 R3 ........ R50
> Quote: Quote:
Or did you normalize and put one checkbox per row? No
CallerID QuestionID Response
> Quote: Quote:
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 - Quote:
> Quote:
Counting the number of times a response was Yes, No, Don't Know
> Quote:
I then have to calculate the percent of callers that responded Yes,
No, Don't Know
> > Quote: Quote:
- Show quoted text -- Hide quoted text -
> Quote:
- Show quoted text -- Hide quoted text -
> Quote:
- 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. | | | | re: Count Checkboxes
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.marruffo@illinois.govwrote in news:1b1b7f2f-7e9a-4ecc-9d8c- 7fde3aeb708e@p25g2000hsf.googlegroups.com: Quote:
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
>
>
| | | | re: Count Checkboxes
On Sep 17, 5:45*pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote: Quote:
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:
>
>
> Quote:
I have to create a QA report regarding callers calling into a phone
hotline.
> Quote:
The report consists of many checkboxes such as:
> Quote:
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
> Quote:
I thought it best to use the Caller ID to help me group responses?
> Quote:
How best do I go about counting the respective checkboxes?
> > Quote:
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 | | | | re: Count Checkboxes
On Sep 18, 8:18*am, zufie <john.marru...@illinois.govwrote: Quote:
On Sep 17, 5:45*pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote:
>
>
>
>
> Quote:
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:
> Quote:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
> Quote:
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.
> Quote:
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.
> Quote:
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.
> > > Quote:
zufie <john.marru...@illinois.govwrote in news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p25g2000hsf.googlegroups.com:
> Quote: Quote:
I have to create a QA report regarding callers calling into a phone
hotline.
> Quote: Quote:
The report consists of many checkboxes such as:
> Quote: Quote:
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
> Quote: Quote:
I thought it best to use the Caller ID to help me group responses?
> Quote: Quote:
How best do I go about counting the respective checkboxes?
> > Quote: Quote:
John- Hide quoted text -
> Quote:
- 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 | | | | re: Count Checkboxes
On Sep 18, 8:25*am, zufie <john.marru...@illinois.govwrote: Quote:
On Sep 18, 8:18*am, zufie <john.marru...@illinois.govwrote:
>
>
>
>
> Quote:
On Sep 17, 5:45*pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote:
> Quote: Quote:
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:
> Quote: Quote:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
> Quote: Quote:
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.
> Quote: Quote:
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.
> Quote: Quote:
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.
> > > Quote: Quote:
zufie <john.marru...@illinois.govwrote in news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p25g2000hsf.googlegroups.com:
> Quote: Quote:
I have to create a QA report regarding callers calling into a phone
hotline.
> Quote: Quote:
The report consists of many checkboxes such as:
> Quote: Quote:
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
> Quote: Quote:
I thought it best to use the Caller ID to help me group responses?
> Quote: Quote:
How best do I go about counting the respective checkboxes?
> > Quote: Quote:
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote:
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
> Quote:
I thought it best to use the Caller ID to group the responses?
> Quote:
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
> Quote:
If that, is what you meant, then we are on the same sheet of music.
> Quote:
If not, I hope my above message made it clearer what I meant?
> Quote:
Thanks!,
John- Hide quoted text -
> Quote:
- 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 | | | | re: Count Checkboxes
On Sep 18, 9:54*am, zufie <john.marru...@illinois.govwrote: Quote:
On Sep 18, 8:25*am, zufie <john.marru...@illinois.govwrote:
>
>
>
>
> Quote:
On Sep 18, 8:18*am, zufie <john.marru...@illinois.govwrote:
> Quote: Quote:
On Sep 17, 5:45*pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote:
> Quote: Quote:
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:
> Quote: Quote:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
> Quote: Quote:
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.
> Quote: Quote:
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.
> Quote: Quote:
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.
> > > Quote: Quote:
zufie <john.marru...@illinois.govwrote in news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p25g2000hsf.googlegroups.com:
> Quote: Quote:
I have to create a QA report regarding callers calling into a phone
hotline.
> Quote: Quote:
The report consists of many checkboxes such as:
> Quote: Quote:
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
> Quote: Quote:
I thought it best to use the Caller ID to help me group responses?
> Quote: Quote:
How best do I go about counting the respective checkboxes?
> > Quote: Quote:
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote: Quote:
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
> Quote: Quote:
I thought it best to use the Caller ID to group the responses?
> Quote: Quote:
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
> Quote: Quote:
If that, is what you meant, then we are on the same sheet of music.
> Quote: Quote:
If not, I hope my above message made it clearer what I meant?
> Quote: Quote:
Thanks!,
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote:
SORRY, I meant CHECKED:
> Quote:
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?
> Quote:
1)Yes
2)No
3)Don't Know
> Quote:
================================================== =========================**===
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
> Quote:
If that, is what you meant, then we are on the same sheet of music.
> Quote:
If not, I hope my above message made it clearer what I meant?
> Quote:
Thanks!,
John- Hide quoted text -
> Quote:
- 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). | | | | re: Count Checkboxes
"zufie" <john.marruffo@illinois.govwrote in message
news:da036b97-8bbd-4824-a04a-f8050cae44fe@k7g2000hsd.googlegroups.com...
On Sep 18, 9:54 am, zufie <john.marru...@illinois.govwrote: Quote:
On Sep 18, 8:25 am, zufie <john.marru...@illinois.govwrote:
>
>
>
>
> Quote:
On Sep 18, 8:18 am, zufie <john.marru...@illinois.govwrote:
> Quote: Quote:
On Sep 17, 5:45 pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote:
> Quote: Quote:
If what you need is a total for the Yes/No fields in one row, you
can use Quote: Quote: Quote:
the IIF function in combination with the Sum function to give a
total. Quote: Quote: Quote:
It would be something like this:
> Quote: Quote:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
> Quote: Quote:
IIF has three arguments: 1) the expression to evaluate, 2) the
result to Quote: Quote: Quote:
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, Quote: Quote: Quote:
and to 0 if it is not. Sum adds them together to return your result.
> Quote: Quote:
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. Quote: Quote: Quote:
The function will add the Yes/Nos in each row and the query will sum
them Quote: > Quote: Quote:
If neither of those is what you're looking for, give us some more
detail Quote: Quote: Quote:
on what you're dealing with and what you're wanting to accomplish.
> > > Quote: Quote:
zufie <john.marru...@illinois.govwrote in
news:1b1b7f2f-7e9a-4ecc-9d8c- Quote: Quote: Quote:
7fde3aeb7...@p25g2000hsf.googlegroups.com:
> Quote: Quote:
I have to create a QA report regarding callers calling into a
phone Quote: > Quote: Quote:
The report consists of many checkboxes such as:
> Quote: Quote:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency?
1Week/2Weeks/3 Quote: Quote: Quote:
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
> Quote: Quote:
I thought it best to use the Caller ID to help me group responses?
> Quote: Quote:
How best do I go about counting the respective checkboxes?
> > Quote: Quote:
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote: Quote:
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
> Quote: Quote:
I thought it best to use the Caller ID to group the responses?
> Quote: Quote:
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
> Quote: Quote:
If that, is what you meant, then we are on the same sheet of music.
> Quote: Quote:
If not, I hope my above message made it clearer what I meant?
> Quote: Quote:
Thanks!,
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote:
SORRY, I meant CHECKED:
> Quote:
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?
> Quote:
1)Yes
2)No
3)Don't Know
> ================================================== =========================*
*=== Quote: Quote:
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
> Quote:
If that, is what you meant, then we are on the same sheet of music.
> Quote:
If not, I hope my above message made it clearer what I meant?
> Quote:
Thanks!,
John- Hide quoted text -
> Quote:
- 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 -
Quote:
>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 | | | | re: Count Checkboxes
On Sep 18, 1:45*pm, "paii, Ron" <n...@no.comwrote: Quote:
"zufie" <john.marru...@illinois.govwrote in message
>
news:da036b97-8bbd-4824-a04a-f8050cae44fe@k7g2000hsd.googlegroups.com...
On Sep 18, 9:54 am, zufie <john.marru...@illinois.govwrote:
>
>
> Quote:
On Sep 18, 8:25 am, zufie <john.marru...@illinois.govwrote:
> Quote: Quote:
On Sep 18, 8:18 am, zufie <john.marru...@illinois.govwrote:
> Quote: Quote:
On Sep 17, 5:45 pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote:
> Quote: Quote:
If what you need is a total for the Yes/No fields in one row, you
can use Quote: Quote:
the IIF function in combination with the Sum function to give a
total. Quote: Quote:
It would be something like this:
> Quote: Quote:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
> Quote: Quote:
IIF has three arguments: 1) the expression to evaluate, 2) the
result to Quote: Quote:
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, Quote: Quote:
and to 0 if it is not. Sum adds them together to return your result.
> Quote: Quote:
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. Quote: Quote:
The function will add the Yes/Nos in each row and the query will sum
them > Quote: Quote:
If neither of those is what you're looking for, give us some more
detail Quote: Quote:
on what you're dealing with and what you're wanting to accomplish..
> > > Quote: Quote:
zufie <john.marru...@illinois.govwrote in
>
news:1b1b7f2f-7e9a-4ecc-9d8c-
>
>
> Quote: Quote:
7fde3aeb7...@p25g2000hsf.googlegroups.com:
> Quote: Quote:
I have to create a QA report regarding callers calling into a
phone > Quote: Quote:
The report consists of many checkboxes such as:
> Quote: Quote:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency?
1Week/2Weeks/3 Quote: Quote:
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
> Quote: Quote:
I thought it best to use the Caller ID to help me group responses?
> Quote: Quote:
How best do I go about counting the respective checkboxes?
> > Quote: Quote:
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote: Quote:
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
> Quote: Quote:
I thought it best to use the Caller ID to group the responses?
> Quote: Quote:
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
> Quote: Quote:
If that, is what you meant, then we are on the same sheet of music.
> Quote: Quote:
If not, I hope my above message made it clearer what I meant?
> Quote: Quote:
Thanks!,
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote: Quote:
SORRY, I meant CHECKED:
> Quote: Quote:
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?
> Quote: Quote:
1)Yes
2)No
3)Don't Know
>
================================================== =========================**
*===
>
>
>
>
> Quote: Quote:
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
> Quote: Quote:
If that, is what you meant, then we are on the same sheet of music.
> Quote: Quote:
If not, I hope my above message made it clearer what I meant?
> Quote: Quote:
Thanks!,
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote:
Ok, I now have a sum of the Yes checkbox responses & now have a sum of
the No checkbox responses.
> Quote:
However, the sums are negative numbers. How can I change these sums to
positive numbers?
> Quote:
I tried changing the sums to positive numbers in a query, in a form,
and in a report...all without success!
> Quote:
Here is my SQL code for my query:
> Quote:
SELECT DISTINCTROW Sum([IBCCP Referral Query].[MinOfAgencyContactYes])
AS [Sum Of MinOfAgencyContactYes], Sum([IBCCP Referral Query].
[MinOfAgencyContactNo]) AS [Sum Of MinOfAgencyContactNo]
FROM [IBCCP Referral Query];
> Quote:
Any suggestions as how to change these sums to positive numbers?
> Quote:
Thanks!
John- Hide quoted text -
> Quote:
- 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 | | | | re: Count Checkboxes
On Sep 18, 2:59*pm, zufie <john.marru...@illinois.govwrote: Quote:
On Sep 18, 1:45*pm, "paii, Ron" <n...@no.comwrote:
>
>
>
>
> Quote:
"zufie" <john.marru...@illinois.govwrote in message
> Quote:
news:da036b97-8bbd-4824-a04a-f8050cae44fe@k7g2000hsd.googlegroups.com...
On Sep 18, 9:54 am, zufie <john.marru...@illinois.govwrote:
> Quote: Quote:
On Sep 18, 8:25 am, zufie <john.marru...@illinois.govwrote:
> Quote: Quote:
On Sep 18, 8:18 am, zufie <john.marru...@illinois.govwrote:
> Quote: Quote:
On Sep 17, 5:45 pm, "Carlos Nunes-Ueno" <sulla...@athotmaildot.com>
wrote:
> Quote: Quote:
If what you need is a total for the Yes/No fields in one row, you
can use Quote:
the IIF function in combination with the Sum function to give a
total. Quote:
It would be something like this:
> Quote: Quote:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
> Quote: Quote:
IIF has three arguments: 1) the expression to evaluate, 2) the
result to Quote:
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, Quote:
and to 0 if it is not. Sum adds them together to return your result.
> Quote: Quote:
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. Quote:
The function will add the Yes/Nos in each row and the query will sum
them > Quote: Quote:
If neither of those is what you're looking for, give us some more
detail Quote:
on what you're dealing with and what you're wanting to accomplish.
> > > Quote: Quote:
zufie <john.marru...@illinois.govwrote in
> Quote:
news:1b1b7f2f-7e9a-4ecc-9d8c-
> Quote: Quote:
7fde3aeb7...@p25g2000hsf.googlegroups.com:
> Quote: Quote:
I have to create a QA report regarding callers calling into a
phone > Quote: Quote:
The report consists of many checkboxes such as:
> Quote: Quote:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency?
1Week/2Weeks/3 Quote:
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
> Quote: Quote:
I thought it best to use the Caller ID to help me group responses?
> Quote: Quote:
How best do I go about counting the respective checkboxes?
> > Quote: Quote:
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote: Quote:
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
> Quote: Quote:
I thought it best to use the Caller ID to group the responses?
> Quote: Quote:
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
> Quote: Quote:
If that, is what you meant, then we are on the same sheet of music.
> Quote: Quote:
If not, I hope my above message made it clearer what I meant?
> Quote: Quote:
Thanks!,
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote: Quote:
SORRY, I meant CHECKED:
> Quote: Quote:
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?
> Quote: Quote:
1)Yes
2)No
3)Don't Know
> Quote:
================================================== =========================***
*===
> Quote: Quote:
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
> Quote: Quote:
If that, is what you meant, then we are on the same sheet of music.
> Quote: Quote:
If not, I hope my above message made it clearer what I meant?
> Quote: Quote:
Thanks!,
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote: Quote:
Ok, I now have a sum of the Yes checkbox responses & now have a sum of
the No checkbox responses.
> Quote: Quote:
However, the sums are negative numbers. How can I change these sums to
positive numbers?
> Quote: Quote:
I tried changing the sums to positive numbers in a query, in a form,
and in a report...all without success!
> Quote: Quote:
Here is my SQL code for my query:
> Quote: Quote:
SELECT DISTINCTROW Sum([IBCCP Referral Query].[MinOfAgencyContactYes])
AS [Sum Of MinOfAgencyContactYes], Sum([IBCCP Referral Query].
[MinOfAgencyContactNo]) AS [Sum Of MinOfAgencyContactNo]
FROM [IBCCP Referral Query];
> Quote: Quote:
Any suggestions as how to change these sums to positive numbers?
> Quote: Quote:
Thanks!
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
>I can also use Sum(Abs([field])) but this is less accurate as you
>could have both pos (+) and Neg (-) (values).
> Quote:
If the field is true/false then you will not have an pos (+) numbers.
* *Checked = True = -1
* *Uncheck = False = 0- Hide quoted text -
> Quote:
- Show quoted text -- Hide quoted text -
> Quote:
- Show quoted text -- Hide quoted text -
> Quote:
- 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 | | | | re: Count Checkboxes
"zufie" <john.marruffo@illinois.govwrote in message
news:072df733-b709-4eb0-9dd1-17271b85eda7@k36g2000pri.googlegroups.com...
On Sep 18, 2:59 pm, zufie <john.marru...@illinois.govwrote: Quote:
On Sep 18, 1:45 pm, "paii, Ron" <n...@no.comwrote:
>
>
>
>
> Quote:
"zufie" <john.marru...@illinois.govwrote in message
> Quote:
news:da036b97-8bbd-4824-a04a-f8050cae44fe@k7g2000hsd.googlegroups.com...
On Sep 18, 9:54 am, zufie <john.marru...@illinois.govwrote:
> Quote: Quote:
On Sep 18, 8:25 am, zufie <john.marru...@illinois.govwrote:
> Quote: Quote:
On Sep 18, 8:18 am, zufie <john.marru...@illinois.govwrote:
> Quote: Quote:
On Sep 17, 5:45 pm, "Carlos Nunes-Ueno"
<sulla...@athotmaildot.com> Quote: > Quote: Quote:
If what you need is a total for the Yes/No fields in one row,
you Quote: Quote:
can use Quote:
the IIF function in combination with the Sum function to give a
total. Quote:
It would be something like this:
> Quote: Quote:
=Sum(IIF(YesNo1,1,0),IIF(YesNo2,1,0),IIF(YesNo3,1, 0), ... ,IIF
(YesNoN,1,0))
> Quote: Quote:
IIF has three arguments: 1) the expression to evaluate, 2) the
result to Quote:
return if true, and 3) the result to return if false). In this
case, Quote: Quote: Quote:
each IIF evaluates to 1 if the field is true, i.e. the box is
checked, Quote:
and to 0 if it is not. Sum adds them together to return your
result. Quote:
> Quote: Quote:
Otherwise, if what you need is a total of the Yes/Nos for the
whole Quote: Quote: Quote:
table, you can put the function above into an aggregate query
and Quote: Quote:
sum it. Quote:
The function will add the Yes/Nos in each row and the query will
sum Quote: > Quote: Quote:
If neither of those is what you're looking for, give us some
more Quote: Quote:
detail Quote:
on what you're dealing with and what you're wanting to
accomplish. Quote:
> > > Quote: Quote:
zufie <john.marru...@illinois.govwrote in
> Quote:
news:1b1b7f2f-7e9a-4ecc-9d8c-
> Quote: Quote:
7fde3aeb7...@p25g2000hsf.googlegroups.com:
> Quote: Quote:
I have to create a QA report regarding callers calling into a
phone > Quote: Quote:
The report consists of many checkboxes such as:
> Quote: Quote:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency?
1Week/2Weeks/3 Quote:
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
> Quote: Quote:
I thought it best to use the Caller ID to help me group
responses? Quote:
> Quote: Quote:
How best do I go about counting the respective checkboxes?
> > Quote: Quote:
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote: Quote:
I need to count the total number of times each of the following
three Quote: Quote: Quote:
checkbox responses was given:
1)Yes
2)No
3)Don't Know
> Quote: Quote:
I thought it best to use the Caller ID to group the responses?
> Quote: Quote:
Next, I need to calculate the percent of callers that checked each
of Quote: Quote: Quote:
the following three checkbox responses:
1)Yes
2)No
3)Don't Know
> Quote: Quote:
If that, is what you meant, then we are on the same sheet of
music. Quote:
> Quote: Quote:
If not, I hope my above message made it clearer what I meant?
> Quote: Quote:
Thanks!,
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote: Quote:
SORRY, I meant CHECKED:
> Quote: Quote:
I need to count the total number of times each of the following
three Quote: Quote: Quote:
checkbox responses was CHECKED:
(That is, the total number of times the Yes check box was checked,
the Quote: Quote: Quote:
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?
> Quote: Quote:
1)Yes
2)No
3)Don't Know
> ================================================== =========================*
** Quote: > Quote: Quote:
Next, I need to calculate the percent of callers that checked each
of Quote: Quote: Quote:
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
> Quote: Quote:
If that, is what you meant, then we are on the same sheet of music.
> Quote: Quote:
If not, I hope my above message made it clearer what I meant?
> Quote: Quote:
Thanks!,
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
> Quote: Quote:
Ok, I now have a sum of the Yes checkbox responses & now have a sum of
the No checkbox responses.
> Quote: Quote:
However, the sums are negative numbers. How can I change these sums to
positive numbers?
> Quote: Quote:
I tried changing the sums to positive numbers in a query, in a form,
and in a report...all without success!
> Quote: Quote:
Here is my SQL code for my query:
> Quote: Quote:
SELECT DISTINCTROW Sum([IBCCP Referral Query].[MinOfAgencyContactYes])
AS [Sum Of MinOfAgencyContactYes], Sum([IBCCP Referral Query].
[MinOfAgencyContactNo]) AS [Sum Of MinOfAgencyContactNo]
FROM [IBCCP Referral Query];
> Quote: Quote:
Any suggestions as how to change these sums to positive numbers?
> Quote: Quote:
Thanks!
John- Hide quoted text -
> Quote: Quote:
- Show quoted text -
>I can also use Sum(Abs([field])) but this is less accurate as you
>could have both pos (+) and Neg (-) (values).
> Quote:
If the field is true/false then you will not have an pos (+) numbers.
Checked = True = -1
Uncheck = False = 0- Hide quoted text -
> Quote:
- Show quoted text -- Hide quoted text -
> Quote:
- Show quoted text -- Hide quoted text -
> Quote:
- 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 -
Quote:
>I think I figured it out?!
Quote:
>Here is my new expression 18 (I divided by 10 to return the correct
>percentage, in this case, 40%).
Quote:
>Expr18: (((Abs(Sum([MinOfAgencyContactYes])))/
>(Abs(Sum([MinOfAgencyContactYes])))+
>(Abs(Sum([MinOfAgencyContactNo])))))/10
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. |  | Similar Microsoft Access / VBA bytes | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,419 network members.
|