In the previous recipe, Implementing a top N filter, we learned how to create a top N filter. In this recipe, we will expand that knowledge to situations where we have multiple filters, a top N filter being one of them.
In these situations, we can get a different output to what we expect. We will learn how to properly set up our filters so that the output is what we want it to be.