Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I would like to ask how to solve my problem
I have a two tables :
How can I create a relationship between the two table? Power BI doesnt allow me to use invoice_id because it should be unique. I need to fix it because if I join the tables via SQL query it makes double the value of invoice_amount and contract_amount on the graphs
Please advise. Thank you!
Regards,
Arvin
Solved! Go to Solution.
@Anonymous For you to be able to create relationship between two tables you certainly need unique values in one column much like PK FK relations. So if values in your table 1 are not unique you should via query editor remove duplicate values and then create relation from table 1 to table 2.
@Anonymous For you to be able to create relationship between two tables you certainly need unique values in one column much like PK FK relations. So if values in your table 1 are not unique you should via query editor remove duplicate values and then create relation from table 1 to table 2.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 135 | |
| 102 | |
| 67 | |
| 65 | |
| 56 |