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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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