Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a slicer that shows students name & the slicer removes duplicate names even if the students have different student ids.
Here is my table:
StudentId | StudentName |
1 | Ann |
2 | Bob |
3 | Mila |
4 | Mila |
5 | Bob |
I want the slicer to display names based on student ids.
Appreciate any help.
Hi @SR1 ,
One of way is to use both column in slicer, it will create hierarchy level as below:
And also enable search in this slicer, so if user knows name, he just type few initial, and all duplicates are filtered on display for easy viewing and selection:
Hope it helps.
I was able to do it with some conditions,
Also, I understand that for the HR dashboard people tend to remember by names rather than ID and hence this requirement came to us as well because the end-user did not want to have IDs in the Slicer
Step 1
Hi @SR1,
No. It is not possible to show duplicate names in slicer. A slicer always lists unique items. In this scenario, if there two slections for Mila, when we choose this value, which StudentId should be matched with it, it is not able to determine.
Regards,
Yuliana Gu
You could create a calculated column to combine the two columns into a unique identifier with the following:
UniqueID = COMBINEVALUES("-",Table[StudentName],Table[StudentId])
This will create a column with "Ann-1", "Bob-2", "Mila-3", "Mila-4", etc. You can then use this column in your slicer.
Hope this helps,
Parker
Hi @Anonymous . Thanks for replying! I don't want to display the ids in slicer. Is there any other way to do?
Hmm I don't think I know a way to do that with a slicer. An alternative approach would be to simply use a table as a slicer. You could then show all names with respect to their ID's but a table obviously comes with some limitations. Hopefully someone else knows how to accomplish this!
-Parker
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
49 | |
45 | |
38 | |
37 |