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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
icturion
Resolver II
Resolver II

FIlter table based on values other table

hello,

Hopefully someone can help me with the following. I have two tables with a one-to-many relationship. Now the intention is to filter the records of table 1 based on certain column values ​​in table 2.

 

For exmple:

 

Table1

icturion_0-1602083320556.png

Table2

table 2.JPG

 

Column tbale 1 = If the ID in tabel 1 has A1 and A2 then Cat1 or B1 and B2 then Cat2 else emplty

 

My question is hoe to write this in Power BI

 

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

hi @icturion 

In table1, create a column as below:

13.JPG

 

and here is sample pbix file, please try it.

 

Regards,

Lin

Community Support Team _ Lin
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

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi @icturion 

In table1, create a column as below:

13.JPG

 

and here is sample pbix file, please try it.

 

Regards,

Lin

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

Great this is exactly what i was looking for, thank you

amitchandak
Super User
Super User

Hello Amitchandak,

when I do that I only see the record that match in both tables. I don't have the solution with that. the intention is to show only those IDs that match the conditions.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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