Forum Discussion
aa_KF
Helper I
7 years agoMerge rows that have the same id number
Hello, I have table that contains many rows for each Person, I want to merge these rows together so each person has only one row seperating the rows value using a delmiter. If the the cell conta...
- 7 years ago
Hi aa_KF
Try adding this step from the Query Editor.
See sample file as well
= Table.Group(#"Changed Type", {"ID", "Name", "Email", "Section"}, { {"Course", each Text.Combine(List.Distinct(_[Course]),", ")}, {"Result", each Text.Combine(List.Distinct(_[Result]),", ")} })
Zubair_Muhammad
Community Champion
7 years agoHi aa_KF
Try adding this step from the Query Editor.
See sample file as well
= Table.Group(#"Changed Type", {"ID", "Name", "Email", "Section"},
{
{"Course", each Text.Combine(List.Distinct(_[Course]),", ")},
{"Result", each Text.Combine(List.Distinct(_[Result]),", ")}
})
- aa_KF7 years ago
Helper I
- EaglesTony2 years ago
Post Prodigy
I have the same issue:
Here is my code based off the resolution above:
= Table.Group (#"Removed Columns", {"ISSUE_KEY"},
{
{"TEST", each Text.Combine(List.Distinct(_[TEST]),", ")}
})However, I get an error "Expression.Error: The column 'TEST' of the table wasn't found.
But it is on my table