Is there a way that I can take a group of messages that have errored out for a certain error message and get a count of them by data in a particular HL7 segment?
 
For example, I do a 'Show Distinct' on my errors and find several messages that have errored for the same reason.  I'd then like to get a count of them grouped by the data that is in MSH-5.