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
sasdfasdfsad
Helper IV
Helper IV

How to apply filters bidirectionally only for one filter search?

With this example data model:

I want to do a search for CustomersLogin table's "LoginEmail" and that works totally fine.

HOWEVER, if we need to search by an ALTERNATIVE email in the CustEmails table, that's where I am running into issues due to directional filtering.

sasdfasdfsad_1-1723156566299.png

sasdfasdfsad_2-1723156584479.png

 

Now if I do CustomerID 88 with LoginEmail fo bob@msft.com it works just great

sasdfasdfsad_3-1723156705298.png



Imagine though bob forgot his login email and we want to search all his possible AltEmails so we do bob@msdn.com
Now of course it falls apart as filtering is not bidirectional

sasdfasdfsad_4-1723156756239.png



However, if I enable bidirectional filtering that impacts my entire data model.

Can I use bidirectional filtering for only a SPECIFIC filter or measure or instance?

OR... 

Can I do some sort of lookup where I find the CustomerID in the CustEmails tables and then apply that filter across the PBI page?

*I could add the CustEmail.AltEmails column to that specific filter as a hierarchy but I'd like to find a way to make it work more naturally than that.

Is there anyway to do that?

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@sasdfasdfsad , If you want to just make the slicer filter each other 

from RADACAD

https://www.youtube.com/watch?v=cyOquvfhzNM

 

How to filter the slicer of a disconnected table: https://youtu.be/cV5WfaQt6C8

 

Same way you can create a measure using treatas to pass the values across

https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Anonymous
Not applicable

Hi @amitchandak ,thanks for the quick reply, I'll add more.

Hi @sasdfasdfsad ,

Regarding your problem, maybe you can use the 'CROSSFILTER' function.

CROSSFILTER function - DAX | Microsoft Learn

Use the following DAX expression to create a measure

Measure = CALCULATE(MAX('CustomersLogin'[LoginEmail]),CROSSFILTER('CustEmails'[CustomerID],'CustomersLogin'[CustomerID],Both))

Final output

vzhouwenmsft_0-1723170329665.png

 

Best Regards,
Wenbin Zhou

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @amitchandak ,thanks for the quick reply, I'll add more.

Hi @sasdfasdfsad ,

Regarding your problem, maybe you can use the 'CROSSFILTER' function.

CROSSFILTER function - DAX | Microsoft Learn

Use the following DAX expression to create a measure

Measure = CALCULATE(MAX('CustomersLogin'[LoginEmail]),CROSSFILTER('CustEmails'[CustomerID],'CustomersLogin'[CustomerID],Both))

Final output

vzhouwenmsft_0-1723170329665.png

 

Best Regards,
Wenbin Zhou

amitchandak
Super User
Super User

@sasdfasdfsad , If you want to just make the slicer filter each other 

from RADACAD

https://www.youtube.com/watch?v=cyOquvfhzNM

 

How to filter the slicer of a disconnected table: https://youtu.be/cV5WfaQt6C8

 

Same way you can create a measure using treatas to pass the values across

https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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