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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
kkalyanrr
Helper V
Helper V

2 slicers based on the same field/column, but should exclude first slicer selection

Hello Team,

I'm looking for a solution to the below issue, please help..
Both slicers X1, X2 are based on the same column/field..but my requirement is when I pick a person from first slicer..that name should disappear in second slicer...any idea on how to implement the logic here..
Thanks.

kkalyanrr_0-1666197353761.png

 

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

Hi , @kkalyanrr 

I didn't find the way to realize it in the slice. The reason is as follows:
(1)Measures cannot be placed in slicers.

(2)Tables don't have a filtering context, and we can't generate a table dynamically

 

We ca realize it in the table , If this helps you, you can refer to it:

(1)This is  my test data :

vyueyunzhmsft_0-1666232618601.png

(2)We can click "New Table" to  create another table:

Table 2 = VALUES('Table'[test])

(3)We can create  a measure :

Measure = var _slice= VALUES('Table'[test])
return 
IF( SELECTEDVALUE('Table 2'[test]) in _slice ,0,1)

(4)We can put the 'Table'[test] in the slice and the 'Table2'[test] in the table, then we need to configure the "Filter on this visual" in the table, like this:

vyueyunzhmsft_2-1666232762137.png

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @kkalyanrr 

I didn't find the way to realize it in the slice. The reason is as follows:
(1)Measures cannot be placed in slicers.

(2)Tables don't have a filtering context, and we can't generate a table dynamically

 

We ca realize it in the table , If this helps you, you can refer to it:

(1)This is  my test data :

vyueyunzhmsft_0-1666232618601.png

(2)We can click "New Table" to  create another table:

Table 2 = VALUES('Table'[test])

(3)We can create  a measure :

Measure = var _slice= VALUES('Table'[test])
return 
IF( SELECTEDVALUE('Table 2'[test]) in _slice ,0,1)

(4)We can put the 'Table'[test] in the slice and the 'Table2'[test] in the table, then we need to configure the "Filter on this visual" in the table, like this:

vyueyunzhmsft_2-1666232762137.png

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors