Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I have table that shows the genres associated with a movie (i.e Drama, Terror, Comedy). The movies have multiple genres associated with. I would like to slice my visuals using one main Genre. I.E. All Comedy Movies. I have created a table within Power BI Desktop with all the genres. Then, I created a relationship between this table and the one with all the movie's records. Then I createad a Slicer using the values of the new table, and it filters the movies. But only the ones that have only one value for genre.
Can anyone help me how can I use the slicer to filter the lines that contains the genre, rather than the lines that are equal to the genre?
Thank you!
relationship
filtered
all values
Solved! Go to Solution.
Hi,
I have created a sample file with the details you provided.
Please check if this works for you.
From the sample data you provided I have noticed there is delimter which seperating each Genere.
So, I have split this column based on Comma delimeter and created another table which acts as a dimension table for your slicer.
Related these 2 tables based on Movie name.
-------------
Another possible solution is you can duplicate the filed and unpivot it and use that Genere filed for slicer.
Solution1:
Solution2:
Regards,
Ananth
Hi,
I have created a sample file with the details you provided.
Please check if this works for you.
From the sample data you provided I have noticed there is delimter which seperating each Genere.
So, I have split this column based on Comma delimeter and created another table which acts as a dimension table for your slicer.
Related these 2 tables based on Movie name.
-------------
Another possible solution is you can duplicate the filed and unpivot it and use that Genere filed for slicer.
Solution1:
Solution2:
Regards,
Ananth
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 46 | |
| 40 | |
| 38 | |
| 22 |
| User | Count |
|---|---|
| 176 | |
| 131 | |
| 118 | |
| 82 | |
| 54 |