Hi @Lopez, Ahiezer ,
It's not very clearly about your requirement, what's the meaning of "production number is found in reason code 4 and 22 or in 5 and 26"? And what is the "code groups"?
I suggest you check if the slicer feature can help you, it's the way to filter the data in PivotTable:
https://support.microsoft.com/en-us/office/use-slicers-to-filter-data-249f966b-a9d5-4b0f-b31a-12651785d29d
If the groups related to the data source table, you should provide the data source here. And you can also provide the result table here, so that I can get more accurate solutions to this problem. I’m glad to help and follow up your reply.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.