I have been tasked with creating performance reports. We are tracking performance of work completed vs. assigned by user id. I have gotten to the point of being able to generate a percentage by simple math. The part where I am stuck is they want to go back just the last twenty shifts and if that user was below 94% four times output them to a report. The fields in my query are userid, date, sumofassigned, sumofcompleted, and percent. Each date represents one shift. I can not go by date because people do not work everyday. What would be the best way to accomplish this? I know I am missing something.
Thanks
Thanks