+ Reply to Thread
Results 1 to 6 of 6

Filter by value in pivot chart

  1. #1
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    139

    Filter by value in pivot chart

    I have a list of 2000 names and I want the pivot table to show it grouped by industry and also then another one grouped by sub-industry, but the main thing is i want it to count how many have Sales growth below 0%. When I try to filter, every single company comes up and not just those with the negative growth. I made a sample file here - would want column L to be the count (in green) and either sorted by column Q or R. i would want to see the number of companies by column Q or R that have a negative value in L.
    Attached Files Attached Files
    Last edited by dianaCatz; 05-16-2024 at 06:34 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Filter by value in pivot chart

    Is this what you wanted?

    =LET(A,Sheet1!A3:T23,B,Sheet1!A1:T2,C,FILTER(A,INDEX(A,,12)<0),D,UNIQUE(INDEX(C,,17)),E,BYROW(D,LAMBDA(z,SUM(IF(INDEX(C,,17)=z,1,0)))),VSTACK({"Industry","Count <0"},HSTACK(D,E)))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    139

    Re: Filter by value in pivot chart

    Yes, but its a bit of a hard formula. How do i move it to another worksheet, and how do I change columns if needed. if possible could you explain which pieces would be changed for column numbers and a new worksheet? If my worksheet is called RTY how does this change?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Filter by value in pivot chart

    1. The formula IS in another worksheet and requires no further modification to put it in another sheet (???!!!) (apart from sub-formula A (Sheet1!A3:T23), which needs to be adjusted to suit your real data.

    2. Subformula B is redundant and can be deleted B,Sheet1!A1:T2,

    3. RED: 12 corresponds to the sheet column containing the % growth

    4. BLUE. 17 is the sheet column corresponding to Industry

    =LET(A,Sheet1!A3:T23,B,FILTER(A,INDEX(A,,12)<0),C,UNIQUE(INDEX(B,,17)),D,BYROW(C,LAMBDA(z,SUM(IF(INDEX(B,,17)=z,1,0)))),VSTACK({"Industry","Count <0"},HSTACK(C,D)))


    amended file attached.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    139

    Re: Filter by value in pivot chart

    this was so helpful! Thank you!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Filter by value in pivot chart

    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. Filter Pivot chart
    By Rafis200 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-14-2021, 12:41 AM
  2. Replies: 6
    Last Post: 02-04-2020, 03:47 PM
  3. Change Chart Pivot series Colour depending from Pivot Table Filter value
    By BrianAll in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-30-2018, 02:20 PM
  4. Pivot Chart Color Change (from Pivot Filter)
    By BrianAll in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-31-2017, 02:19 AM
  5. Pivot Chart Filter
    By qiyusi in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-03-2016, 07:38 AM
  6. Pivot Chart not updating when Pivot filter changes
    By kmac153 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-30-2014, 02:45 AM
  7. Pivot Chart filter
    By jmccullough in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-02-2009, 10:25 PM

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