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
Marcegon
Advocate I
Advocate I

I need help with a concatenate formula

I am using the following formula to concatenate first and last name.  However, it does not work when the last name starts with a slash (/).  It gives me a null cell.  

 

=[first name]&" "&[last name]

 

first namelast name
 / No spend

 

Any help would be appreciated.  Thank you!

1 ACCEPTED SOLUTION

Thank you!  I replaced "null" (since the first name does not have a value/text) with space and it worked. 

View solution in original post

5 REPLIES 5
ThxAlot
Super User
Super User

=([first name] ?? "") & " " & ([last name] ?? "")


Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



j_ocean
Helper V
Helper V

Run a replace "/" with "" before the concatenation.

Thank you!  I added the replaced the first name and last name values "/" with nothing step before concatenation but I am still getting null.  Any idea why?

I'm not sure, but maybe try using Text.Combine vs &.

Thank you!  I replaced "null" (since the first name does not have a value/text) with space and it worked. 

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.

Top Solution Authors
Top Kudoed Authors