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
Anonymous
Not applicable

Partial match and return value across two tables

Hi team,

I have the data in following two tables where i want to match phone numbers in one of the column without country code with another column in a different table that contains phone number and country code together. I was envisioning an approach that uses Text.End function based on the length dynamically.

 

Table A

Phone Number
9823456789
9923456788
9022334455

 

Table B

Phone (with country code)id
190223344553344
9199234567883311

 

Final Output

Phone Numberid
9823456789null
99234567883311
90223344553344
1 ACCEPTED SOLUTION
Anonymous
Not applicable

You could use add a column like:

 

Table.AddColumn(TableOrPriorStepName, "NewValues", each Table.FindText(TableB,  [Phone Number]))

 

--Nate

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

You could use add a column like:

 

Table.AddColumn(TableOrPriorStepName, "NewValues", each Table.FindText(TableB,  [Phone Number]))

 

--Nate

Anonymous
Not applicable

Hi @Anonymous 

Thanks for your response. It works but can we please improve performance by specifying a column in TableB?

Anonymous
Not applicable

You can try this:

 

Table.AddColumn(TableOrPriorStepName, "NewValues", each Table.FindText(TableB[[Phone (with country code)id]],  [Phone Number])

 

--Nate

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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