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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.