+ Reply to Thread
Results 1 to 8 of 8

Unable to group columns in pivot table

Hybrid View

  1. #1
    Registered User
    Join Date
    01-21-2025
    Location
    Jakarta, Indonesia
    MS-Off Ver
    365
    Posts
    11

    Unable to group columns in pivot table

    Hi, guys. I am relatively new to Pivot Table.

    I am trying to group TL 1&3 to be under OM1 and TL 2&4 under OM2, but the grouping button is not active (grayed out). I can only do grouping the rows (the months into quarters).

    Any help is appreciated. Thanks in advance.
    Attached Files Attached Files
    Last edited by cynthiahfs; 01-23-2025 at 12:12 PM.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Unable to group columns in pivot table

    Hi,

    I don't think you can do that with Pivot Tables they way you are trying.

    You will have to add a Helper Column to you data, and similar to the Column TL, you will need a corresponding column where you will mention (Using formula or otherwise) the OM.

    Then you will have to use that column instead of TL

    File attached for reference
    Attached Files Attached Files
    Last edited by NeedForExcel; 01-21-2025 at 07:51 AM.
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    01-21-2025
    Location
    Jakarta, Indonesia
    MS-Off Ver
    365
    Posts
    11

    Re: Unable to group columns in pivot table

    Quote Originally Posted by NeedForExcel View Post
    Hi,

    I don't think you can do that with Pivot Tables they way you are trying.

    You will have to add a Helper Column to you data, and similar to the Column TL, you will need a corresponding column where you will mention (Using formula or otherwise) the OM.

    Then you will have to use that column instead of TL

    File attached for reference
    Thank you! It actually solved my problem. But, may I know why I can't group those columns? I tried josephteh's reply (pulling the TLs to rows), but it didn't work either.

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Unable to group columns in pivot table

    Pull TL to Rows section of Field List
    > multi-select "TL 1" and "TL 3" > right-mouse-click > Group > change group name to "OM 1"
    Do similarly for "TL 2" and "TL 4"
    TL2 field would be created
    Move TL2 to Columns section and remove TL from Rows section

  5. #5
    Registered User
    Join Date
    01-21-2025
    Location
    Jakarta, Indonesia
    MS-Off Ver
    365
    Posts
    11

    Re: Unable to group columns in pivot table

    Thank you for you reply. It is not grayed out, but it still says "cannot group that selection".

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Unable to group columns in pivot table

    Here is the workbook.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-21-2025
    Location
    Jakarta, Indonesia
    MS-Off Ver
    365
    Posts
    11

    Re: Unable to group columns in pivot table

    Quote Originally Posted by josephteh View Post
    Here is the workbook.
    I just figured out that clicking "add data to data model" made my grouping button grayed out. Pulling TL to rows works. Thank you, josepteh.

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Unable to group columns in pivot table

    You are welcome.

+ 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. Need help with Pivot Table and Slicers to Group Columns
    By tertiaoptio in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-10-2024, 02:17 PM
  2. How to group columns in Pivot table to have a group for Slicer
    By daithy in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-11-2023, 02:49 PM
  3. [SOLVED] Unable to group by date in pivot table
    By moneypennie21 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 10-20-2022, 10:59 AM
  4. [SOLVED] Unable to Group a Number Range in Pivot Table (Excel 2016)
    By azscootergirl in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-10-2019, 02:24 PM
  5. Group Data on Columns in Pivot Table
    By pbergmann in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-21-2018, 01:27 PM
  6. Group in a Pivot table but keep several text data columns as columns..
    By NunesJunior in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 06-22-2017, 04:45 PM
  7. Unable to group dates in a pivot table despite formatting the column
    By MaxwellR in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 12-11-2013, 07:12 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