Results 1 to 6 of 6

Thread: [RESOLVED] Using count in formula feild

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Location
    India, Kerala, Calicut
    Posts
    242

    Resolved [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

  2. #2
    Hyperactive Member
    Join Date
    Jul 2010
    Location
    UK
    Posts
    288

    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Location
    India, Kerala, Calicut
    Posts
    242

    Re: Using count in formula feild

    I want to count the total people who having title 'Mr.' ..

  4. #4
    Hyperactive Member
    Join Date
    Jul 2010
    Location
    UK
    Posts
    288

    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.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Location
    India, Kerala, Calicut
    Posts
    242

    Re: Using count in formula feild

    how will it work?

  6. #6
    Hyperactive Member
    Join Date
    Jul 2010
    Location
    UK
    Posts
    288

    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
  •  



Click Here to Expand Forum to Full Width