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

The Fabric Community site will be in read-only mode on Monday, Feb 24 from 12:01 AM to 8 AM PST for scheduled upgrades.

Reply
Anonymous
Not applicable

Filter one table based on slicer value of another table in PowerBI?

I want to filter Table2 on the basis of values selected in Table1 without creating any relationship between two tables.

For example,

Table1 has column: A with values {1,2,3}

Table2 has column: B {1,2,3,4,5,6,1,...} and C {a,c,b,d,e,s,d...}


If I select "1" from Table1 then Table2 should get filtered without creating relationship. How to do the same?

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

Hi @Anonymous ,

 

To create a measure as below and make the visual filtered by it.

Measure = var  a = VALUES(Table1[column A])
return
IF(MAX(Table2[Column B]) in a, 1,0)

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

To create a measure as below and make the visual filtered by it.

Measure = var  a = VALUES(Table1[column A])
return
IF(MAX(Table2[Column B]) in a, 1,0)

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

What if we have more than 1 filter in table 1? Example, if we have 2 columns in Table 1 and we want only the values of Table 2 that meet the filter criteria applied in Table 1

Hello,

 

Can you please explain how the DAX expression works?

I am particulary confused by the logical test in the IF statement.

 

Thank you!

L

Anonymous
Not applicable

Thanks a lot for help. Solution worked!! 🙂

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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