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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
keenanto
Regular Visitor

Combined Exact and Fuzzy Matching

DataSet A

keenanto_0-1681539577930.png

 

DataSet B

keenanto_0-1681539637769.png

 

Hi

I have two datasets A & B which I am trying to match on a number of columns (Entityid, EmailSubject, EmailFrom) in order to reconcile or identify differences in another column (Price).

                                                                                                                                                                                             

I need to first create an exact match on the Entityid Column but because there are slight differences in the EmailSubject and EmailFrom columns, I need to create a fuzzy match on the EmailSubject and Email From columns. If this criteria is met, I need to return the price value from dataset B.

 

From creating a merge on the tables I have the queries below - the first which is an exact match or join and the second which is a fuzzy/approximate. However, I do not know how to combine both queries to get what I am looking for.

 

= Table.NestedJoin(#"Changed Type", {"EntityId"}, CMA, {"EntityId"}, "CMA", JoinKind.LeftOuter)

 

= Table.FuzzyNestedJoin(#"Changed Type", {"EmailSubject", "EmailFrom"}, CMA, {"EmailSubject", "EmailFrom"}, "CMA", JoinKind.LeftOuter, [IgnoreCase=true, IgnoreSpace=true, Threshold=.3])

 

Any help would be greatly appreciated.

 

Thanks

1 REPLY 1
BrandonH
Frequent Visitor

Hello, 

Did you ever figure this problem out? I have a very similar case where I want to exact match to 2 columns and fuzzy to a thrid. 

 

It seems like from other posts here: https://community.fabric.microsoft.com/t5/Power-Query/Merging-with-one-exact-match-column-and-one-fu...

that we are looking at a no.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors