Monday, March 21, 2022

Rename a column power query

You can rename a column header to make it more clear. You can only rename one column at a time. 

Note    To prevent a column name conflict from other commands that create column, Power Query disambiguates by creating a unique name. In these cases, you often want to rename them. But table column names must be unique for all columns. Renaming a column to a column name that already exists creates an error.

  1. To open a query, locate one previously loaded from the Power Query Editor, select a cell in the data, and then select Query > Edit. For more information see Create, load, or edit a query in Excel.

  2. Select a column, and then select Transform > Rename. You can also double-click the column header.

    Renaming a column header

  3. Enter the new name. 

Renaming a column header in Power Query doesn't rename the original data source column header. Avoid renaming the column header in the data source because it can cause query errors. But it's possible someone else could change the column header in an imported external data source. If this happens, you can receive the error:

"The column '<column name>' of the table wasn't found."

To correct the query error, select Go To Error in the yellow message box, and correct the formula in the formula bar. But proceed carefully. Whenever you change a previous step under Applied Steps in the Query Settings pane, subsequent steps might also be affected. To confirm your fix, refresh the data by selecting Home > Refresh Preview > Refresh Preview.

See Also

Power Query for Excel Help

Rename columns (docs.com)

Promote a row to column headers

Add or change data types

4 comments:

  1. I'm so happy to share this with you that can read / see this now. When I started trading binary and forex a few months ago, I really didn't have the necessary tools to trade and I lost a lot until I met Pablo Martinez who taught me all about market psychology as he managed my account for me. Today I am grateful to him for his great offer and help because it really changed my financial situation with an investment capital of $1500 and now I'm earning around $35,500 - $30,000 profits per week. Here is his WhatsApp no: +44 7520 636249 or his email address: pm7234029@gmail.com
    Https://www.facebook.com/PM-Fast-Trade-104912912155335/

    ReplyDelete
  2. Special thanks to HACK VANISH, a professional hacker I’ve been hiring for the past 2 years because, I find him to be an outstanding hacker who has aided me in various hacking related issues, ranging from fixing my poor FICO credit score of about 437 TransUnion, 462 Equifax to 802 plus excellent score, tracking my cheating husband’s phone and currently has helped me recover my lost crypto funds from an online scam investment I recently ventured into, I must confess he is the best, quite brilliant, ever since I discovered him through a positive review I saw on Wallet Hub and reached out to him via Email: Hackvanish @ Gmail. com, and Phone: +1(747) 293-8514, to which he responded in less than 10mins, I have never regretted working with him, he’s been quite helpful and highly efficient. I Would recommend his services to anyone without hesitation.

    ReplyDelete
  3. PINNACLE CREDIT SPECIALIST is an innovative credit repair company which has been in the industry for a long time. They are known for constantly upgrading their credit score and removing all negative items and hard inquiries permanently from the credit report. PINNACLE CREDIT SPECIALIST always come up with new and improved ways to help their clients. One of the things that set them apart from other credit repair companies is that they check back on their clients to see that their credit fix is permanent and gain the result that they were looking for. I honestly recommend them to anyone who has credit issues. Contact them by email: PINNACLECREDITSPECIALIST@GMAIL.COM

    ReplyDelete
  4. My desire in life is to have a good credit score after I was screwed by someone who claimed to fix my credit and at the end he did nothing and my score went below what I have before few weeks back I was out for a coffee with a friend there I meet a lady who introduced me to this Specialist called REVOX I got in contact with him immediately and explained everything to him and the bad stuff I got on my report, he only asked how long do I need this to be done and it can take 9days to get it all done I was amaze with it and he went on with the job everything went perfectly well as he promised, good credit score of 810 and every other thing were totally wiped out. I do not think anyone could do better than him. Kindly hit him up with following details REVOXCREDITSPECIALIST@GMAIL.COM thank me later.

    ReplyDelete