Forum Discussion

p0wer_user's avatar
p0wer_user
Regular Visitor
2 years ago
Solved

Creating Hierarchy Slicer For Specific Values Only

Hello,   I'm having a hard time building a slicer that has a hierarchy for specific values only. I'm working on a customer data set. I want to group some company names that are in the same mother ...
  • parry2k's avatar
    2 years ago

    p0wer_user add another column in your table for the group, I'm sharing how to do it in Dax but preference is always to do it in PQ or at the source.

     

    Group = LEFT ( Table[Company Name], 1 )

     

    In slicer, drop group column and company name column and it will take care of it.

     

  • Anonymous's avatar
    Anonymous
    2 years ago

    Thank you parry2k for your prompt reply.

    Hi p0wer_user ,
    parry2k has led you on the right path. I saw that you did not respond to this reply and made an example to help you understand the issue better. I hope our replies will be helpful to you.
    1. Add a new column.

     

    group = LEFT('Table'[Company Name],1)

     


    2. Put group and Company Name into the slicer.

    Final output:

    How to Get Your Question Answered Quickly - Microsoft Fabric Community

    If it does not help, please provide more details with your desired out put and pbix file without privacy information.

     

    Best Regards,

    Ada Wang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.