• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Hierarchical Table - how to include categories when filtering on details|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Hierarchical Table - how to include categories when filtering on details|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Hierarchical Table - how to include…
sp_PrintTopic sp_TopicIcon
Hierarchical Table - how to include categories when filtering on details
Avatar
Grahm White

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
June 18, 2021
sp_UserOfflineSmall Offline
1
June 18, 2021 - 9:28 pm
sp_Permalink sp_Print

I have a table that contains three levels of data - effectively "category", "sub category" and "item". Something like this:

 Row 1: Category 1

    Row 2: Sub category 1.1

       Row 3: Data item 1

       Row 4: Data item 2

    Row 5: Sub Category 1.2

       Row 6: Data item 3

       Row 7: Data item 4

Row 8: Category 2

    Row 9: Sub category 2.1

       Row 10: Data item 5

       Row 11: Data item 6

       Row 12: Data item 7

Each row has columns such as "Status", "Owner" "Approver" etc (which only apply to the individual data items) and I have slicers so that I can easily filter on such columns. However, because the category and sub category rows do not have this data completed The category and sub-category rows associated with the filtered data items are lost.

Is there a way to show "hierarchical" or "parent" rows so that, for example, if a filter selects data item 3 in row 6 it also displays Row 1 and Row 5 in the example above. I realise this may be a coding requirement rather than a filtering requirement but I'm not sure where to start).

I have attached some example data to make it clearer. Note the three columns called Team, Family and Item - "Item" is always zero if a category or sub-category, all data items have a value >0 in "item" - not sure if this helps.

If anyone has any ideas please let me know...

Thanks, Graham

sp_AnswersTopicSeeAnswer See Answer
Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
June 19, 2021 - 6:46 am
sp_Permalink sp_Print

Hello,

You should arrange your data in a tabular format, see example in attached file.
If you want the layout as you have built in your table, then that can be achieved using a Pivot Table.

Br,
Anders

sp_AnswersTopicAnswer
Answers Post
Avatar
Grahm White

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
June 18, 2021
sp_UserOfflineSmall Offline
3
June 19, 2021 - 6:44 pm
sp_Permalink sp_Print

Thanks Anders that's a great help. I really appreciate that you have gone to the trouble of sending me back a revised example with your suggestion - so much easier than trying to figure it out from the text description...  I have a follow up question which I think is something that can't be done, but I'd like to check. 

Is there any way that the original data in the table can be updated by updating the pivot table? 

For example, the pivot table is a nice friendly way to discuss things such as dates, if a date needs to change is there any way that I can change it in the pivot table during a live discussion - or must I go back to the original table and change it there?

Thanks again for your help,

Graham

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
4
June 20, 2021 - 6:39 am
sp_Permalink sp_Print

Hello,

The Pivot Table (PT) only shows the data from the source table, so you need to change in the source and then update the PT to get the new values. So you can not change the data in the PT, it needs to changed in the source table.

Br,
Anders

Avatar
Grahm White

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
June 18, 2021
sp_UserOfflineSmall Offline
5
June 20, 2021 - 8:29 am
sp_Permalink sp_Print sp_EditHistory

Thanks again Anders, it's as I thought.

Sorry to ask but I have one more question:

2) The order of items change in the PT - I see it happens in your example also e.g. rows 25 & 26 in your pivot table are reversed from the source (rows 3 & 4 in the table). Is it possible to ensure 100% same order as source?

Thanks in anticipation,

Graham  

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
6
June 20, 2021 - 7:41 pm
sp_Permalink sp_Print

Hello,

The only solution I know of being reliable enough is to add numbers to the text you want to sort by. See attached file for an example.

Br,
Anders

Avatar
Grahm White

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
June 18, 2021
sp_UserOfflineSmall Offline
7
June 21, 2021 - 7:15 pm
sp_Permalink sp_Print

OK got it. Thanks again for all your kind help.

 

Graham

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Mark Carlson, Calvin Richardson
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
yashal minahil
Oluwadamilola Ogun
Yannik H
dectator mang
Francis Drouillard
Orlando Inocente
Jovitha Clemence
Maloxat Axmatovna
Ricardo Freitas
Marko Meglic
Forum Stats:
Groups: 3
Forums: 24
Topics: 6201
Posts: 27185

 

Member Stats:
Guest Posters: 49
Members: 31861
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.