Results 1 to 3 of 3
  1. #1
    max20 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2017
    Posts
    1

    PERCENTAGE score if value>0

    hello everyone, i d would like to know how to HAVE THE TOTAL SCORE IF:
    id1 from table A SCORE= 20%
    id2 from table A score=10
    %
    ID3 from table A score=0
    %


    TOTAL: score
    ( ID1+ID2+ID3) from table A =10%
    What i need to know is how to not count id3 because the score =0
    so SCORE
    ( ID1+ID2=ID3) ÷2=15%


    AND REPORT THE SCORE IN A FORM

    THANKS

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 10 Access 2016
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538
    1. Be sure that your data is normalized
    2. Use the group by function in a query
    3. Use the Avg function within the Group by functionality
    4. Make the query the record source for the Form

    https://www.techonthenet.com/access/...umeric/avg.php

  3. #3
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    ...and the criteria like WHERE [table A].[ID3]<> 0?
    (assuming the field is numeric and not text)

    Pretty sure the avg function includes zeros as data points, but not Nulls. I'm no mathematician, but I've been told that sometimes, calculating the average of averages is not a good idea. That's what this looks like, but it might also be an average of ratios. Then I'm clueless
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Golf Score database
    By JR Taylor in forum Database Design
    Replies: 11
    Last Post: 05-04-2017, 04:17 AM
  2. Average score
    By GMG in forum Access
    Replies: 3
    Last Post: 10-13-2015, 01:41 PM
  3. Replies: 1
    Last Post: 06-24-2013, 02:24 AM
  4. Test Score Results
    By bob.bud in forum Queries
    Replies: 5
    Last Post: 01-18-2012, 04:59 PM
  5. how to get the average of score?
    By beauty in forum Access
    Replies: 1
    Last Post: 10-08-2011, 06:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums