Forum Discussion
Jojojojo
3 years agoFrequent Visitor
How do you append multiple columns into one column?
Hi there, I'm pretty new to Power Query and am looking to append 5 diffrent columns into one. From my formula below, the new column only seems to populate data from the columns ([Initiative Des...
- 3 years ago
If I'm understanding correctly, this seems like a good use case for the coalesce operator.
[Initiative Description] ?? [#"MAT - Initiative Description"] ?? [#"ENG - Initiative description"] ?? [#"WAT -Initiative description"] ?? [#"OTH - Initiative description"]
wdx223_Daniel
3 years agoCommunity Champion
=let col=List.Select(Table.ColumnNames(#"Added Custom3"),each Text.EndsWith(_,"Initiative Description",Comparer.OrdinalIgnoreCase)) in Table.AddColumn(#"Added Custom3","Initiative Descriptin All",each List.RemoveNulls(Record.ToList(Record.SelectFields(_,col))){0}?)