Data splitting by categories and time periods and aggregating results in reports