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
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.

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