Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Slicer Hierarchy Search

Hi,

 

I was wondering if it is possible to search two different columns in a table using something similar to a Heirarchy slicer.

 

My problem is:

 

I have two different columns: "Project Head" and "Project Lead". I would like to search for people in one of these columns, or both using a heirarchy slicer. The Slicer would look something like this:

 

  • Bob
    • Project Head
    • Project Lead
  • John
    • Project Head

...

 

I would like to be able to filter for Bob, searching both columns if I select both "Project Head" and "Project Lead".

Performing a different search, I would like to be able to filter the table for Bob in only "Project Head"

 

Let me know if this is possible. Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for you're response! This was not exactly what I was looking for but pushed me in the right direction.

 

First I took my original table and added an index column to it:

Capture.PNG

 

Then, I made a copy of this table, deleting the "Project Name" column as this was not needed. I then used "Unpivot Columns" on columns "Project Lead" and "Project Head":

 Capture2.PNG

 

This then allowed me to close my queries, and edit the relationships in the main page. For this, I made a relationship between the indexes, Cross Filtering in Both Directions:

Capture3.PNG

 

I could then create my table and Hierarchy Slicer. The Hierarchy Slicer can filter the table for one column, or both, depending on the selection:

 

 Capture4.PNG

 

View solution in original post

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

Suppose sample table is like this.

6.PNG

 

In Query editor mode, choose [Project Head] and [Project Lead], click "unpivot columns" to convert table to below structure.

2.PNG3.PNG

 

In report view mode, drag [Name] and [Head/Lead] fields into custom visual HierarchySlicer. And use a Matrix visual to display data.

4.PNG5.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks for you're response! This was not exactly what I was looking for but pushed me in the right direction.

 

First I took my original table and added an index column to it:

Capture.PNG

 

Then, I made a copy of this table, deleting the "Project Name" column as this was not needed. I then used "Unpivot Columns" on columns "Project Lead" and "Project Head":

 Capture2.PNG

 

This then allowed me to close my queries, and edit the relationships in the main page. For this, I made a relationship between the indexes, Cross Filtering in Both Directions:

Capture3.PNG

 

I could then create my table and Hierarchy Slicer. The Hierarchy Slicer can filter the table for one column, or both, depending on the selection:

 

 Capture4.PNG

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.