The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have 2 tables: Emp and Org. I need to create a relation between these 2 tables with the column "USERID" in both the tables.
However, both of them have duplicate values which i cannot remove. What's a way to create a relation between the 2?
I tried creating an intermediate table with duplciates removed, but i guess data is lost in that process.
Any way to achieve this without data loss? Thank you!
Table = DISTINCT(UNION(VALUES('Table1'[Some Column]),VALUES('Table2'[Some Column])))
Creating an intermeidate table is the solution.
if you have User ID field available in both tables ( Emp & Org) , then copy Emp Power query and stripout all the column ( only keep User ID) , Remove Duplicate and then connect both table to this new table with M:1:M relationship .
You won't loose any data.
Hope this helps
SS
@BobBI @Greg_Deckler Hey i take the USER ID from the Emp table, remove duplicates and form the relation. (Tried both the suggestions)
Then, when I need to create a measure that involves the Emp and Orf table it says:
Make sure that your filter direction goes from your intermediate table towards your "fact" tables. And possibly bi-directional. Make sure that you use UserID from your intermediate table. What columns are you trying to put into a visual?