+ Reply to Thread
Results 1 to 7 of 7

PQ Table.PrefixColumns changes column names

  1. #1
    Registered User
    Join Date
    05-23-2023
    Location
    Brest, France
    MS-Off Ver
    365
    Posts
    4

    PQ Table.PrefixColumns changes column names

    Hi,
    I am using the formula

    #"Prefix" = Table.PrefixColumns(Sheet1_Sheet, "EPL")

    to add the prefix "EPL" to my columns. It adds the prefix but instead of keeping the old name, renames each column "column".

    So I get
    EPL.Column1 EPL.Column2 EPL.column3 ...

    instead of
    EPL.Date EPL.Debit EPL.Credit ...

    What am I doing wrong?

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: PQ Table.PrefixColumns changes column names

    Quote Originally Posted by Wrast View Post
    What am I doing wrong?
    you didn't post example excel file

  3. #3
    Registered User
    Join Date
    05-23-2023
    Location
    Brest, France
    MS-Off Ver
    365
    Posts
    4

    Re: PQ Table.PrefixColumns changes column names

    Attached ("extract dummy" is what the raw file looks like and "dummy file" is the one that I'm loading data into and has the request.
    Basically it looks like it does not recognize the first row as column names and so adds a row. I tried to load as table and not "sheet", but am new to PQ and cannot figure it out.

    Thank you

    extract dummy.xlsx
    dummy file.xlsx
    Last edited by Wrast; 05-25-2023 at 01:47 PM.

  4. #4
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: PQ Table.PrefixColumns changes column names

    Probably like

    Please Login or Register  to view this content.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: PQ Table.PrefixColumns changes column names

    and filter by null to not generate whole sheet of empty data

  6. #6
    Registered User
    Join Date
    05-23-2023
    Location
    Brest, France
    MS-Off Ver
    365
    Posts
    4

    Re: PQ Table.PrefixColumns changes column names

    Thank you!

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: PQ Table.PrefixColumns changes column names

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Transposing of table & output column names
    By yoke94 in forum Excel General
    Replies: 5
    Last Post: 06-01-2020, 12:11 PM
  2. Replies: 3
    Last Post: 07-12-2017, 04:44 AM
  3. Pivot Table Column Names
    By stammerman in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-29-2016, 04:46 PM
  4. [SOLVED] Return column names/field names from one table
    By mc84excel in forum Access Tables & Databases
    Replies: 11
    Last Post: 04-08-2015, 12:01 AM
  5. Show query column names behind pivot table field names
    By gbritton in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-18-2013, 03:17 PM
  6. Displaying Column/Row names from Table
    By iamvoodoo in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-27-2013, 01:16 AM
  7. [SOLVED] Pivot Table Column Names
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-29-2011, 02:18 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1