gpt-4.1-mini-2025-04-14· OpenAI
LMArena Human Preference 140K
how to combine to string columns in m query?
- User
how to combine to string columns in m query?
- Assistant
In Power Query M language, to combine (concatenate) two string columns, you can use the
&operator.Example
Suppose you have a table with two columns:
FirstNameandLastName, and you want to create a new columnFullNameby combining these two with a space in between.mlet Source = YourTable, AddFullName = Table.AddColumn(Source, "FullName", each [FirstName] & " " & [LastName]) in AddFullNameExplanation:
- adds a new column.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.