Results 1 to 2 of 2

Thread: equation (2000)

  1. #1
    3 Star Lounger
    Join Date
    Jun 2003
    Posts
    238
    Thanks
    0
    Thanked 0 Times in 0 Posts

    equation (2000)

    I have a column, and the values are either Yes, No, or Pending. I want to be able to make a percentage so its all the yes's divided by the total.
    how could i do this in a query??

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: equation (2000)

    Create a query based on the table.
    Add three calculated fields to the query design grid:

    CountOfYes: Abs(Sum([ColumnName]="Yes"))
    TotalCount: Count([ColumnName])
    PercentYes: [CountOfYes]/[TotalCount]

    Where ColumnName must be replaced by the name of your column. Format the PercentYes field as a percentage.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •