Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let
- Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
- #"Changed Type" = Table.TransformColumnTypes(Source,{{"NOUN", type text}}),
- #"Duplicated Column" = Table.DuplicateColumn(#"Changed Type", "NOUN", "Word To List"),
- #"Lowercased Text" = Table.TransformColumns(#"Duplicated Column",{{"Word To List", Text.Lower, type text}}),
- #"Split Column by Position" = Table.ExpandListColumn(Table.TransformColumns(#"Lowercased Text", {{"Word To List", Splitter.SplitTextByRepeatedLengths(1), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Word To List"),
- #"Added Custom" = Table.AddColumn(#"Split Column by Position", "Value", each Character.ToNumber([Word To List]) - 96),
- #"Grouped Rows" = Table.Group(#"Added Custom", {"NOUN"}, {{"Word Value", each List.Sum([Value]), type number}})
- in
- #"Grouped Rows"
Advertisement
Add Comment
Please, Sign In to add comment