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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.