Results 1 to 7 of 7
  1. #1
    Treeivery is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2016
    Posts
    10

    Access 2016 - Eliminate "N/A" from count

    Hello,
    I'm new to this forum and to access. I'm attempting to create a quality assurance report that shows "N/A", "Met", and "Not Met" measures.
    I have two issues:
    1) When calculating percentage of Met, I need to exclude records from the count where "N/A" is reflected, otherwise it will penalize the worker. As in the
    case below where the worker has 3 cases marked "N/A" he should have a result of 83% because of 5 "Met" and 1 "Not Met".


    When using the unbound textbox in the form footer my text is "=Sum(IIf([Accurate Symptom Duration]="Met",1,0))*100/Count(*)"

    2) If I left a measure blank, meaning that that element wasn't assessed, it would still penalize the worker because the count of overall records would still be 9 records instead of 6.
    Whatever assistance would be greatly appreciated.



  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    How about:

    =Sum(IIf([Accurate Symptom Duration]="Met",1,0))*100/Sum(IIf([Accurate Symptom Duration]="N/A",0,1))
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Just filter the Recordsource on the form to exclude measures with "N/A" and Nulls? That way you are only dealing with "Met" and "Not Met".

  4. #4
    Treeivery is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2016
    Posts
    10

    Thumbs up Access 2016 - Eliminate "N/A" from count

    I implemented your recommendation. It works perfectly Thanks

    Quote Originally Posted by pbaldy View Post
    How about:

    =Sum(IIf([Accurate Symptom Duration]="Met",1,0))*100/Sum(IIf([Accurate Symptom Duration]="N/A",0,1))

  5. #5
    Treeivery is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2016
    Posts
    10
    I tried that, however, filtering gives you an undesired result as it suppresses the count of other records where conditions are either met or not met. Thanks!

  6. #6
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Quote Originally Posted by Treeivery View Post
    I implemented your recommendation. It works perfectly Thanks
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Won't you get an error if the 2nd part tries to divide by 0?

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

Similar Threads

  1. Replies: 4
    Last Post: 12-20-2015, 12:16 PM
  2. Replies: 1
    Last Post: 09-07-2015, 08:00 AM
  3. Replies: 2
    Last Post: 11-14-2012, 04:47 PM
  4. "Count" and "Countif" in Reports
    By JMantei in forum Reports
    Replies: 1
    Last Post: 06-20-2006, 02:20 PM

Tags for this Thread

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