grouping row using months, sdk 8+ support