SMA-SM - Customise queries for Open and Closed tabs

We have installed SMA-SM and integrated it with Service Manager. When we log in to the portal and click on the Open or Closed tabs the number of requests does not match what we believe it should. How can we customise these queries?