+ Reply to Thread
Results 1 to 6 of 6

Group/Ungroup disabled in Pivot Table - Excel 2013

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    3

    Group/Ungroup disabled in Pivot Table - Excel 2013

    Hi,

    I have a Pivot Table that's referencing a SQL server query as the Data Connection. The query is pretty straightforward. I just want to get a list of the usernames and the date the accounts were created.

    SELECT
    [Accounts].[Username],
    convert(datetime,[Accounts].[DateCreated]) AS [DateCreated]
    FROM
    [Accounts]

    I can get this working in a pivot table, but I want to group the dates by a range so I can see how many accounts were created in the month of May. This is where I'm stuck. The group/ungroup options are disabled.

    Untitled.png

    What I've tried:

    1. I've made sure that the column is formatted by date
    2. If I copy the data in the table to another worksheet and create a pivot table all works fine. I'm able to group my dates.

    Is it possible that grouping and ungrouping aren't available when pulling data from a SQL query?

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Group/Ungroup disabled in Pivot Table - Excel 2013

    you get better help if you add an excel file, without confidentional information.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Group/Ungroup disabled in Pivot Table - Excel 2013

    Right click on one of the cells in in the date column of your pivot table, Group, months.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  4. #4
    Registered User
    Join Date
    05-13-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Group/Ungroup disabled in Pivot Table - Excel 2013

    Kevin, if you take a look at Untitled.png you can see that "Group" is disabled.

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Group/Ungroup disabled in Pivot Table - Excel 2013

    hutch100

    Perhaps, upload a small sample file.

  6. #6
    Registered User
    Join Date
    05-13-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Group/Ungroup disabled in Pivot Table - Excel 2013

    I would if I could, but as it's connecting to a SQL server I can't give you a small sample. When I manually copy the dates onto a new table, the grouping works as expected, so I was guessing it had something to do with the SQL connection.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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