Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Join two tables

HI All, 

I trying to bring together two tables in my report.

Table 1 (Tells us quantity of steel which currently in production) - For a single Order #, it has quantity/weight at different stations# in steelmaking process, e.g

Station A = 100 tons

Station B   = 200 tons ,etc.

Table 2 (It is an order book , contains all orders whether the production has started on order or not)  - Contains a single row information for the order # in table 1. The tabe has information like customer, length, width, customer name, total quantity ordered by the customer for the particular order #. So unlike Table 1 it will have the total quantity of an order (100+200+etc.)

Further, It will also have information including delivery date and quantity ordered on those orders which is yet to enter production.

 

What I want to achieve :

  1. I want to append both the table such that entire table 1 is there and fetch those orders from table 2 which are not there in Table 1
  2. Since table 1 does not have dimension details of the order, I need to fetch that information from table 2

I am badly confused how to join these tables and which table should be primary . Will it be better to create a new table altogether?

 

Model view

Snag_56fb74.png

 

Snag_574128.png

 

Thanks.

5 REPLIES 5
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Could you pls provide some sample data for test?

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Anonymous
Not applicable

Hi , Just wanted to check is the one-drive link is working?

Hi @Anonymous ,

 

To get the details of the order,you could create calculated columns in Table1 using LOOKUPVALUE function one by one,such as below:

_cust PO = LOOKUPVALUE('Table 2'[CUST_PO],'Table 2'[Sales_ORD_HEAD_NO],'Table 1'[SalesOrderId],blank())

And you will see:

v-kelly-msft_0-1617873106252.png

As for appending table,what's your expected output?Just adding the orders to Table1 or adding the details together to Table1?

If you just wanna show it in a table visual,you could easily achieve it by add the salesorder from Table 2 and other information from table 1 to the visual once you have created the relationship between the 2 tables.

v-kelly-msft_1-1617873710213.png

For details,pls check the .pbix file attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

 

Hi  @Anonymous ,

 

Sorry for the late reply,I'm testing your data,once I work it out I will give you an update.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

 

 

Anonymous
Not applicable

HI ,

Here is the one drive link for PBi and Excel sample data.

https://1drv.ms/u/s!AoEAHRm368NsbPz_rLGY93njONs?e=WWqAPC

 

Thanks.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.