Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi!
I'm encountered a bit of trick problem and would be open to suggestions how to work around it. I have 2 tables (see below) that I need to match. However, the only common denominater contains multiples on both sides. However, in the first table I have an unique ID that I would like to add to the second table (I can do this exercise in Excel of course but I would like to keep it clean in the queary). See below for what I'm looking for:
Solved! Go to Solution.
Hi @ErikPettersson,
Based on my test, we can merget the two tables in power query based on the column ID B.
Here is the M code for your reference.
let
Source = Table.NestedJoin(Table1,{"ID B"},Table2,{"ID B"},"Table2",JoinKind.LeftOuter),
#"Expanded Table2" = Table.ExpandTableColumn(Source, "Table2", {"ID A"}, {"Table2.ID A"})
in
#"Expanded Table2"For more details, please check the pbix as attached.
https://www.dropbox.com/s/f0d3fd6xaafy2n6/merge.pbix?dl=0
Regards,
Frank
Hi @ErikPettersson,
Based on my test, we can merget the two tables in power query based on the column ID B.
Here is the M code for your reference.
let
Source = Table.NestedJoin(Table1,{"ID B"},Table2,{"ID B"},"Table2",JoinKind.LeftOuter),
#"Expanded Table2" = Table.ExpandTableColumn(Source, "Table2", {"ID A"}, {"Table2.ID A"})
in
#"Expanded Table2"For more details, please check the pbix as attached.
https://www.dropbox.com/s/f0d3fd6xaafy2n6/merge.pbix?dl=0
Regards,
Frank
Hi @ErikPettersson,
Does that make sense? If so, kindly mark my answer as a solution to close the case.
Regards,
Frank
You could get a unique list of values from the column you want by creating a new query.
Heres a video
https://www.youtube.com/watch?v=vAvQ8pCnWDk
Hope this helps 🙂
Well, I need to create the C-column because I need it when connecting other tables
Can you post an image of your data model? Will be easier to understand.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 35 | |
| 31 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 75 | |
| 72 | |
| 38 | |
| 35 | |
| 25 |