Results 1 to 3 of 3

Power Query use List Product in let statement

Threaded View

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

    Power Query use List Product in let statement

    Hi,
    I've just about got what i wanted to acheive in I have tablle of 1 and 0, and want to replace the 1 with the corresponding column value form another table.

    the code I have so fat is ; LK = singe row table with replacement values.

    Table.AddColumn(Source, "Custom", each let
     Tlist = Record.ToList(_) , 
       LKlist = Record.ToList( LK{0} ) , 
       zip = List.Zip( { Tlist, LKlist } ) , 
       tzip = List.Transform( zip, (A)=> List.Product(A) ) 
    in 
    tzip)
    This give me a column of lists which I cant then use Table transform columns with List Product,
    But have been trying to put this final step in the above and keep getting it wrong.

    Attached , Problem query = AddColumn
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Power Query: If statement
    By sharonca in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2023, 10:52 PM
  2. Power query using let statement
    By Dicken in forum Office 365
    Replies: 6
    Last Post: 09-13-2022, 08:38 AM
  3. IF statement and VLOOKUP functionality in Power Query
    By zz_zz11 in forum Excel General
    Replies: 1
    Last Post: 02-22-2021, 07:41 AM
  4. [SOLVED] If-Or statement Formula for Power Query
    By Eric Tsang in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-12-2021, 08:12 AM
  5. Replies: 8
    Last Post: 10-21-2020, 03:02 AM
  6. If - And Statement in Power Query
    By brent_milne in forum Excel General
    Replies: 1
    Last Post: 09-17-2020, 02:27 PM
  7. Calculated Columns in Power Query for Staggered Product Launches
    By urazack in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-22-2020, 02:47 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