I have a series of columns I wish to join. All containing text.
For each one I want a delimiter of the pipe symbol.
I merge the columns but I don't get what I want. Here is example of the data:
When I merge column I get this
Mon|Tues|Wed|Thur|Fri
Mon|Tues|Wed||
Mon||||
When all I want is:
Mon|Tues|Wed|Thur|Fri
Mon|Tues|Wed
Mon
I can do this in a flash in Excel with TextJoin, as that gives me the option to ignore blanks.
Any solution?
Below is my current code:
For each one I want a delimiter of the pipe symbol.
I merge the columns but I don't get what I want. Here is example of the data:
Mon | Tues | Wed | Thur | Fri |
Mon | Tues | Wed | ||
Mon |
When I merge column I get this
Mon|Tues|Wed|Thur|Fri
Mon|Tues|Wed||
Mon||||
When all I want is:
Mon|Tues|Wed|Thur|Fri
Mon|Tues|Wed
Mon
I can do this in a flash in Excel with TextJoin, as that gives me the option to ignore blanks.
Any solution?
Below is my current code:
VBA Code:
let
Source = OUTPUT,
#"Merged Queries" = Table.NestedJoin(Source, {"Reference Document"}, LIVE_LINKS__LOCAL, {"Filename"}, "LIVE_LINKS__LOCAL", JoinKind.LeftOuter),
#"Expanded LIVE_LINKS__LOCAL" = Table.ExpandTableColumn(#"Merged Queries", "LIVE_LINKS__LOCAL", {"Tax.2"}, {"Tax.2"}),
#"Merged Columns" = Table.CombineColumns(#"Expanded LIVE_LINKS__LOCAL",{"Taxonomy", "Tax.2"},Combiner.CombineTextByDelimiter("|", QuoteStyle.None),"Taxonomy.1")
in
#"Merged Columns"