Forum Discussion

s15's avatar
s15
Helper III
9 years ago
Solved

Query to split space in a text string

I have a column named FullName in which I apply [FirstName] & "" & [LastName] to make full name. Now I need to split a space between first name and last name in FullName column. As you can see below each full name has no space.

 

 

Is there a query formula I can use to make a space, e.g Terry Duffy, Rob Walters?

  • Hey,

     

    using Dax, just use this formula to create a calculated column

    Fullname DAX = 'Table1'[Firstname] & " " & 'Table1'[Lastname]

    Using the query editor

    • switch to the "Add Column" ribbon
    • mark both columns
    • choose Merge Columns from "From Text" menu

1 Reply

  • Hey,

     

    using Dax, just use this formula to create a calculated column

    Fullname DAX = 'Table1'[Firstname] & " " & 'Table1'[Lastname]

    Using the query editor

    • switch to the "Add Column" ribbon
    • mark both columns
    • choose Merge Columns from "From Text" menu