Text.Proper in Power Query capitalizes the first letter of each word in a text value and lowercases the rest, so "john smith" becomes "John Smith". It is a built-in M function, not a button in the ribbon, so you use it either through the Add Column > Format > Capitalize Each Word command in the Power Query Editor or by writing the M formula directly. Nothing needs to be installed; Power Query is already part of Excel, Power BI, and Dataflows, and the function works the same way in all of them.

What You'll Need

  • A workbook or Power BI file with data loaded into Power Query (Data > Get Data in Excel, or Get Data in Power BI).
  • A text column you want to clean up. Text.Proper only works on text values; numbers and dates are ignored or cause an error if forced.
  • Basic familiarity with the Power Query Editor window and the formula bar. You do not need to know M code to start, but you will see it.

Step-by-Step

  1. Load your data into Power Query. In Excel, select your table and go to Data > From Table/Range. In Power BI, use Get Data and pick your source. The Power Query Editor opens in a separate window. Menu labels can differ slightly by version, device, and region, but the layout is consistent.
  2. Find the text column. In the Editor, scroll the data preview and click the column header that contains the names, addresses, or other text you want to capitalize. Clicking the header selects the column.
  3. Use the ribbon method first. With the column selected, go to the Transform tab (or Add Column tab if you want to keep the original) and choose Format > Capitalize Each Word. Power Query adds a step called "Capitalized Each Word" to the Applied Steps list on the right. This is the point-and-click version of Text.Proper.
  4. Check the result. The preview updates immediately. "JANE DOE" becomes "Jane Doe", and "o'neill" becomes "O'neill". Note that Text.Proper does not understand apostrophes or hyphens as word boundaries in the way you might expect, so names like "McDonald" or "O'Brien" may need manual correction later.
  5. Write the formula directly if you need more control. Go to Add Column > Custom Column. In the formula box, enter a formula such as Text.Proper([CustomerName]), replacing CustomerName with your actual column name. Click OK. A new column appears with the cleaned text, and the original stays intact.
  6. Rename the new column. Double-click the new column header and give it a clear name like "Customer Name (Proper)". This keeps your model readable.
  7. Remove the old column if you no longer need it. Right-click the original column header and choose Remove. Do this only after you have confirmed the new column is correct.
  8. Apply and close. In Excel, click Close & Load (or Close & Load To to choose where the data lands). In Power BI, click Close & Apply. The cleaned text is now in your table, and the step will rerun every time the query refreshes.

Common Mistakes

  • Expecting Text.Proper to fix all-caps acronyms. "USA" becomes "Usa" and "IBM" becomes "Ibm". Text.Proper has no exception list, so plan a manual correction step or a lookup table for acronyms.
  • Applying it to a column that contains numbers. Text.Proper expects text. If the column is typed as a number, the step errors. Change the column type to Text first, or apply the function only to text columns.
  • Forgetting that the step is applied on refresh. If you edit the source data later, the capitalization is reapplied automatically. That is usually good, but it means manual fixes made outside Power Query can be overwritten.
  • Using Transform instead of Add Column when you want to keep the original. Transform replaces the values in place. Add Column creates a new column, which is safer while you are testing.
  • Assuming it splits on every punctuation mark. Hyphens and apostrophes are not treated as word separators the way many people expect, so compound names often come out wrong.

Tips

  • Use Add Column > Custom Column when you want to combine Text.Proper with other functions, such as to remove extra spaces at the same time.
  • Preview the effect on a small sample before applying it to a large table. The Applied Steps list lets you delete a step and start over without losing the original data.
  • If you need to preserve acronyms, build a small reference table of known acronyms and merge it in, or add a conditional column that skips Text.Proper for those values.
  • Text.Proper is case-insensitive in its input, so it works the same whether the source text is all caps, all lowercase, or mixed.
  • Keep the original column until you have verified the output. Removing it too early means re-importing the data if something goes wrong.

Troubleshooting

If the Capitalize Each Word option is greyed out, the selected column is probably not typed as Text. Select the column, go to the Transform tab, and use Data Type > Text, then try again. If a Custom Column formula returns an error, check the column name inside the square brackets; it must match the header exactly, including spaces. If the preview looks correct but the loaded table does not, confirm you clicked Close & Load or Close & Apply, and refresh the query. If only some rows change, look for leading or trailing spaces in the source; wrap the formula in Text.Trim to clean them. If the step errors on refresh, the source column may have changed type or been renamed; open the Applied Steps and inspect the step that fails.

Frequently Asked Questions

Does Text.Proper change every word to title case?

Yes, it capitalizes the first letter of each word and lowercases the rest, but it does not know about acronyms or special capitalization rules.

Can I use Text.Proper on multiple columns at once?

Select multiple text columns before choosing Format > Capitalize Each Word, and Power Query applies the step to each selected column.

Why does Text.Proper turn "USA" into "Usa"?

The function has no exception list. It treats every word the same way, so acronyms need a separate correction step.

Is Text.Proper available in Excel and Power BI?

Yes, it is part of the shared Power Query engine in Excel, Power BI, and Dataflows, and the formula is identical across them.

Does Text.Proper remove extra spaces?

No. Combine it with Text.Trim, for example , to remove leading, trailing, and repeated spaces.

What happens if the column contains null values?

Text.Proper returns null for null input, so blank cells stay blank rather than causing an error.