reporting: simplify code
reporting: support monthly data in table
reporting: support data of all frequencies in table