Filtering a hierarchy

rpmitchell

New Member
Joined
Jun 22, 2011
Messages
43
Hello,

I have created an organizational hierarchy using the DAX patterns available from SQL BI. I used the parent-child hierarchy pattern, which is working great. I have 14,000 employees with 9 roll up levels.

The problem is I have no idea how to filter the hierarchy. For example, I want to see only VPs, and everyone that rolls up to them. Right now, I'm just dropping the "Hierarchy" field onto the row area, and it works great, but how do I filter it? Any ideas would be appreciated.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Well dropping it onto Rows is a form of filtering. Another approach is you could add the Hierarchy into the filter section of the pivot. You can then use the drop down in the filter in the pivot and it will still behave as a hierarchy. Another approach is to add the column that contains the text VPs as a slicer. ie add the column, not the hierarchy as a slicer. I assume this will have the effect of pre-filtering the hierarchy in your rows
 
Upvote 0
Well, when I add a VP slicer, it filters out all the employees under the VP. So, it only shows the hierarchy from the top level down to the VP, but no one under that. I think the problem is that a VP can be on any level. For example, we have senior VPs, and executive VPs, so a simple VP could be on a Level 2, 3, or 4. Level 1 is the CEO, so that's the highest, with Level 9 being the lowest.

I've also tried creating a separate VP table and using that as a Filter, but it also eliminates anyone underneath. I just want to filter out anyone above a VP.
 
Upvote 0
Also, yes, I can select a particular VP from the drop down filter, and that works fine, but I want the pivot to magically give me all VPs and below, without manually selecting them.
 
Upvote 0
How about create another column in your employee table that identifies the job roles you want to see (Ie any VP and lower) and add that as a slicer
 
Upvote 0

Forum statistics

Threads
1,224,138
Messages
6,176,593
Members
452,738
Latest member
kylua

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top