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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Format string for LOOKUPVALUE

Hey everyone!

 

I am trying to use LOOKUPVALUE to get some data to another table, but I have a problem with the string. I have the following data:

 

Table1

Employee/SupplierCount
Peter Parker Spiderman1000

 

Table2

Employee/SupplierNo. Tickets
Parker Spiderman, Peter 

 

I am trying to use a LOOKUPVALUE to write the value of Count from Table1 to N0. Tickets field in Table2. My problem is that these two strings, although they represent the same value (a name followed by two surnames), because of the structure the LOOKUPVALUE do not recognise it. Is there a way to use a FORMAT in the LOOKUPVALUE so I can match them?

 

Thanks in advance!

1 ACCEPTED SOLUTION
AntonioM
Solution Sage
Solution Sage

I'm not sure you can FORMAT to rearrange the text. Could you split the columns in Power Query? You could either then recombine them into the same format or use Lookupvalue to search for first name and last name separately.

 

LOOKUPVALUE ( [Count], Table1[First Name], Table2[First Name], Table1[Surname], Table2[Surname] )

View solution in original post

1 REPLY 1
AntonioM
Solution Sage
Solution Sage

I'm not sure you can FORMAT to rearrange the text. Could you split the columns in Power Query? You could either then recombine them into the same format or use Lookupvalue to search for first name and last name separately.

 

LOOKUPVALUE ( [Count], Table1[First Name], Table2[First Name], Table1[Surname], Table2[Surname] )

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.