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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
learning2022
New Member

Merge Query - Fuzzy Logic - Results should provide results of unmatched results too

Hi 

 

I have 2 tables, and want to identify the values that matches the similar (not exactly the same) in these 2 tables. Currently, using merge queries and than applying a fuzzy logic. However, as the name suggest fuzzy logic is not perfect. It is missing to match some of the values that are existing.

Is there a way to get the list of values in both tables (consolidated in one) - that did not match?

Could there be an alternative and easier approach to what I am trying to acheive?

 

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @learning2022 ,

 

Please select "Full Outer" for the merged join kind.

 

vkkfmsft_0-1657684483848.png

vkkfmsft_1-1657684613515.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @learning2022 ,

 

Please select "Full Outer" for the merged join kind.

 

vkkfmsft_0-1657684483848.png

vkkfmsft_1-1657684613515.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

miguel
Community Admin
Community Admin

Hey!

By doing the Merge operation you'll need to define which is effectively your left and right table.

 

Perhaps what you're after is not really a merge, but rather first doing an append and then doing a "Group by" with the fuzzy matching and the "All rows" operation? That way you'll see a table at the end with all the values that were "Clustered" into a single value and perhaps rows with only 1 table row because they couldn't be matched with anything else.

 

You can learn more about fuzzy matching from the following links:

How fuzzy matching works in Power Query - Power Query | Microsoft Docs

Grouping or summarizing rows - Power Query | Microsoft Docs

 

hope this helps!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors