In your query, you could calculate a new variable using the INTNX function, and use that for your grouping instead of the original variable. In your case, intnx('month',work_date,0) Where 'month' is the interval type, and 0 is the interval since you want the same calendar month as the variable you started with. Note, work_date must be a date, not a datetime variable. The result will actually be a value equal to the 1st of each month, but then you can also apply the format you chose (mmyyyy) to this calculated variable so the output doesn't show the day of month, just month and year.
... View more