Results 1 to 3 of 3
  1. #1
    jenkag875 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2016
    Posts
    25

    How to calculate in a query for a report with NA values

    Hello.



    I have various tables where entry is completed with one of 4 values that are allowed: Correct, Partial, Wrong, NA. I have them currently set to the following in my query so it's counting NA the same was as correct which from a calculation standpoint, won't be completely accurate so I'd like to fix it. Right now I have it set to 1 for correct, .5 for partial, and 0 for wrong. NA is currently set to 1 also. In most cases, it's not affecting the overall percentages, but in some cases it could. How do I do this as accurately as possible? Here is an example of one of my formulas, just a simple If statement. I've tried having it set to -1 and also blank, but the results seem even more skewed.

    CertificateInstitution Value: IIf([tblDQPersonGrowthAttainCertificate]![CertificateInstitution]="Correct",1,IIf([tblDQPersonGrowthAttainCertificate]![CertificateInstitution]="Partial",0.5,IIf([tblDQPersonGrowthAttainCertificate]![CertificateInstitution]="Wrong",0,1)))

    Thanks

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    What should the value be for "NA"? 0?

  3. #3
    jenkag875 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2016
    Posts
    25
    I was able to get a way figured out for this. I had to create formulas for points possible as well as points received in order for my percentages to calculate correctly when an NA field was involved.

    Thank you.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-19-2015, 11:05 PM
  2. Replies: 30
    Last Post: 06-16-2015, 08:37 AM
  3. Replies: 5
    Last Post: 11-13-2014, 01:40 PM
  4. Multiple Query Values In A Report
    By dr4ke in forum Reports
    Replies: 10
    Last Post: 01-29-2013, 07:32 AM
  5. VB to calculate count of distinct values
    By gokul1242 in forum Programming
    Replies: 1
    Last Post: 10-03-2012, 01:38 PM

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