+ Reply to Thread
Results 1 to 7 of 7

Splitting a pivot table into two

  1. #1
    Registered User
    Join Date
    07-19-2021
    Location
    London, England
    MS-Off Ver
    Version 2002
    Posts
    4

    Splitting a pivot table into two

    Hi, I need to produce two pivot tables, one showing the top 30 items and the other showing the next 30. Creating a calculated field (rank value) doesn’t seem to work as it ranks within all columns in the table (I.e. produces multiple 1sts, etc). Using value filters allows the top n (first table works) but I can’t uses these for 31-60. Sounds like this should be easy but I have just wasted a whole morning trying to figure it out. Any advice? Willing to use DAX if there is a way to achieve this via the data model. Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Splitting a pivot table into two

    Can you, please, attach a sample file with no confidential information?
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    Registered User
    Join Date
    07-19-2021
    Location
    London, England
    MS-Off Ver
    Version 2002
    Posts
    4

    Re: Splitting a pivot table into two

    Thanks for looking at this, please see attached example.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-19-2021
    Location
    London, England
    MS-Off Ver
    Version 2002
    Posts
    4

    Re: Splitting a pivot table into two

    A slightly better example.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Splitting a pivot table into two

    Add your table to the PowerPivot data model.
    Add a new column using
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    From data model insert a pivot and choose this new column as a first row label then continue with ID and so on
    Sort by this column ascending and filter as you wish.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-19-2021
    Location
    London, England
    MS-Off Ver
    Version 2002
    Posts
    4

    Re: Splitting a pivot table into two

    Apologies, I should have said that my pivot includes a filter which prevents RANKX from working. Please see updated file.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Splitting a pivot table into two

    Perhaps the following will help.
    As modeled on Sheet1, a new column (Rank by Division) is added to the source data.
    The new column is populated using: =IF([Division]<>J$1,"",SUMPRODUCT(([Value]>[@Value])*([Division]=J$1))+1)
    The pivot table on the left displays the top 30 values a value filter, as used originally, and sorting the values field in descending order.
    The pivot table on the left displays the next 30 values using a 'between' values filter of the Rank by Division field and also sorting that field in ascending order.
    When the filters are changed the left pivot automatically updates, however the one on the right must be refreshed.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Pivot Table Help - Splitting Data Entry Points
    By migos in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 01-30-2018, 02:27 PM
  2. Replies: 6
    Last Post: 01-24-2017, 06:56 PM
  3. pivot table splitting different colums with same value
    By teddy1987 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-23-2015, 02:21 PM
  4. Stop row from splitting on 2 pages when printing pivot table
    By greg28818 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-23-2014, 01:28 AM
  5. Splitting up pivot table fields
    By eoinp in forum Excel General
    Replies: 0
    Last Post: 10-20-2011, 09:16 AM
  6. Replies: 5
    Last Post: 01-05-2011, 11:37 PM
  7. Pivot Table - Splitting out rows
    By shaunshaun in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-18-2008, 10:08 AM

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