Solved Met or Not Met - Group By with conditions (1 Viewer)

jack555

Member
Local time
Tomorrow, 00:36
Joined
Apr 20, 2020
Messages
93
Having a scenario where to auditors review and score different questions under few categories.

I would like to mark the category as per the below criteria.
  1. if any of the questions in a particular category is "Not Complaint" then the category is "not compliant".
  2. If all the questions in the category are "Not Applicable" then the category should be marked "Not Applicable".
  3. If there is no "not Complaint" and any "compliant" or then should be marked as "compliant"
where multiple users, categories and audits happen.

below is the example table.

ABCDE
User1Audit1Category1Question1Compliant
User1Audit1Category1Question2Not Compliant
User1Audit1Category1Question3Compliant
User1Audit1Category1Question4Not Applicable
User1Audit2Category1Question1Compliant
User1Audit2Category1Question2Compliant
User1Audit2Category1Question3Not Applicable
User1Audit2Category1Question4Compliant

And the result would be like this.

User1Audit1Category1Not Compliant
User1Audit2Category1Compliant

With beginner level expertise in Access, I tried group by or totals query but couldn't get the expected outcome.
 
Last edited:

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 04:36
Joined
May 7, 2009
Messages
19,229
see your guidelines again.
the result are all "non compliant"

see Query2.
 

Attachments

  • complaints.accdb
    484 KB · Views: 349

jack555

Member
Local time
Tomorrow, 00:36
Joined
Apr 20, 2020
Messages
93
see your guidelines again.
the result are all "non compliant"

see Query2.
Sorry, edited the mistakes in question. Please check now.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 04:36
Joined
May 7, 2009
Messages
19,229
see again Query2.
 

Attachments

  • complaints.accdb
    424 KB · Views: 378

Users who are viewing this thread

Top Bottom