Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

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:

 

 

 

 

 

 

 

 

 

 

 

 

Data in column 'brand' showing in filter now:

 

 

 

 

 

 

 

 

 

 

 

 

 

What I want to achieve:

 

 

 

 

 

 

 

Hopefully someone can guide me through this, thank you!

  • Anonymous's avatar
    Anonymous
    9 years ago

    Anonymous,

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




    Regards,
    Lydia

6 Replies

  • AGo's avatar
    AGo
    Post Patron

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

    • Anonymous's avatar
      Anonymous
      Not applicable

      Yes!

      • AGo's avatar
        AGo
        Post Patron

        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.

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.



    Regards,
    Lydia

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Anonymous 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: 

       

       

      Cheers!

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Anonymous,

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




        Regards,
        Lydia