Cannot group by date in pivot table

I would love to group these dates by month, but my group by option appears to be greyed out.

I don't have any nulls and my data type is date.  I have tried changing the format around, but it doesn't seem to make a difference.


June 4th, 2014 10:45pm

If you add a column to your date table in your Power Pivot model that has the month (which you could calculate with DAX if needed) then you can just drag that column onto the pivot table instead of using the raw date column.
Free Windows Admin Tool Kit Click here and download it now
June 5th, 2014 7:17am

So that would just eliminate the need to group all-together?  That sounds reasonable I guess.

The original date is in my table in this format. '1/1/2012 12:00:00 AM'

Is the reason that it won't group in the first place because it includes the day and/or time in the data?

One last question, I'm sorry.  Could you point me to a reference where I can see examples of DAX formulas to change my original format to month, or month/year?

Thank you for your help.

June 9th, 2014 3:25pm

Hi Heath,

In a word, yes. The Pivot table will group over the distinct values in the column in which case 1/1/2012 12:00:00 AM and 1/1/2012 1:00:00 AM would be treated as different values despite being from the same day.

You can create a column to sort the months and then create another column which returns the actual month names. For example, I have created a column called 'MonthNumber' using the following DAX fomrula:

=VALUE(FORMAT('Table1'[Date],"yyyyMM"))


I have then gone on to create a column called 'MonthName' with this DAX:

=FORMAT([Date], "MMM yy")

Finally, I set the sort property for the MonthName column to use the MonthNumber column to ensure it appears in the right order in your pivot tables and charts, otherwise the name would sort alphabetically.

As always, this is one of many possible approaches. This particularly approach uses the FORMAT and VALUE DAX functions which you can learn more about here and her

June 18th, 2014 4:47am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics