+ Reply to Thread
Results 1 to 3 of 3

Change header in PQ issue if space in name

  1. #1
    Forum Contributor
    Join Date
    10-14-2020
    Location
    Shanghai
    MS-Off Ver
    O365
    Posts
    156

    Change header in PQ issue if space in name

    Hi

    i do have different data source with different language headers. Currently I am running into an issue in exchanging the header by using this formula

    HTML Code: 
    Issue is that I do have one header named "Target" and one header called "Target per day", also one for "Day".

    So they exchanged header with my formula create something like "Target pro Day" as Target and Day is found as single words. I thought the formula take the whole cell content and translate this.

    Is it possible to change the formula to achive the whole translation?
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Change header in PQ issue if space in name

    Please try

    PHP Code: 
    Table.RenameColumns(#"Changed Type",List.Zip(Table.ToColumns(Table.Join(Table.FromValue(Table.ColumnNames(Source),[DefaultColumnName = "Other"]),"Other",Trans,"Other")))) 
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    10-14-2020
    Location
    Shanghai
    MS-Off Ver
    O365
    Posts
    156

    Re: Change header in PQ issue if space in name

    Hi

    this looks good, Thanks a lot. I will copy the formula to a bigger file with more tables and more columns. Hope this will be fine there as well.

    Let you know

    thanks

+ 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. [SOLVED] How to remove white space from spreadsheet header?
    By KudlaKudla in forum Excel General
    Replies: 16
    Last Post: 07-20-2021, 04:07 AM
  2. Error 28 Stack out of space - Intermittent issue
    By ethanfern in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-10-2020, 08:07 AM
  3. Space Issue in macro typical scenario
    By toravietl in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-20-2014, 09:55 AM
  4. [SOLVED] Wrap up Header Replace Space with Alt+Enter.
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2013, 08:33 AM
  5. Making a Header take up less space?
    By mercysmith in forum Excel General
    Replies: 1
    Last Post: 11-30-2011, 11:30 AM
  6. Double Space Issue
    By darshan_parekh in forum Excel General
    Replies: 3
    Last Post: 11-26-2011, 12:45 PM
  7. INCREASING SPACE FOR CUSTOMISE HEADER
    By RAJEEV CHADHA in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2005, 10:06 AM

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