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

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

Reply
Saray_kh
Frequent Visitor

How to match exact string with masked string

Hi Colleagues!

I need your help to match to columns to being able to compare the price.

I have two tables with model and price information, and I need to compare the prices of the models by exact match or similar since I have many masked models.
I have already tried fuzzy matching and it does not do it correctly.

 

Here is an example of the data I have.
Table 1 (with exact models)
MODEL         PRICE
P3JK4M        50000€
P3TO4L        47500€
R4TI9P         35600€

 

Table 2 (with exact models and masked models)
MODEL         PRICE
P3J*4*          45000€
P3T***          45670€
R4TI9P         32450€

 

The desired result would be to match model P3JK4M with model P3J*4*, P3T*** with P3TO4L and R4TI9P with R4TI9P in order to make a price comparison.

 

Do you think it is possible with Power Query or DAX?

Thank you very much in advance!

2 REPLIES 2
Tahreem24
Super User
Super User

@Saray_kh Try to play around with Similarity Threshold value. Range is between 0 to 0.1, it means how strict is your model.

 

Tahreem24_0-1687427614156.png

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Hi @Tahreem24 ! It doesn't work, the models with * appear as null. I tried to normalize the string replacing the * for a space but it didn't work neither.

 

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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 Kudoed Authors