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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
sschwartzvcs
New Member

Create relationship based on matching first X number of characters

I am trying to create a visual using two tables of customer data. Both tables contain the customer name - trouble is table 1 has the customer's full legal name and table 2 has an abbreviated name in some cases. 

 

Example:

Table 1: Acme Builders, Inc.

Table 2: Acme Builders

 

I'm trying to create a relationship between the two fields but getting a bunch of blank values when a record's name doesn't match the name in the other table exactly. Is it possible to have a powerbi relationship only match based on the first 10 characters? Or another way to solve this I'm not thinking of?

 

Thanks!

1 ACCEPTED SOLUTION
dilumd
Impactful Individual
Impactful Individual

HI @sschwartzvcs

 

In the query editor, you can use extract function under transform menu to extract part of the text to a new column.

Try that and see.

View solution in original post

2 REPLIES 2
dilumd
Impactful Individual
Impactful Individual

HI @sschwartzvcs

 

In the query editor, you can use extract function under transform menu to extract part of the text to a new column.

Try that and see.

Thanks @dilumd - that should do the trick!

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.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors