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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Create hierarchy for filter from the same table

Hi all, I was trying to group the data from a table column (brand) into A, B, C....Z so that I can use them as the filter. Example as shown below:

 

TableName:

image.png

 

 

 

 

 

 

 

 

 

 

 

 

Data in column 'brand' showing in filter now:
image.png

 

 

 

 

 

 

 

 

 

 

 

 

 

What I want to achieve:
image.png

 

 

 

 

 

 

 

Hopefully someone can guide me through this, thank you!

1 ACCEPTED SOLUTION

@Anonymous,

Import Hierarchyslicer custom visual to Power BI Desktop, then create HierarchySlicer.

1.JPG2.JPG


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@Anonymous,

You can use Grouping feature in Power BI Desktop to group the data into A,B,C….Z, then you are able to filter data using the group column.

1.JPG

Regards,
Lydia

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

Hi @v-yuezhe-msft and @AGo,

 

Thanks for the reply!

 

Just wondering if I can achieve something similar to the example below instead of grouping them as I want to show it in a dropdown list: 

 

image.png

 

Cheers!

 

@Anonymous,

Import Hierarchyslicer custom visual to Power BI Desktop, then create HierarchySlicer.

1.JPG2.JPG


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AGo
Post Patron
Post Patron

Are you meaning you want to filter brands by the first letter?

Anonymous
Not applicable

Yes!

You have to create a new column in the table brands with the LEFT function: LEFT(brand;1) .

And use that column in your filter.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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