Forum Discussion
Connect columns from two separate data sources
- 8 years ago
Hi domc23,
But I still cannot make any releationships between the newly created table and the original data source tables. I am getting the "You can't create a releationship between these two columns because one of the columns must have a unique values"!
How can I get around this error. If I can get past this, I think I am home free.
Based on my test, you should be able to use the [Group Name] (instead of [Group Number])column to make relationships between the newly created table and the original data source tables in your scenario. :smileyhappy:
Regards
Hi domc23,
Could you post your table structures with some sample/mock data and the expected result, so that we can better assist on this issue? :smileyhappy:
Regards
- domc238 years ago
Helper I
Here is a very raw example of what I am trying to do. Combine or Append just the columns Employer Name and Group Name from the two separate tables. There will be duplicates on each list which is preventing me from linking the two data sources. Please excuse the way I posted these. I do not know how to get them side by side. I hope this makes some sense on what I am trying to accomplisy. Any help is greatly appreciated.
Table 1 Group Number Group Name 1 ROTARY INTERNATIONAL 2 KOBELT TRAVEL INC. 3 TRANSFORMER MANUFACT. INC. 4 LYONS FARRPORT MARKET 5 PETER TROOST MONUMENT 6 ITOFCA, INC. 7 NORTRAN 8 PARKER BROTHERS 9 BALESTRA'S 10 RAY KOONTZ 11 MITCHELL MILLER IGA Table 2 Group Number Employer Name 2 KOBELT TRAVEL INC. 5 PETER TROOST MONUMENT 8 PARKER BROTHERS 9 BALESTRA'S 11 MITCHELL MILLER IGA 13 CHICAGO GEAR WORKS 22 KNOX COUNTY EMPLOYEES 44 FLEMING/SLC DIVISION 91 VILLA SCALABRINI HOME 101 SCRIVNER/BUFFALO DIVISION 211 ANDERSON SHUMAKER COMPANY 37 MATHIEU IMPORTS Desired Results Group Number Group Name or Client Name 1 ROTARY INTERNATIONAL 2 KOBELT TRAVEL INC. 3 TRANSFORMER MANUFACT. INC. 4 LYONS FARRPORT MARKET 5 PETER TROOST MONUMENT 6 ITOFCA, INC. 7 NORTRAN 8 PARKER BROTHERS 9 BALESTRA'S 10 RAY KOONTZ 11 MITCHELL MILLER IGA 2 KOBELT TRAVEL INC. 5 PETER TROOST MONUMENT 8 PARKER BROTHERS 9 BALESTRA'S 11 MITCHELL MILLER IGA 13 CHICAGO GEAR WORKS 22 KNOX COUNTY EMPLOYEES 44 FLEMING/SLC DIVISION 91 VILLA SCALABRINI HOME 101 SCRIVNER/BUFFALO DIVISION 211 ANDERSON SHUMAKER COMPANY 37 MATHIEU IMPORTS - v-ljerr-msft8 years ago
Microsoft Employee
Hi domc23,
Based on my test, you should be able to use the formula below to create a new table to get the expected result in your scenario. :smileyhappy:
Table = DISTINCT ( UNION ( SELECTCOLUMNS ( Table1, "Group Number", Table1[Group Number], "Group Name", Table1[Group Name] ), SELECTCOLUMNS ( Table2, "Group Number", Table2[Group Number], "Group Name", Table2[Employer Name] ) ) )Regards
- domc238 years ago
Helper I
Thank you for your respose. So I would use both group number and name from Table1 and then both the group name and number from Table2 even though I am trying to join / merge only the group name and employer name from the two Tables? I will give it a try and see what happens. ,