|
-
Mar 24th, 2012, 02:23 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Using count in formula feild
I wanted to sort out the count of males from the table tembcustbl abd the following are the formula i have created
Code:
if {TempCusTbl.CF_PREFIX}='Mr.' then
Count({TempCusTbl.CF_SEX})
else
0
but its not showing any result..there is data in the table..
please help me
-
Mar 24th, 2012, 12:08 PM
#2
Hyperactive Member
Re: Using count in formula feild
Can you change your formula to
if {TempCusTbl.CF_PREFIX}='Mr.' then
1
else
0
And then sum that field. This will give you the count.
 One day I found VB.
Now I live in the state of Confusion.
-
Mar 30th, 2012, 07:09 AM
#3
Thread Starter
Addicted Member
Re: Using count in formula feild
I want to count the total people who having title 'Mr.' ..
-
Mar 30th, 2012, 07:15 AM
#4
Hyperactive Member
Re: Using count in formula feild
What is it that does not work with what I put?
 One day I found VB.
Now I live in the state of Confusion.
-
Mar 30th, 2012, 08:23 AM
#5
Thread Starter
Addicted Member
Re: Using count in formula feild
-
Mar 30th, 2012, 09:23 AM
#6
Hyperactive Member
Re: Using count in formula feild
Create a conditional formula: Use the formula as above below is just to provide explanation for it
If the field = Mr Then Value = 1
Else Value = 0
You then need to Sum the formula at the Report total or group total where ever it is you want to count the number of Mr.
So example
Field
Mr = 1
Miss = 0
Mr = 1
Does that make sense?
Sum that and you get a count of Mr = 2
 One day I found VB.
Now I live in the state of Confusion.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|