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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors