Grouping by date disabled in pivot table

sharshra

Active Member
Joined
Mar 20, 2013
Messages
276
Office Version
  1. 365
I have a pivot table where I'm trying to group by week. But dates are disabled in grouping.

Tried all options suggested for similar issue in this forum & elsewhere in the internet. All dates are in date format, but still dates are disabled in grouping. Not sure what is going wrong. Any suggestions?
1639973071068.png
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Can you elaborate on what you mean by they are disabled. The "By" box looks to be selectable in the image.
It looks to me that you are using the Data Model and Power Pivot.

If that is the case and you want to nominate Starting & Ending and Number of Days you will need to use either a Calendar Table and/or DAX.
 
Upvote 0
I should have made it clear! Group by is enabled. I'm able to click on different options (months, quarters, days etc). If I select group by month, data gets grouped by months.

I want to group by week, for which I have to select days & select number of days as 7. When I select days, 'Number of days' is disabled.

Also, I noticed that starting at & ending at are disabled always.
 
Upvote 0
So are you using the Data Model and Power pivot ? If you are then that option does not seem to be available and you need to address it via the calendar table and/or DAX.
 
Upvote 0
I don't need a data model or power pivot for this simple pivot. Normal pivot table will suffice. How can I check if data model of power pivot is applied for this pivot table? If any of these are applied, I would like to convert it to a normal pivot table.

I may continue with data model or power pivot for other pivot tables in the spread sheet, but not for this pivot table.
 
Upvote 0
If you try to change the data source is "Change Data Source" greyed out ?
If it is you are using the data model.

1640002961642.png


Another indication is if the Pivot Fields section has the options of Active & All and the you see the Table symbol in the fields list.

1640002828670.png
 
Upvote 0
Change data source is enabled & it allows me to change data source. So, data model is not used. But, still number of days is disabled.

I created a new pivot table, identical to the one where I have the problem & using the same data source. In the new pivot table, I can group by days & select number of days :biggrin:? It's working for me now, but I really don't know what is the difference. My previous pivot table still has the same problem. Curious to know what would be the problem :unsure:
 
Upvote 0
All dates are in date format,
Be careful of the difference between Cell formatting and an actual date in a cell.
A cell may be formatted for Date. The value in the Cell may look like a date. But the TEXT is not a date.
However, I am still baffled as having a Text value in the data would keep the Group by Date box from even coming up.
(I'm using O365. I do not remember if previous iterations of Excel behaved differently.)
 
Upvote 0
Just grasping at straws but your image gives the impression you can select the start and end dates. Does it help if you tick those boxes and put in the Min & Max dates ?
 
Upvote 0
The start & finish dates were also disabled along with number of days.

When I created a new pivot table, number of days was enabled. Start & end dates were filled with correct dates. I need not select these explicitly. It's all good that it is working now as expected (y);). But, still curious & struggling to understand why it didn't work before.
1640086602729.png
 
Upvote 0

Forum statistics

Threads
1,215,597
Messages
6,125,741
Members
449,256
Latest member
Gavlaar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top