Forum Discussion
Require assistance for comparing multiple columns
Yes although im not quite sure how to enter the code.
Sincerely,
Hello
If my post helped you, please give me a 👍kudos and mark this post with Accept as Solution.
You can replace the highlighted area from my screenshot with your source or last step.
Best regards from Germany
Manuel Bolz
🟦Follow me on LinkedIn
🟨How to Get Your Question Answered Quickly
🟩Fabric Community Conference
🟪My Solutions on Github
- TheNicholas272 years agoNew Member
Im trying but it gives me the error on the column name, even if i change the column name.
Im sorry, im no programmer therefore i don't understand where im going wrong.let
Type = Table.TransformColumnTypes(Source,{{"Student district ID", Int64.Type}, {"Student Names", type text}, {"Student names having taken the test", type text}}),
Students = Type[[StudentNumber],[StudentName]],
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 names having taken the test"})
in
Expand- ManuelBolz2 years agoResponsive Resident
Hello TheNicholas27
okay, step by step...
Somewhere in Power Query you loaded the table that you showed as an example in your second post.Please share this M-Code with us so that we can add the correct solution.
If my post helped you, please give me a 👍kudos and mark this post with Accept as Solution.
Best regards from Germany
Manuel Bolz
🟦Follow me on LinkedIn
🟨How to Get Your Question Answered Quickly
🟩Fabric Community Conference
🟪My Solutions on Github - Anonymous2 years agoNot applicable
Hi,
Thanks for the solutions ManuelBolz and dufoq3 provided, and i want to offer some more information for user to refer to.hello TheNicholas27 , you need to change your code to the following.
let Source=.....(your souce) Type = Table.TransformColumnTypes(Source,{{"Student district ID", Int64.Type}, {"Student Names", type text}, {"Student names having taken the test", type text}}), Merge = Table.NestedJoin(Type, {"Student names having taken the test"}, Type, {"Student Names"}, "Test", JoinKind.LeftOuter), Expand = Table.ExpandTableColumn(Merge, "Test", {"Student district ID"}, {"Student district ID.1"}) in ExpandBest Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.