Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Use a List as an argument in Table.CombineColumns

I'm getting the data type error "We cannot convert a value of type Record to type Text."  when attempting to call a list as the argument for columns to be combined in the CombineColumns function. I've run into this before, but don't recall what the fix was. I think I may need a sub function to cast the list properly?

 

Current line of M, the issue is the call to #"Filter Dupe List" which is a list of values that are column names:

 

 

 

 #"Merged Columns" = Table.CombineColumns(#"Source", #"Filter Dupe List", Combiner.CombineTextByDelimiter(", ", QuoteStyle.None), Text.AfterDelimiter(Source{13}, ".")),

 

 

 

1 Reply

  • wdx223_Daniel's avatar
    wdx223_Daniel
    Icon for Community Champion rankCommunity Champion

    the first parameter of Text.AfterDelimiter should be a text, but you give it a record of the 13th row of Source