+ Reply to Thread
Results 1 to 5 of 5

Pivot table not grouping by dates from columns (newbie needs help!)

  1. #1
    Registered User
    Join Date
    01-10-2019
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    2

    Pivot table not grouping by dates from columns (newbie needs help!)

    I have a table which pretty much looks like this (but with monthly data ranging from 2010 to 2019):
    IMG1.JPG

    I want to create a pivot table and group the data by year, quarter etc for each person. For example:
    IMG3.JPG

    But when I create a pivot table from my data I only get these choices:
    IMG2.JPG

    I realize I must be doing something wrong, perhaps the original data is not set up right.

    Can someone please advise me?

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Pivot table not grouping by dates from columns (newbie needs help!)

    original data is not setup right

    your question is very similar to the one posted here
    http://www.excelforum.com/excel-gene...b-tableau.html

    MarvinP has a solution you can use in your situation...requires the use of vba file
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    01-10-2019
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Pivot table not grouping by dates from columns (newbie needs help!)

    Many thanks!

    I wish it would just work on my original data since it's collected from another system, but I'll look into MarvinPs solution!

  4. #4
    Forum Contributor
    Join Date
    08-08-2005
    Location
    Kansas, USA
    MS-Off Ver
    2016
    Posts
    293

    Re: Pivot table not grouping by dates from columns (newbie needs help!)

    Tove:

    You might also check out Power Query (2016 and 365 these functions are in the data tab.) You can load your data into a query and then unpivot it in a single step by selecting to columns to unpivot, right-clicking, and selecting the Unpivot option. Better yet, you can save the query for subsequent use, so if this is something you do routinely, it might be worth the time to figure the new data tools out. Power Query is available as a download from MS for earlier versions (I think 2008 and up) if you don't have the latest versions. Power Query can also import the data from many external sources, saving time there as well.

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Pivot table not grouping by dates from columns (newbie needs help!)

    PQ is the way to go.

    1. For Excel 2010 you can download free add-in. For Excel 2013, you'll need specific license SKU. From 2016 and up, it comes as standard feature and named "Get & Transform" in the ribbon tool.
    2. Convert range to table.
    3. Data tab -> From Table/Range, Go into Editor.
    4. Select all the date/month columns. Right click and "unpivot".
    5. Change "Attribute" column to Date data type and rename columns as needed.
    6. Click on dropdown arrow at "Close & Load" and choose "Close & Load To...", make it as connection only, and load to data model.
    0.JPG

    7. Insert pivot table, using Data model as source. The one with cylinder icon.
    1.JPG
    See attached sample.

    NOTE: Data models from 2013 and up isn't compatible with 2010 version. It uses different engine for the model and 2010 will not be able to interact with model made in newer versions.
    Attached Files Attached Files
    Last edited by CK76; 01-11-2019 at 03:45 PM.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Grouping Dates in Pivot Table
    By kersplash in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-17-2018, 01:27 AM
  2. Grouping by dates- Pivot table-
    By thursday140 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-22-2016, 08:15 AM
  3. Grouping Dates-Pivot Table
    By demice in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 06-07-2013, 06:43 AM
  4. Grouping Dates in Excel Pivot Table
    By mskennedy in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-13-2013, 09:33 AM
  5. grouping dates in pivot table
    By lintcoop in forum Excel General
    Replies: 8
    Last Post: 01-09-2009, 03:29 PM
  6. [SOLVED] Grouping dates in a pivot table
    By Fred Smith in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2006, 10:10 PM
  7. grouping dates in pivot table
    By Charles Maronski in forum Excel General
    Replies: 2
    Last Post: 05-21-2005, 09:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1