Group By Date Part

To group by date part, use the GROUP BY clause and the EXTRACT() function. Pass EXTRACT() the date parts to isolate.

The results are grouped by year and month parts of the CloseDate field.

CloseDate_YearCloseDate_Monthcnt
2014121
201513
201521
201532
201542
201552
201561
201581
2015101
2015111