cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ecs70206 Frequent Visitor
Frequent Visitor

Identify duplicates between two tables

Good evening,

 

i've come across a problem im hoping someone can help with.

 

I have two excel spreadsheets loaded into pBI - one contains journey information (Pupils Current) and the other one finance information .

 

they share the route column which I have created a unique key for to link the tables 

 

my problem is that i have 1640 distinct entries  from 14000 on the journey table and only 944  distinct entries on the finance table, i need to identify the distinct entries on the journey sheet that are missing from the finance sheet. So i can see which journeys have been taken but not charged.  i know i should be easy but i just cant seem to think it out - any help would be greatly appreciated 

 

journey .jpgFinance.jpg

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Identify duplicates between two tables

Hi there

If you have created a relationship and you put in a table the values from your table where you have all the journey;s.

And then create a slicer from your second table that has the missing values, is that the slicer will have a BLANK option. So if you click on the BLANK it should then show you the values in your first table that do not have any matching rows.

Did I answer your question? Mark my post as a solution!
"Proud to be a Datanaut!"
Power BI Blog

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Identify duplicates between two tables

Hi there

If you have created a relationship and you put in a table the values from your table where you have all the journey;s.

And then create a slicer from your second table that has the missing values, is that the slicer will have a BLANK option. So if you click on the BLANK it should then show you the values in your first table that do not have any matching rows.

Did I answer your question? Mark my post as a solution!
"Proud to be a Datanaut!"
Power BI Blog

View solution in original post

ThinkSmart Visitor
Visitor

Re: Identify duplicates between two tables

HI there! , 

i think what you need is to merge both datasets using an Anti join type, just duplicate the journeysheet table, click on merge queries, select the journey info as your left table and in the join type use anti left with the key field you have, that ll give you whatever is in the journey sheet thats missing or not matching in the finance table . 

let me know if thats what you needed ! 

 

antijoin.PNG

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 220 members 2,370 guests
Please welcome our newest community members: