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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
andreazambon
Helper V
Helper V

Show a table with values not included in another table

Hi there, 

 

I have a table (call it Table1) where I have some product IDs.

Suppose to have another Table (Table2) where I have some IDs of Table1, but I don't have all of them.

 

I need to show the elements of Table1 that are NOT presents in the Table2. What kind of join do you suggest in this case?

 

Ex Table1: 

ID1

ID2
ID3
ID4
ID5

 

 

Ex Table2:

 

ID1
ID3
ID5

 

 

Resul table:

ID2

ID4
1 ACCEPTED SOLUTION

Hi @NaveenGandhi , 

 

Actually I don't like to create table in DAX language because I wouldn't see them in powerquery. 

I got it: 

In powerquery, I Merge as a new table T1 and T2 using Left Anti Merge. This way, the new table is composed only by rows that appears in T1 and not in T2. 😉

View solution in original post

2 REPLIES 2
NaveenGandhi
Super User
Super User

Hello @andreazambon 

Try the below Dax to create the table.

T3 = EXCEPT(t1,t2)

Let me know if this helps!

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Hi @NaveenGandhi , 

 

Actually I don't like to create table in DAX language because I wouldn't see them in powerquery. 

I got it: 

In powerquery, I Merge as a new table T1 and T2 using Left Anti Merge. This way, the new table is composed only by rows that appears in T1 and not in T2. 😉

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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