The data displayed on the toolbar comes from tables aggregated by cron every day to view the product and best sellers. It is calculated and displayed accordingly. If you want to have a date range, you need to use the ones that are aggregated daily, and group by product_id. For orders, you can use the setDateRange function existing in Mage_Reports_Model_Resource_Order_Collection .
source
share