Forum Discussion
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
- 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.
2 Replies
- GilbertQSuper UserHi 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. - ThinkSmartRegular Visitor
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 !