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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
liorro
Helper I
Helper I

like operator as join condition between tables

hi,

 

i want to join (inner) between table A to B based on LIKE opeartor

logic: ON A.Column LIKE '%' + B.Column+ '%'

example:

XXXXXX8074396XXXXXXX LIKE '%' + 8074396+ '%' ----> there is a much

XXXXXX1074333XXXXXXX LIKE '%' + 8074396+ '%' ----> there is not amuch

 

i tried to use fuzzy much but it ddint worked (it return table with 2 line and not 1)

is there a solution for it? (its a lrage data to do such in SQL)

16 REPLIES 16
Anonymous
Not applicable

HI @liorro,

Did these replies help for your scenario? If this is a case, you can kudo or accept it if that one helps/solve your scenario to help others who faced a similar issue find it more quickly.

Regards,
Xiaoxin Sheng

camargos88
Community Champion
Community Champion

Hi @liorro ,

 

Try creating a column like this:

let _phrase = [Column1] in

List.Select(Item[Item], 
each Text.Contains(_phrase, Number.ToText(_))
)

 

 Capture.PNG

 

Also, see the attached file for more info.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



it worked but not performing well on my data (~3K rows)
do you have any other idea?

@liorro ,

 

Can you share your pbix ? Masking any sensitive info if necessary.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



the data is sensitive and therefore i cant share it with you

@liorro ,

 

How long is it taking to process this new column ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



table a ~9K rows

table b ~8K rows

its took more than 3 hours 

Anonymous
Not applicable

Hi @liorro,

In fact, if you execute complex looping formulas on large amount of records, they will be processed with poor performance and spend more time. You can try to package them with buffer functions to prevent the memory leak on looping calculate if it helps.

How and When to use List & Table Buffer? 

In addition, you can also consider using Dax expressions to handle this scenario. Add a calculated field in your tables to extract the core character strings you searched, then you can create a calculated table to merge these fields and use it as the bridge to link these tables.

From SQL to DAX: String Comparison 

Regards,

Xiaoxin Sheng

@liorro ,

 

How long is the refresh without the new column ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



~15 min

@liorro ,

 

I've tested by my side with csv files over 10k rows. It took less than 2minutes to process.

 

What is your source ?

Also can you show the code you used to create this new column ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



my source is view in SQL

i used the code you shared with me

let _phrase = [ValidationFunctionName] in

List.Select(Fact_CalculatedField_SubQuery[FieldTemplateId],

each Text.Contains(_phrase, Number.ToText(_))

)

@liorro ,

 

Once you are using SQL, I believe you should try pushing this process to the source.

Is it an option to write this join inside the view ? Or even use it to do this join ?

 

It should be faster than bringing the values to the Power Query and process every row.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



thank you!! i will test it

in the meanwhile, can you please explain the formula?

vanessafvg
Super User
Super User

where are you trying to do this join exactly? Are you using power query / dax?

please provide more information about what you are trying to do.




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




thanks! Table A and B are views in SQL im using as a source in Power BI

i don't familiar with DAX which can help me

i tried to merage between the table using fuzzy match via power query 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors