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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
MostafaGamal
Helper V
Helper V

How to make a relation between 2 slicers

Hi all, 

If i have 2 slicers and each one using a column in a table ( 2 separate tables ), how to make the choice in the second slicer is equal to the choice in first slicer , Plesae advise 

 

Capture.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @MostafaGamal 

 

I would not create a second slicer instead I would create a measure and use it in the 'Filter on this visual' section of the chart(s).

 

_filter = IF('Table1'[Department]=SELECTEDVALUE('Table2'[Department]),1,0)

 

Filter it to display only for value 1.

View solution in original post

5 REPLIES 5
extrasiyf
Frequent Visitor

@Anonymous If I create a measure, I cannot put columns inside (like  'Table1'[Department]) what is the solution ? 

lbendlin
Super User
Super User

Your data model does that automatically if the tables are linked. Every visual impacts every other visual unless you specifically tell them not to.

 

Note: What you are doing here is creating a bad (confusing) user experience.

@lbendlin @I don't want to make a relation between the 2 tables because that affects other charts and measures I was wondering if there a way to make the choice of second slicer is the choice in first slicer without creating any relation

Please don't.  Use a single slicer and then control the second table with measures that use SELECTEDVALUE() probing on the slicer.

Anonymous
Not applicable

Hi @MostafaGamal 

 

I would not create a second slicer instead I would create a measure and use it in the 'Filter on this visual' section of the chart(s).

 

_filter = IF('Table1'[Department]=SELECTEDVALUE('Table2'[Department]),1,0)

 

Filter it to display only for value 1.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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