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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Help on fuzzy matching

Hello!

 

Could someone assist me in matching names between two tables?

 

I have two tables: "Client Name" and "Employee Name." My goal is to create a new column in the "Client Name" table that identifies whether a client is an employee or not based on the "Employee Name" table.

 

The structure of names in the "Client Name" table is not standardized. Some names follow various formats:

1. John A. Dela Cruz
2. Dela Cruz, John A.
3. John Dela Cruz
4. Dela Cruz, John
5. John Angeles Dela Cruz
6. Dela Cruz, John Angeles

 

Meanwhile, names in the "Employee Name" table follow these formats:

1. Dela Cruz, John Angeles
2. Dela Cruz, John A.
3. Dela Cruz, John

 

Given the variability in naming conventions between the two datasets, the six sample names in the "Client Name" table should be labeled as employees since there is a match in the "Employee Name" table. 

 

For your reference, please refer to the link below for the sample file.

Sample File For Matching.pbix

 

Thank you and best regards.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Below is my table1:

vxiandatmsft_0-1710987089562.png

Below is my table2:

vxiandatmsft_1-1710986766875.png

Then you can use fuzzy match:

vxiandatmsft_2-1710986811787.png

The final output is shown in the following figure:

vxiandatmsft_1-1710987104754.png

After filter:

vxiandatmsft_4-1710986867038.pngvxiandatmsft_5-1710986935264.png

The following DAX might work for you:

Column = IF('Table'[Table (2).Employee Name] = RELATED('Table (2)'[Employee Name]),"Empolyee",BLANK())

Best Regards,

Xianda Tang

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

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

Below is my table1:

vxiandatmsft_0-1710987089562.png

Below is my table2:

vxiandatmsft_1-1710986766875.png

Then you can use fuzzy match:

vxiandatmsft_2-1710986811787.png

The final output is shown in the following figure:

vxiandatmsft_1-1710987104754.png

After filter:

vxiandatmsft_4-1710986867038.pngvxiandatmsft_5-1710986935264.png

The following DAX might work for you:

Column = IF('Table'[Table (2).Employee Name] = RELATED('Table (2)'[Employee Name]),"Empolyee",BLANK())

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.