Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
emilypinhasi
Frequent Visitor

slicer on list

Hi

i have 2 tables:

 

  • tableA
    • column teams
      • row1 team1
      • row2 team2
      • row3 team3
      • etc
  • tableB
    • column teams
      • row1: team1,team2
      • row2: team2
      • row3: team1,team3
      • etc

 

in a report, i show tableB rows, and would like to use tableA as slicer, get all rows that contain team1 for example. the problem is i cant get the rows with multiple teams in tableB to work

 

*i have a relationship between the 2 columns

 

how do i do that?

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @emilypinhasi

First deselect the relationship between these two tables.

Then create measures in Table A

selected item = SELECTEDVALUE(TableA[teams])

whether contains = SEARCH(SELECTEDVALUE(TableA[teams]),MAX(TableB[teams]),,BLANK())

2.png

To all rows that contain team2 for example, please drag measure [whether contains] in the visual level filter and set "show values when item is not blank"

3.png

 

Best Regards

Maggie

 

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @emilypinhasi

First deselect the relationship between these two tables.

Then create measures in Table A

selected item = SELECTEDVALUE(TableA[teams])

whether contains = SEARCH(SELECTEDVALUE(TableA[teams]),MAX(TableB[teams]),,BLANK())

2.png

To all rows that contain team2 for example, please drag measure [whether contains] in the visual level filter and set "show values when item is not blank"

3.png

 

Best Regards

Maggie

 

works perfect!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.