+ Reply to Thread
Results 1 to 5 of 5

Pivot not grouping dates correctly in rows

  1. #1
    Registered User
    Join Date
    10-29-2020
    Location
    uk
    MS-Off Ver
    365 proplus
    Posts
    9

    Pivot not grouping dates correctly in rows

    Hi there,

    I have a data set of office entries and would like to create a chart to see how the number of people attending the office (by location) is changing month on month so I figured I'd need to arrange my data into a pivot table first and then plot into a line graph.

    My data set has lines that are essentially every time a person swipes their card into an office location, however, I've adding a column called 'Entry' to mark a 1 where the person enters on the day so that we're not counting for when people are swiping multiple times in a day. I then want to pivot my data so that I have the locations across the top, the month as rows, and the number of entries as the values.

    I initially pulled my month column into the rows and excel auto grouped my month, quarter, and year, and so I ungrouped and now excel is showing multiple lines for the same month, however if I try to group by month, then excel ignores the year and groups months in different years together in the same month. I would like to see unique month-year/year-month in the rows but I can't seem to do it.

    I've searched multiple threads online on a similar topic but I don't seem to come across anyone with the same issue.

    Please could someone assist?

    KJ123
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,039

    Re: Pivot not grouping dates correctly in rows

    Change the value in "Month" column to =TEXT([@Date],"yyyy-mmm")

  3. #3
    Registered User
    Join Date
    10-29-2020
    Location
    uk
    MS-Off Ver
    365 proplus
    Posts
    9

    Re: Pivot not grouping dates correctly in rows

    Hey Josephteh, thanks for responding! Ah so this is how I had it set up initially but the reason why I changed it was because it then orders the months alphabetically and so I have to reorder each time I get new data. Is this the only way I can get round my problem?

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,039

    Re: Pivot not grouping dates correctly in rows

    Change the formula to: =EOMONTH([@Date],0), then sort the PivotTable A to Z.

  5. #5
    Registered User
    Join Date
    10-29-2020
    Location
    uk
    MS-Off Ver
    365 proplus
    Posts
    9

    Re: Pivot not grouping dates correctly in rows

    This worked. Thank you!

+ 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. [SOLVED] Dates not Grouping in Pivot
    By Vicarious in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-28-2015, 04:29 PM
  4. Grouping Dates-Pivot Table
    By demice in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 06-07-2013, 06:43 AM
  5. grouping dates in pivot table
    By lintcoop in forum Excel General
    Replies: 8
    Last Post: 01-09-2009, 03:29 PM
  6. 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