Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I have 2 tables that I want to create a relationship between. The first table is the employee roster from Sql Server it has the employee name , employee number , hire date and termination date. The other table is the training roster comes from the share point spreadsheet maintained by several people it contains employee name , training date , employee #. I'm trying to create relationship with employee number but I keep getting the message that I can't create a one to one it has to be one to many. I get this message even after I got rid of the duplicates from the spreadsheet. I also changed both to whole numbers. It's it because I have to trim the space in the cells first ? What am I doing wrong ?
Solved! Go to Solution.
Here's a quick trick for that-
Create a table in PBI (or a pivot table in Excel), insert the key you wish (employee #) and a distinct count of employee # for each. Sort descending by the distinct count.
If you have duplicates, they would float to the top.
Also, clean up the employee # by turning it into a string\ varchar and trim it of spaces.
IDs aren't numbers you add, multiply or average over, so they don't need to be integers.
Here's a quick trick for that-
Create a table in PBI (or a pivot table in Excel), insert the key you wish (employee #) and a distinct count of employee # for each. Sort descending by the distinct count.
If you have duplicates, they would float to the top.
Also, clean up the employee # by turning it into a string\ varchar and trim it of spaces.
IDs aren't numbers you add, multiply or average over, so they don't need to be integers.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
22 | |
21 | |
19 | |
13 | |
12 |
User | Count |
---|---|
41 | |
32 | |
23 | |
22 | |
22 |