+ Reply to Thread
Results 1 to 5 of 5

Power Query , Transform Column of Records

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    771

    Power Query , Transform Column of Records

    Hi, I have been trying to transform a column of records by another column ; I have mangaged this as an 'addcolumn' so;

    Please Login or Register  to view this content.
    But I cannot figure how to get to the 'outside' columns when using Table.TransformColumns,

    Please Login or Register  to view this content.
    I have attached a workbook showing working out so far, There is an addcolumn query using the above and a query called RecordTable
    which is where I've got to using transform column; so the question really is to access , in this case the 'item' column when using
    Table.TransformColuimns ?

    Richard.
    Attached Files Attached Files

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,974

    Re: Power Query , Transform Column of Records

    You aren't looping through the rows of the table, so there is no current row to get the Item from.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    771

    Re: Power Query , Transform Column of Records

    So "I can't" is the short answer ? , thanks for taking the time to respond and I did learn a few new things while trying.

    RD

  4. #4
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    771

    Re: Power Query , Transform Column of Records

    I know this is not quite the same but if in the I came up with, instead of adding the column and transforming you do in the so;

    Please Login or Register  to view this content.
    I have attached example

    RD
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    771

    Re: Power Query , Transform Column of Records

    Another Work around is to add the value to be looked up to each record;
    so zip together the list of records and the rec field value ;

    Please Login or Register  to view this content.
    and the add as a field, here all have same name;


    Please Login or Register  to view this content.

    last check if it is contained in each reocrd field list ;

    Please Login or Register  to view this content.

    I have attached workbook showing steps.

    Richard.
    Attached Files Attached Files

+ 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. Replies: 2
    Last Post: 10-17-2023, 08:58 AM
  2. [SOLVED] Power Query, Transform Column by values in another columns
    By Dicken in forum Office 365
    Replies: 2
    Last Post: 06-30-2023, 09:10 AM
  3. Power Query Multiply column in transform
    By Dicken in forum Office 365
    Replies: 1
    Last Post: 04-11-2023, 10:00 AM
  4. Replies: 6
    Last Post: 11-22-2021, 05:22 PM
  5. Power query - transform help
    By N3CREN in forum Excel General
    Replies: 0
    Last Post: 10-23-2020, 09:01 AM
  6. [SOLVED] Power Query transform help
    By ierosadopr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2019, 05:25 AM
  7. Power Query (Get & Transform) on Mac
    By SHI.NL in forum Excel General
    Replies: 2
    Last Post: 05-18-2018, 09:24 AM

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