Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to filter only the first level in the hierarchy

Hi,

I have a question about filtering and pivot table. Support I have an
Employees dimension, which has a parent-child hierarchy to match the
management hierarchy. I also have another dimension called [City].

Suppose my management hierarchy, together with where that person lives, look
like this:

Tom (Seattle)
|----- Kate (Seattle)
|----- Jimmy (New York)
|----- Patrick (Tokyo)

Linda (Portland)
|----- Susan (Denver)
|----- Willis (Portland)


Using pivot table in Excel, I can easily see the drill down the hierarchy
and see the aggregated measures. However, suppose there are hundreds of top
level managers, and so as a user I want to first filter the top managers down
to a specific city (e.g. Seattle). However, if I apply the City=Seattle
filter, I will filter out the reports as well, and so Jimmy and Patrick will
be filtered out. But thats not what I want.

Is it possible to apply the filter only on the first level? Can I achieve
that using two pivot tables?

Thanks,
Patrick

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default How to filter only the first level in the hierarchy

I think you'd need to segregate the MgrCity values from the EmployeeCity
values.

Try something like this:

Mgr MgrCity Employee EmployeeCity
Tom Seattle Kate Seattle
Tom Seattle Jimmy New York
Tom Seattle Patrick Tokyo
Linda Portland Susan Denver
Linda Portland Willis Portland

When Pivot Tabled (a word..yes?) you'd be able to filter on MgrCity and see
all managers in that city along with ALL of there employees.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Patrick Ng" wrote:

Hi,

I have a question about filtering and pivot table. Support I have an
Employees dimension, which has a parent-child hierarchy to match the
management hierarchy. I also have another dimension called [City].

Suppose my management hierarchy, together with where that person lives, look
like this:

Tom (Seattle)
|----- Kate (Seattle)
|----- Jimmy (New York)
|----- Patrick (Tokyo)

Linda (Portland)
|----- Susan (Denver)
|----- Willis (Portland)


Using pivot table in Excel, I can easily see the drill down the hierarchy
and see the aggregated measures. However, suppose there are hundreds of top
level managers, and so as a user I want to first filter the top managers down
to a specific city (e.g. Seattle). However, if I apply the City=Seattle
filter, I will filter out the reports as well, and so Jimmy and Patrick will
be filtered out. But thats not what I want.

Is it possible to apply the filter only on the first level? Can I achieve
that using two pivot tables?

Thanks,
Patrick

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to filter only the first level in the hierarchy

Hi Ron,

Thanks a lot for your reply. If I have that column it should be a good way.

On the other hand, a colleague provided me with a solution in Excel 2007 (I
haven't tried it in Excel 2003) which I think is pretty cool too:

"You could filter the managers in Seattle, select the visible managers and
apply filter / keep only selected items. Now you remove the filter on
Seattle and expand the managers to the next level."

"Ron Coderre" wrote:

I think you'd need to segregate the MgrCity values from the EmployeeCity
values.

Try something like this:

Mgr MgrCity Employee EmployeeCity
Tom Seattle Kate Seattle
Tom Seattle Jimmy New York
Tom Seattle Patrick Tokyo
Linda Portland Susan Denver
Linda Portland Willis Portland

When Pivot Tabled (a word..yes?) you'd be able to filter on MgrCity and see
all managers in that city along with ALL of there employees.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Patrick Ng" wrote:

Hi,

I have a question about filtering and pivot table. Support I have an
Employees dimension, which has a parent-child hierarchy to match the
management hierarchy. I also have another dimension called [City].

Suppose my management hierarchy, together with where that person lives, look
like this:

Tom (Seattle)
|----- Kate (Seattle)
|----- Jimmy (New York)
|----- Patrick (Tokyo)

Linda (Portland)
|----- Susan (Denver)
|----- Willis (Portland)


Using pivot table in Excel, I can easily see the drill down the hierarchy
and see the aggregated measures. However, suppose there are hundreds of top
level managers, and so as a user I want to first filter the top managers down
to a specific city (e.g. Seattle). However, if I apply the City=Seattle
filter, I will filter out the reports as well, and so Jimmy and Patrick will
be filtered out. But thats not what I want.

Is it possible to apply the filter only on the first level? Can I achieve
that using two pivot tables?

Thanks,
Patrick

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Refresh advanced filter Dan Excel Discussion (Misc queries) 1 March 25th 06 01:33 AM
Filter Assembler Level jknapp Excel Worksheet Functions 0 February 15th 06 09:56 PM
Auto Filter - Protected sheet/workbook ronwill Excel Discussion (Misc queries) 3 January 10th 06 03:28 PM
Macro for Filter Switches ... Maybe??? Ken Excel Discussion (Misc queries) 4 February 25th 05 05:30 PM
advanced filter won't allow me to filter on bracketed text (-456.2 LucianoG Excel Discussion (Misc queries) 1 December 6th 04 08:38 PM


All times are GMT +1. The time now is 11:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"