A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi,
This Power Query M code works
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(Source, {{"Title", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Title"),
#"Trimmed Text" = Table.TransformColumns(#"Split Column by Delimiter",{{"Title", Text.Trim, type text}}),
#"Duplicated Column" = Table.DuplicateColumn(#"Trimmed Text", "Title", "Title - Copy"),
#"Pivoted Column" = Table.Pivot(#"Duplicated Column", List.Distinct(#"Duplicated Column"[Title]), "Title", "Title - Copy", List.Count)
in
#"Pivoted Column"
Hope this helps.