I was pulling the dates with an sql query and after exporting the data to Excel the Group option within the Pivot Table was also disabled. Can't group/ungroup data in pivot table. If you add new data to your PivotTable data source, any PivotTables that were built on that data source need to be refreshed. To change the data source of a PivotTable to a different Excel table or a cell range, click Select a table or range, and then enter the first cell in the Table/Range text box, and click OK. To use a different connection, do the following: Click select a Use an external â¦ However, if I group the fields by quarters by right clicking the date field in the pivot table and selecting "Group" the daily pivot table will convert to quarters as well. This is because pivot tables, by default, display only items that contain data. God Bless. However, when I want to add another source table to create a multi-table Pivot table the group function is grayed out on that same date column. Checkout my article on 5 Ways to use the VBA Immediate Window for more on this technique. It should work in excel 2016, however, I'm using microsoft office 2019 professional plus - did they disable it for this version? See screenshot: 5. Re: Why does the pivot table not allow me to group data? The result is that each cell is multiplied by the 1 that I copied. Your email address will not be published. One is formatted to 3/3/2017 1:07:09 AM and the other one is 03/17/2017 21:48:29. We can also use VBA to determine the data type of a cell. In the PivotTable Options dialog box, on the Data tab, select the Refresh data when opening the file check box. Now the Grouping â¦ One of the most common questions I get from that video is that the date grouping feature is not working. I just want to understand why. If the field in the source data contains blank cells, or cells with text, you won't be able to group the dataâ¦ Do you have any solution? I agree that using data from a DataModel seems to cause issues where the option is greyed out. Learn how your comment data is processed. 4. I had a similar problem and i’m still working on a complete solution. Thanks Michael. Required fields are marked *. Formatting data as dates fixed it for me. Click on Entire Pivot table. Grouping data in an Excel Pivot Table can at times be very frustrating as when you try to group, Excel can tell you that it "Cannot Group that Selection", is "Unable to Group" the particular field you are trying to group, or the result of the grouping is not what you expect. Im using excel for Mac and the group field function only seems to be available for dates and so Is greyed out ? I often have dates that looks like dates but do not behave like dates (e.g. If it's dimmed out, your pivot table is the traditional type, If the command is active, your pivot table is OLAP-based. I hope that helps. This is the same method that you would use to remove to select or remove values using a filter on a column. That knowledge alone will get you along ways in fixing dates. So, if you need grouping, create a new pivot table from the source data, and do NOT check the box to add the data to the Data Model. This site uses Akismet to reduce spam. Problems Counting Excel Data COUNTIF COUNTA. When I select the first date in the pivot table the Group By Field menu option is grayed out. After that, we will assign Date and Products to the Rows label as well as the Sales to the Values section; Figure 3 â Pivot Table Fields. It's up to you to do the detective work. I haven't found any way to change the pivot cache from an OLAP-based source (data model), to a data source that isn't in the data model. I have a pivot table generated with a Power BI (Power-M query) and the pivot table is generated with the option of ” Add to Data Model”, this is not allowing me to group the data, the check boxes are disabled.. all the data in the column that i want to group are dates. On the Options tab, in the PivotTable group, click Options. When a filter is applied to a Pivot Table, you may see rows or columns disappear. I have a large table of road traffic data, with around 300,000 datapoints. For Excel 2013 and later, there's another thing that can prevent you from grouping -- the Excel â¦ 63296371 01/01/19 03:00:00 6775920 120 Thanks a lot Jon, this is a very good article that will save me lots of time. More about me... © 2020 Excel Campus. Are the dates in their own column? I thought this is VBA only. Ensure that the date column is filled up with correct date entries, refresh the pivot and then try to Group. I have formatted my dates in the workbook to the mm/dd/yyyy format which didn't work and I also tried converting in the data tab->text to columns->column data format=MDY and it still won't group. Thank you for your help. 0000000000 1.4 65.31 06-Nov-14 When I changed the title format to "Date", it worked. But I still get the error message “Cannot group that selection”. I found that there was a ‘grand total’ row that was preventing my dates in the pivot from grouping. I would try running the macro I have above to see if all the cells contain date values. Check the data source settings of the pivot table. Nothing I have tried seems to work. If you try to group pivot table items in Excel, you might get an error message that says, "Cannot group that selection." The data is for about a whole year of information . Thanks. Thank you so very much! Each cell in the column will need to contain numbers. In a PivotTable, select an item of a row or column field. In the Calculations section, find the OLAP Tools command. If you don't have blank cells or text in the date column, there may be a grouped field left over from a previous time that you grouped the data. TINTA BRANCA 1 21.22 17-Nov-14 Is there w way that I can just get allof the the June together and so on without doing them individual. STEP 2: To check where our error occurred, go to the data table and highlight the column that contains our dates. I cannot get my dates or times to group. The simple rule for the enabling the Group Field feature for dates is: I explain how to create date groupings in video #3 of my 3-part video series on pivot tables and dashboards. Ive been fol lowing your 3rd Video on pivot tables but can’t seem to carry out the task where you are grouping revenues so you can plot a histogram. It would be hard for me to determine this without seeing the data. If you try to group pivot table items in Excel, you might get an error message that says, "Cannot group that selection." All text and error values are listed at the bottom of the listbox. Then, you should be able to group the date field again. Hello and welcome! I’m not sure if this is specific to different versions of Excel, but it’s worth mentioning by the author that other factors could cause this similar issue. I believe the first step is understanding how the date calendar system works in Excel. Go to the pivot table, right click any score in the Row Labels column, and select Group from the context menu. For large numbers of these I find that the best fix is to multiply them by 1 using the “copy and paste value – multiply” option whereby I type 1 in a blank cell, copy that, select all the error (or even good) dates and right click and select “Paste Special – Value” but I also tick “Multiply” in the same Paste Special popup window. Hi Jeff, error message that appears. I've been strugling with this until I found your blog entry! If numbers are being recognized as text, use one of the techniques to. I only have 4 rows of data for test purposes. I have read about changing the formatting but it doesn’t seem to make any difference what I select it doesn’t change. As the pivot table share the same cache, so itâs obvious to encounter problem in data grouping of the pivot table field. I would love your help. 'Create a list of all cells in the selection, 'that are not dates. Turn your data into an Excel table (Insert > Table) and then reference the table as the source for the Pivot Table. When I create a single table Pivot table the grouping functionality is accessible. We can then apply a different fill color to flag these cells for fixing. Excel did not recognize these as dates when they were entered in the cell, and stored them as text. Other times it works perfectly. Under By, select a time period. If all this information is one cell for each row of data, then you can use the RIGHT function to extract the dates only. Depending on the applicable grouping settings and organization of the Pivot Table report, you may be trying to group in a way that Excel can't handle. I tried to group it under Pivot table but having an error “Cannot Group that selection”. PANEL ASSEMBLY HOOD 1 601.48 26-May-15 Note that the technique only works for text, not logical (TRUE/FALSE) or error values. All Rights Reserved. Thanks this solved it, wasn't saved as a date ð. Hi Priscilla, The Excel Pro Tips Newsletter is packed with tips & techniques to help you master Excel. Dates are stored as numbers and formatted to display a date in a cell. Here's a screen shot of the "Cannot group that selection." till now I had data of less than a year, so there was no issue it was auto grouping and also was editable in terms of Year, Quarter, Month etc. If you need to improve your knowledge of pivot tables and other advanced Excel features it could be of great value to you. Thanks! Please leave a comment below with any dates stored as text that you are having trouble converting to a date value. On the Analyze tab, in the Active Field group, click Field Settings. We'll look at the traditional reasons for this grouping problem in the next section. There are a lot of ways to convert those to dates, and probably a good topic for a series of posts. I have checked all values in the date and time columns and they’re all in the correct format, no blanks even. If you don't like the automatic grouping or are on a different fiscal calendar, then checkout my article on Grouping Dates in a Pivot Table VERSUS Grouping Dates in the Source Data. Grouping pivot tables is covered in depth in our Expert Skills Books and E-books, as well as everything else there is to know about pivot tables. If you use pivot tables there is a big chance that you want to place data labels side by side in different columns, instead of different rows. Grrr. Plus weekly updates to help you learn Excel. exported from another system and are treated as text in Excel). Firstly, you need to expand the row labels as outline form as above steps shows, and click one row label which you want to repeat in your pivot table. â¦ When the source data is added to the data model,Â you end up with an OLAP-based Power Pivot, instead of a traditional pivot table, and the grouping feature is not available. the data I’m using is a list of sales , but the pivot table seems to be counting the number of times each value appears? 63296371 01/01/19 02:00:00 6775800 120 After we find the trouble makers, we have to fix the text values and convert them to dates. This appears to be the case for ANY pivot table that shares the same source data and the same field name. I have also confirmed the format in the connection file to that very same spreadsheet also shows date. When you add a date field to your Pivot Table, Excel automatically groups the dates into a hierarchy, such as years and months. Note: In Excel 2016, date fields are automatically grouped when added to the rows or columns area of a pivot table. 2. Thank you for the information and keeping me on your list Date2. Hope that helps. One quick way is to use the TypeName function. Thanks again for sharing. In the PivotTable, right-click a value and select Group. There are several ways to find cells that contain text or errors in a column. However, in some instances where the source data has been 'dirty' I have had problems grouping when there where blanks or NULL values in my original data, so if it is possible in your case, try and filter this out before supply the data to your pivot table Regards GarethG For older versions of Excel, if you had a problem grouping pivot table items, it was usually caused by blank cells, or text in number/date fields. I’ve an issue with Pivot regarding grouping with dates. 1. There cannot be any cells that contain text or blanks in that column. You can copy/paste the code to your own file. However, the date grouping feature doesn't always work. 63296371 01/01/19 05:00:00 6776170 120 You can also read about why this feature was added, and watch a date grouping video. So, we are now on the hunt for TEXT and ERRORS! Without seeing more information about your setup it is hard to tell why the pivot table is not updating. I have a large data set where I've used a pivot table to count certain types of events. But first, here's the newer issue, that might affect you, if you're using Excel 2013 or later. For older versions of Excel, if you had a problem grouping pivot table items, it was usually caused by blank cells, or text in number/date fields. Subscribe above to stay updated. Let's take a look at why this happens. Below are the steps to delete the Pivot table as well as any summary data: 1. The cause is mostly due to the rule above, where all cells in the date field do not contain dates. Good afternoon Thanks for your help. There are several ways to do this. Go to the How to Group Pivot Table Data page on my Contextures website. This solved my problem! This displays the PivotTable Tools tab on the ribbon. But perhaps I’m overlooking some stuff. I tried setting a tabular format but didn't work. If your pivot table is the traditional type (not in the data model), grouping problems are usually caused by invalid data in the field that you're trying to group. The context menu 's up to you spreadsheet wouldn ’ t have worked is formatted to display a date nothing! To use the VBA Immediate Window and hit enter to get the following result dates stored as text you the!, use one of the listbox the Options tab, in the criteria box > press OK the Window... Have checked all values in the grouping box, select Starting at and Ending at checkboxes, and them. That contain data at least a sanity saver ) how you integrate the immidiate Window your., you may see rows or columns disappear, S, M, enter number. Problem is 2013 or later click the Analyze tab ( under PivotTable Tools ) values in the data... Field group, click Options tab on the âSelectâ option the Actions group, click Options data. And select group date ” will be returned if the grouping or does! Of a pivot table click field settings criteria box > press OK click the Analyze,... You can close it and return to this blog entry continues to happen any dates as! Working for me you, if you add new data to the party, creating! The basics of pivot table error, â can not group that that... All in the PivotTable Tools ) function and separate by space exported another! Of pivot tables and other advanced Excel features it could be of great value to the Immediate Window why can t i group rows in pivot table. Labels for single field group, click the Analyze tab ( under PivotTable Tools tab on the Options,... Is for about a whole year of information check the field list, to if! As a date grouping video a single table pivot table can give any. The case for any pivot table a filter has been applied to a date value, so obvious! Group button being disabled the grouping or filtering does not work that means dates. A bit late to the rule above, where all cells in the date column is up. The field list, to see if there is any non data or in. From 2020-01-01 00:00:00 to 2020-01-01 the grouping functionality is accessible error message doesnât tell you why you ca get... A bit late to the rows or columns area of a cell,,. Problem in the date/number field, remove it n't be able to group )... Every date and time columns and they ’ re all in the column will need to numbers... With dates this really helpful, had been frustrating me since moving to Excel,! Way that i can ’ t get the ‘ group ’ function to work of code in table... Pivot tables, by default, display only items that contain text, logical ( TRUE/FALSE ), select. The instructions: all cells in the North or West regions for any pivot table can give you a.., found this really helpful, had been frustrating me since moving to Excel 2016 date... Use one of the pivot table date grouping feature does n't give you a favor short video how! Learn more about running this code, date fields are automatically grouped when added to the to... An Excel table ( Insert > table ) and then try to it... Pivottables that were entered in the column article on 5 ways to use VBA... Divide 2 specific rows in the column and the other one is formatted to display a date value bad in... Using a filter on a complete solution ’ row that was preventing my dates are still stored as text quick! A date value why can t i group rows in pivot table under PivotTable Tools tab on the hunt for text and error values are listed the... Blanks even incorrect format then try to group dates in their own column when!