March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
Regarding the binding of tables in Power BI, I would like to know how to make this connection, in the habitiude in SQL, we do the join or the connection between the tables with a primary key, but in Power BI I noted that There are linked tables with other fields.
For example in this screenshot, I would like to join these two tables Stock and orders, Can we join them with the fields date or Year, or month or company since they exist in the two tables? And what is the difference between joining with a primary key and joining with a normal field?
I thank you in advance.
Hi @Anonymous ,
In fact, you not need to join fields to another table.
After you finished to create relationships, you can direct to use table fields to create chart/visuals.(power bi will analyze summarize these fields based on current relationship and group fields)
Create and manage relationships in Power BI Desktop
Work with aggregates (sum, average, and so on) in the Power BI service
BTW, after you build relationship between tables, you can add a calculated column with related function to simply invoke related field from related table.
Regards,
Xiaoxin Sheng
Do you mean that the join and the relationship is not the same or I misunderstood?
@Anonymous
Hi,
JOIN and RELATIONSHIP work on similar fundamentals, i.e. there should be one common field between the two tables. However, the major difference between them is that by using JOIN you are compiling all the data into one table and then creating your reports/data model; however, using RELATIONSHIPS you can achieve the same results by linking the two tables.
In your case, you can first create a relationship between stock and order table and then proceed with creating visuals or tables.
And I do not think that there is any difference between joining with a primary key and joining with a normal field. As long as you can create a unique combination for the query to map the required field, the result should not be any different.
Thanks,
Vivek
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |