I am trying to calculate the number of visits per patient, but I only want to include patients that have a total of more than 4 visits. Therefore, I need to select all visits for all patients, add the visits to get a total per patient and then evaluate whether the total exceeds 4. I then want to select only those patients with 4 or more visits for inclusion in my report.
How can this conditional selection process be accomplished?
How can this conditional selection process be accomplished?