Creating a multidimensional report and date functions