cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors