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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Pinky0404
Helper III
Helper III

Comparing two tables

Hi All,

 

I have 2 tables, Table 1 and Table 2 , Both has different structure and i am trying to find the  list of users  from table 2 who are not  in table 1. I have merged the tables, but unable to figure it out. Any help would be highly appreciated.

 

Thanks,

Pinky

1 ACCEPTED SOLUTION
Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @Pinky0404

 

There are a few ways you can do this.

 

In DAX you can use the EXCEPT function to generate that as a list.

 

https://msdn.microsoft.com/en-us/library/mt243784.aspx

 

You can create this a as a calculated table if you prefer something like,

 

New Table = 
 EXCEPT( SELECTCOLUMNS(TableA , "UserID" , [UserID]) ,
SELECTCOLUMNS(TableB , "UserID" , [UserID]) ,
)
                

That approach will give you a list of Users that appear in TableA, but don't appear in TableB

 

Otherwise try a Left outer join in Power Query.

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
drewlewis15
Solution Specialist
Solution Specialist

You can try using a Left Anti merge, starting with Table 2.  This will show you records that exist in Table 2 that do not exist in Table 1 based on whatever field relates the two tables.

Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @Pinky0404

 

There are a few ways you can do this.

 

In DAX you can use the EXCEPT function to generate that as a list.

 

https://msdn.microsoft.com/en-us/library/mt243784.aspx

 

You can create this a as a calculated table if you prefer something like,

 

New Table = 
 EXCEPT( SELECTCOLUMNS(TableA , "UserID" , [UserID]) ,
SELECTCOLUMNS(TableB , "UserID" , [UserID]) ,
)
                

That approach will give you a list of Users that appear in TableA, but don't appear in TableB

 

Otherwise try a Left outer join in Power Query.

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.