Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
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 company but leave other companies by themselves.
This is an example data set I have.
--------------------
Company Name
A1
A2
A3
A4
B1
B2
C
D
E
--------------------
I want to group the A1-A4 as a A group and B1-B2 as a B group in the slicer. At the same time, I want to able to see the grouped companies individually under group A and B in the slicer(like hierarchy). I don't know how to create a slicer that does this. If someone can help me with this, I would be greatly appreciated!
Solved! Go to Solution.
@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.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
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.
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.
@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.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.