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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Zilver
Regular Visitor

Show only matching values from multiple tables

Hi all,

I have 2 tables like this :

 

Table 1

Ord_NumberStatus
10D
20D
30D

 

Table 2

Ord_NumberStatus
40U
50U

 

and I have Table 3 have so many numbers including some values from table 1 & 2 like this:

 

Table 3

Ord_NumberStatus
10D
15D
20D
45U
50U

 

So what i'm trying to do to show all the data who matched in table 1 and 2 like this:

 

Table 3

Ord_NumberStatus
10D
20D
50U

 

Thanks all

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @Zilver , 

You could create a table to union table1 and table2 's column, then create relationship between table3, then use not blank in filter, which will work.

Or you also could use measure to achieve this goal(don't create relationship between new table and table 3). You could refer to my sample for details.

Best Regards,
Zoe Zhi

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

5 REPLIES 5
dax
Community Support
Community Support

Hi @Zilver , 

You could create a table to union table1 and table2 's column, then create relationship between table3, then use not blank in filter, which will work.

Or you also could use measure to achieve this goal(don't create relationship between new table and table 3). You could refer to my sample for details.

Best Regards,
Zoe Zhi

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

amitchandak
Super User
Super User

Table 3, the last one is common of 1 and 2. But one and two had nothing common.

But refer

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

So far what I did is I create table 3 and I put table 1&2 in (filter on this page) and I select filter type : basic filtering "select all" for both table. and ofc I create relationship between them as (many to one)(both).

and didn't work 😞

 

please if someone could help me how to fix that I really appreciate it.

What is the logic to achieve this table

Table 3

Ord_NumberStatus
10D
20D
50U

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I do have the same problem. In my specific case I use names instead of numbers. Imagine data since 2019 from my team. In all this team some people left the team. I have a table with EVERYONE since 2019 and another with only the ones that are in the team right now. I want to use my second table to filter he first one so only the values of the second will appear.

So in resume. The first table as thousand of rows and columns. And the second one only has the names that I wat to "filter".

 

 

NamesAgeIDetcetcetc
Mike741325etcetcetc
Freddy261326etcetcetc
Carl997653etcetcetc
Mark341746etcetcetc
John579816etcetcetc
Mary862749etcetcetc
Amitchandak
305472etcetcetc

 

Names

John

Mary
Mark
Amitchandak

 

My final result should look like this

 

NameAgeIDetcetcetc
Mary862749etcetcetc
Mark341746etcetcetc
Amitchandak305472etcetcetc
John579816etcetcetc

 

 

Also , this should be displayed in a bar chart

Hope it helps

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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