Forum Discussion
TheNicholas27
2 years agoNew Member
Require assistance for comparing multiple columns
Greetings, I have been trying to find any kind of help regarding a task im trying to accomplish. The task goes like this. I have 3 columns, 1 with numbers that are attributed to students...
TheNicholas27
2 years agoNew Member
Alright here is a fictional list that ressembles closesly my problem.
| Student district ID | Student Names | Student names having taken the test |
| 5555 | Archibald, Alexander | Divers, Anthony |
| 5341 | Bard, Christopher | Fold, Marc |
| 7521 | Chambers, Leon | Archibald, Alexander |
| 6123 | Divers, Anthony | |
| 8196 | Extravagant, Pete | |
| 9865 | Fold, Marc |
My goal is to join the student district ID to the column of students that have taken the test.
ManuelBolz
2 years agoResponsive Resident
Hello
If my post helped you, please give me a 👍kudos and mark this post with Accept as Solution.
Here is the customized code based on your sample data.
let
Quelle = Table.FromRecords({
[Student district ID = 5555, Student Names = "Archibald, Alexander", Student names having taken the test = "Divers, Anthony"],
[Student district ID = 5341, Student Names = "Bard, Christopher", Student names having taken the test = "Fold, Marc"],
[Student district ID = 7521, Student Names = "Chambers, Leon", Student names having taken the test = "Archibald, Alexander"],
[Student district ID = 6123, Student Names = "Divers, Anthony", Student names having taken the test = ""],
[Student district ID = 8196, Student Names = "Extravagant, Pete", Student names having taken the test = ""],
[Student district ID = 9865, Student Names = "Fold, Marc", Student names having taken the test = ""]
}),
Type = Table.TransformColumnTypes(Quelle,{{"Student district ID", Int64.Type}, {"Student Names", type text}, {"Student names having taken the test", type text}}),
Students = Type[[Student district ID],[Student Names]],
Merge = Table.NestedJoin(Type, {"Student names having taken the test"}, Students, {"Student Names"}, "Test", JoinKind.LeftOuter),
Expand = Table.ExpandTableColumn(Merge, "Test", {"Student district ID"}, {"Student district ID Taken"})
in
Expand
Best regards from Germany
Manuel Bolz
🟦Follow me on LinkedIn
🟨How to Get Your Question Answered Quickly
🟩Fabric Community Conference
🟪My Solutions on Github