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
Hi everyone,
Reasonably new to Power BI, so greatly appreciate any assistance with my current challenge.
I have a table of data, showing the sports an individual plays. When an individual plays more than one sport, they are spread across multiple columns, as shown in the 'SampleValues' table below.
I am hoping to create a single slicer which allows a report user to select one sport, filtering the SampleValues table to anyone playing that sport. For example, if tennis is selected in the slicer, it would return rows 1, 6, and 7, and 9.
I have tried using a concatenated column (with COMBINEVALUES) and a new table for slicer values ('SlicerValues', below); however, as the values in SlicerValues (e.g. Tennis) don't match exactly with concatenated values (e.g. Tennis;; or Basketball;Tennis;), it does not properly filter.
I have also tried setting up relationships between the SlicerValues table and Sport1,Sport2,Sport3 columns in SampleValues, but Power BI seems to restrict to only one relationship per table pair.
'SlicerValues' Table:
Sport |
| Baseball |
| Basketball |
| Cricket |
| Football |
| Soccer |
| Tennis |
'SampleValues' Table:
| Name | Age | Sport 1 | Sport 2 | Sport 3 | Sport Summary |
| 1 | a | Tennis | Tennis;; | ||
| 2 | b | Soccer | Football | Soccer;Football; | |
| 3 | c | ;; | |||
| 4 | d | Basketball | Cricket | Basketball;Cricket; | |
| 5 | e | Football | Football;; | ||
| 6 | f | Football | Cricket | Tennis | Football;Cricket;Tennis |
| 7 | g | Tennis | Tennis;; | ||
| 8 | h | ;; | |||
| 9 | i | Basketball | Tennis | Basketball;Tennis; |
Many thanks in advance for any suggestions or advice you many have.
Solved! Go to Solution.
@JJJ109 , One way is to have active and inactive join, both of them with slicer assume sport 1 is active and sport 2 is inactive
Create a measure to count
M1= count(SampleValues[Name]) + calculate( count(SampleValues[Name]), userelationship(SampleValues[Sport 2], SlicerValues[Sport]) )
or refer
Power BI- Text Part slicer to filter/search text - https://youtu.be/MKKWeOqFG4c
https://medium.com/@amitchandak/power-bi-search-text-parts-in-text-ad2f9783ffa2
If you don't need to see Sports 1, Sports 2, and Sports 3,
Then unpivot the columns and connect them to Sport
and table visual
I hope it helps
@JJJ109 , One way is to have active and inactive join, both of them with slicer assume sport 1 is active and sport 2 is inactive
Create a measure to count
M1= count(SampleValues[Name]) + calculate( count(SampleValues[Name]), userelationship(SampleValues[Sport 2], SlicerValues[Sport]) )
or refer
Power BI- Text Part slicer to filter/search text - https://youtu.be/MKKWeOqFG4c
https://medium.com/@amitchandak/power-bi-search-text-parts-in-text-ad2f9783ffa2
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!