I work for a jail and I am trying to create Superior Court List and State Court List from our Record Management System, but I can't quite figure out how to word my formula to make it pull correctly.
For example: Each arrest has a unique system id (armain.armainid) that can contain multiple charges for an individual that are either Felony "F" or Misdemenor "M" (archg.fel_mis).
The tricky part is that I have to leave the entire arrest record together for an individual, so that the person is on one or the other list regardless of charge status. This is what I'm having trouble with; I can seperate the "M" and "F" to one list or the other, but it seperates the arrest itself and may list one person on two seperate list when the person can only be on one list or the other.
This is how my formula could work, but I need help wording the formula so that it will work correctly.
If the unique arrest (armain.armainid) has only "M" charges then "State Court" else
If the unique arrest (armain.armainid) has only "F" charges then "Superior Court" else
If the unique arrest (armain.armainid) has both "M" & "F" charges then "Superior Court"
Does anyone know how I would formulate this to work?
For example: Each arrest has a unique system id (armain.armainid) that can contain multiple charges for an individual that are either Felony "F" or Misdemenor "M" (archg.fel_mis).
The tricky part is that I have to leave the entire arrest record together for an individual, so that the person is on one or the other list regardless of charge status. This is what I'm having trouble with; I can seperate the "M" and "F" to one list or the other, but it seperates the arrest itself and may list one person on two seperate list when the person can only be on one list or the other.
This is how my formula could work, but I need help wording the formula so that it will work correctly.
If the unique arrest (armain.armainid) has only "M" charges then "State Court" else
If the unique arrest (armain.armainid) has only "F" charges then "Superior Court" else
If the unique arrest (armain.armainid) has both "M" & "F" charges then "Superior Court"
Does anyone know how I would formulate this to work?