Forum Discussion
Mike282
Helper III
6 years agoGroup rows, concatenate then sort concatenated value alphabetically
Hi all, So I've got a table with rows containing item line numbers and a group ID. I've then managed to group them together and concatenate by a delimiter following the below post: ...
parry2k
Super User
6 years agoMike282 may be add a sort step before concatenate step, sort by Group and Item
- Mike2826 years ago
Helper III
Thanks parry2k . I tried using the order.ascending function but it doesn't seem to sort correctly. Could you let me know what I need to sort? Below is the M script snippet for when I grouped the value:
#"Sorted Rows" = Table.Sort(#"Expanded Items",{{"Items.Item", Order.Ascending}}), #"Grouped Rows" = Table.Group(#"Sorted Rows", {"Group"}, {{"Item Value", each Text.Combine([Items.Item],"|"), type text}}),