I am merging 2 databases and joining through using the data in the amount column, on table 1 there are a few entries that have duplicate amounts, when the query is merged the power query matches
table 1
Date Amount
02/10/19 7000
02/15/19 7500
02/17/19 7000
table 2
date Amount
02/9/19 2500
02/3/19 7500
02/16/19 7000
[TABLE="width: 352"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]date [/TD]
[TD]amount[/TD]
[TD]Table2.date[/TD]
[TD]Table2.amount[/TD]
[/TR]
[TR]
[TD="align: right"]2/10/2019[/TD]
[TD="align: right"]7000[/TD]
[TD="align: right"]2/16/2019[/TD]
[TD="align: right"]7000[/TD]
[/TR]
[TR]
[TD="align: right"]2/17/2019[/TD]
[TD="align: right"]7000[/TD]
[TD="align: right"]2/16/2019[/TD]
[TD="align: right"]7000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2/9/2019[/TD]
[TD="align: right"]2500[/TD]
[/TR]
[TR]
[TD="align: right"]2/15/2019[/TD]
[TD="align: right"]7500[/TD]
[TD="align: right"]2/3/2019[/TD]
[TD="align: right"]7500[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The merged table matched two amounts of 7000/- from table 1 to 2 entries from table 2, where there was only one $7000/- entry which is wrong. The merge was done using all rows from both tables.
How can I correct this error?
Thanks
Neal[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Amount[/TD]
[TD]Table2.Data[/TD]
[TD]Table2.Amount[/TD]
[/TR]
[TR]
[TD]02/10/19[/TD]
[TD]7000[/TD]
[TD]02/16/19[/TD]
[TD]7000[/TD]
[/TR]
[TR]
[TD]02/17/19[/TD]
[TD]7000[/TD]
[TD]02/16/19[/TD]
[TD]7000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]02/9/19[/TD]
[TD]2500[/TD]
[/TR]
[TR]
[TD]02/15/19[/TD]
[TD]7500[/TD]
[TD]02/3/19[/TD]
[TD]7500[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
table 1
Date Amount
02/10/19 7000
02/15/19 7500
02/17/19 7000
table 2
date Amount
02/9/19 2500
02/3/19 7500
02/16/19 7000
[TABLE="width: 352"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]date [/TD]
[TD]amount[/TD]
[TD]Table2.date[/TD]
[TD]Table2.amount[/TD]
[/TR]
[TR]
[TD="align: right"]2/10/2019[/TD]
[TD="align: right"]7000[/TD]
[TD="align: right"]2/16/2019[/TD]
[TD="align: right"]7000[/TD]
[/TR]
[TR]
[TD="align: right"]2/17/2019[/TD]
[TD="align: right"]7000[/TD]
[TD="align: right"]2/16/2019[/TD]
[TD="align: right"]7000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2/9/2019[/TD]
[TD="align: right"]2500[/TD]
[/TR]
[TR]
[TD="align: right"]2/15/2019[/TD]
[TD="align: right"]7500[/TD]
[TD="align: right"]2/3/2019[/TD]
[TD="align: right"]7500[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The merged table matched two amounts of 7000/- from table 1 to 2 entries from table 2, where there was only one $7000/- entry which is wrong. The merge was done using all rows from both tables.
How can I correct this error?
Thanks
Neal[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Amount[/TD]
[TD]Table2.Data[/TD]
[TD]Table2.Amount[/TD]
[/TR]
[TR]
[TD]02/10/19[/TD]
[TD]7000[/TD]
[TD]02/16/19[/TD]
[TD]7000[/TD]
[/TR]
[TR]
[TD]02/17/19[/TD]
[TD]7000[/TD]
[TD]02/16/19[/TD]
[TD]7000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]02/9/19[/TD]
[TD]2500[/TD]
[/TR]
[TR]
[TD]02/15/19[/TD]
[TD]7500[/TD]
[TD]02/3/19[/TD]
[TD]7500[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]