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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

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

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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