Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I am new to Power BI and I am trying to add two different ecel sheets that have the same primary key in both. I am trying to be able to create a relationship between these two sheets so i can filter using both columnns in the two sheets but using the same PK in both.
I have tried it but it was giving me an error message saying 'one of the columns must have unique values.'
I am currently doing this using a VLOOKUP formula in excel and was wondering can this be done in Power BI?
Thanks for your help
Solved! Go to Solution.
So, what you want to do is to create a 3rd query. This query will append your other two queries and then get rid of all of the other columns other than the PK. Then, remove duplicates on the PK and import. Relate this table to your other two tables and use the PK column in this table in your visuals (I would personally hide the other PK columns in the fact tables to prevent confusion).
So, what you want to do is to create a 3rd query. This query will append your other two queries and then get rid of all of the other columns other than the PK. Then, remove duplicates on the PK and import. Relate this table to your other two tables and use the PK column in this table in your visuals (I would personally hide the other PK columns in the fact tables to prevent confusion).
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
116 | |
103 | |
87 | |
35 | |
35 |
User | Count |
---|---|
152 | |
99 | |
83 | |
63 | |
54 |