Standardizing Customer Names to Proper Case in Power Query

0 votes

Standardizing Customer Names to Proper Case in Power Query
Your dataset contains customer names with inconsistent formatting (e.g., "John DOE", "jane smith", "MARK JONES"). What is the best way to standardize the names to proper case in Power Query while ensuring data integrity?

1 day ago in Power BI by Evanjalin
• 17,350 points
15 views

1 answer to this question.

0 votes

To standardize customer names to Proper Case in Power Query, follow these steps to ensure consistency and data integrity.

1. Use the Text. Proper function

Power Query uses the Text. Proper function to convert Text into Title Case (First Letter Capitalized).

Via User Interface (No Code Required)

  • Open the Power Query Editor.
  • Select the Customer Name column.
  • Go to Transform Tab → Click Format → Select Capitalize Each Word.
  • This automatically applies to Text.Proper([Customer Name]).
  • Custom Column (M Code)

You could instead provide a custom formula:

= Table.AddColumn(Source, "Proper Case Name", each Text.Proper([Customer Name]), type text)

This will create a new column with suitable names and keep the original.

2. Special Cases

Acronyms or Mixed Case Names (e.g., "McDonald," "IBM"):

Power Query cannot automatically tell those apart. Thus, either a look-up table or some manual imposition would account for exceptions.

answered 1 day ago by anonymous
• 17,350 points

Related Questions In Power BI

0 votes
1 answer

To calculate conditional running total in power query

Try Table Buffer after adding the index, or ...READ MORE

answered Apr 26, 2019 in Power BI by Shubham
• 13,490 points
2,317 views
0 votes
4 answers

How to add an extra column to the existing table in power bi query editor?

R|ight click on the table you want ...READ MORE

answered Nov 18, 2022 in Power BI by Madelein Tolmay
79,521 views
0 votes
1 answer

How to demote Headers in Power BI query editor?

Hi, There are the steps which you can ...READ MORE

answered Feb 3, 2020 in Power BI by Jitesh
19,426 views
0 votes
0 answers

How to group rows in Power BI query editor?

Can someone explain the steps how can ...READ MORE

Feb 4, 2020 in Power BI by ggm
• 140 points
1,309 views
0 votes
1 answer

How to export Power Queries from One Workbook to Another with VBA?

Try solving it using the Workbook. Query ...READ MORE

answered Oct 22, 2018 in Power BI by Annie97
• 2,160 points
6,956 views
0 votes
1 answer

Excel Power Query: Using List.MatchAny on a column value

try this. let TableA = ...READ MORE

answered Oct 22, 2018 in Power BI by Annie97
• 2,160 points
4,465 views
0 votes
1 answer

How can I search for multiple strings?

A simple solution is this: List.ContainsAny(Text.SplitAny("This is a test ...READ MORE

answered Oct 24, 2018 in Power BI by Upasana
• 160 points
4,837 views
0 votes
1 answer

Power Query Web request results in “CR must be followed by LF” Error

What I think is, it might look ...READ MORE

answered Oct 29, 2018 in Power BI by Shubham
• 13,490 points
1,990 views
0 votes
1 answer

What is the best approach to convert a Date/Time column to a Date data type in Power Query while using DirectQuery from SQL?

For DirectQuery, the best way to convert ...READ MORE

answered 5 days ago in Power BI by anonymous
• 17,350 points
36 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP