Does anyone know how to update your grouping based on an input parameter?

I have a report that groups based upon the date for daily, weekly, and monthly intervals. I would like to combine the three reports that I am currently using to accomplish this into one report where the grouping will change based upon the input parameter.