Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Power Query Splitter.SplitByNothing: Full Guide

· 4 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The Splitter.SplitByNothing function in Power Query returns a single-element list containing the entire input text, performing no actual splitting. It is primarily used as a placeholder or for compatibility when a splitter function is required but you want to keep the whole value intact. To use it, you simply call the function with a text value, and it returns a list with that text as the only item. No prior setup is needed—just a Power Query editor session.

What You'll Need

  • Power Query Editor (available in Excel, Power BI, or Power Query Online)
  • A data source with at least one text column to apply the function to
  • Basic familiarity with adding a custom column or using the Advanced Editor

Step-by-Step

  1. Open Power Query Editor: In Excel, go to Data tab > Get Data > Launch Power Query Editor. In Power BI, click Transform Data from the Home tab.
  2. Load your data: Ensure the table you want to work with is loaded into the editor. If not, use Get Data to import it.
  3. Add a custom column (or use an existing column): Go to Add Column tab and click Custom Column. This is where you'll write the function.
  4. Enter the function: In the custom column formula box, type:
    Splitter.SplitByNothing()([YourColumnName])
    Replace [YourColumnName] with the actual column name from your table. For example, if your column is named "FullName", the formula would be:
    Splitter.SplitByNothing()([FullName])
  5. Click OK: The new column will be added, and each cell will contain a list with one item—the original text from that row.
  6. Expand or use the list as needed: If you want to convert the list back to a plain text value, click the expand icon (left-right arrows) in the column header and choose Extract Values, then select a delimiter (e.g., comma) and click OK. Or you can use the list in further M code, for example, to pass it to a function that expects a list.

If you prefer using the Advanced Editor, you can add a line like:
#"Added Custom" = Table.AddColumn(#"Previous Step", "Custom", each Splitter.SplitByNothing()([ColumnName]))

Common Mistakes

  • Forgetting the parentheses: The function requires parentheses after its name, even though it takes no arguments. Writing Splitter.SplitByNothing without parentheses will cause an error.
  • Using the wrong column reference: Make sure the column name in brackets matches exactly, including case and any spaces. If the column name has spaces, use #"Column Name" instead of [Column Name].
  • Expecting it to split: This function deliberately does nothing. If you need to split by a delimiter, use Splitter.SplitTextByDelimiter instead.
  • Not expanding the list: If you leave the column as a list type, it may cause issues when loading the data into a model. Always expand or extract values if you need a plain text column.

Tips

  • Use it for placeholder logic: When writing custom M functions that require a splitter argument, Splitter.SplitByNothing is a clean way to say "keep the whole value."
  • Combine with other splitters: You can use it in conditional logic, for example, to apply different splitting strategies based on a condition.
  • Check the data type: After adding the custom column, the data type will be "List". You can change it to "Text" after extracting values if needed.
  • Use in Table.CombineColumns: If you're combining columns, you might use this splitter as a no-op to maintain the original values.

Troubleshooting

Error: "Expression.Error: The name 'Splitter.SplitByNothing' wasn't recognized."
This usually means you're using an older version of Power Query that doesn't have this function. Check your Power Query version (it's available in Excel 2016+ and Power BI Desktop). If it's missing, update your software.

Error: "Cannot convert value of type 'Text' to type 'List'."
This happens if you wrote Splitter.SplitByNothing() without passing the text argument. The function expects a text value inside the parentheses, like Splitter.SplitByNothing()("some text").

The custom column shows "List" but I can't expand it.
Click the expand icon (two opposing arrows) in the column header. If it's not visible, the column might not be set to List type—check the data type in the column header and change it to List if needed.

My column values are now in a list, but when I load to Excel, I see "[List]" instead of the text.
You need to extract the values. Select the column, go to Add Column > Custom Column again, and use Text.Combine([CustomColumn], ",") to join the list into a single text string, or use the expand button and choose Extract Values.

Frequently Asked Questions

What does Splitter.SplitByNothing actually do?

It returns a list containing exactly one element: the entire input text. It does not split anything.

Why would I ever use a splitter that doesn't split?

It's useful as a placeholder when a function requires a splitter argument but you want to keep the whole value intact, or for testing and compatibility.

Can I use it to split by nothing but still get multiple items?

No. By definition, it always returns a single-item list. If you need multiple items, use a different splitter like Splitter.SplitTextByWhitespace.

Is Splitter.SplitByNothing available in all Power Query environments?

It's available in Excel 2016 and later, Power BI Desktop, and Power Query Online. Older versions may not have it.

How do I convert the resulting list back to text?

Use the expand icon and choose Extract Values, or use Text.Combine([ColumnName], ",") in a custom column.

Can I use Splitter.SplitByNothing in a custom M function?

Yes, you can pass it as a parameter to functions that expect a splitter, like Table.SplitColumn.