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
Hi all!
I need to create a new table from two existing tables.
First table ('Orders')
I have a summarized table with delivery date, store number and orders (for each store and date)
Second table ('Claims')
I have a summarized table with store (N Local), Date of claim (Fecha de creación) and claims (for each store and date)
I need to create a new table with structure (date, store, orders, claims) for each store and each date..
For example for 2997 store, and date 25/10/2011 we have 81 orders and only 1 claim
Pls your comments
Thanks!
SM.-
Solved! Go to Solution.
Hi, @Anonymous
According to your description, I think you can use the “Merge query” in the Power query to left join the two tables with two external keys, you can follow my steps:
You can download my test pbix file below
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
According to your description, I think you can use the “Merge query” in the Power query to left join the two tables with two external keys, you can follow my steps:
You can download my test pbix file below
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @Anonymous,
There is two ways.
First: you can add it as regular calculated column. So select table --> New column --> Name it and imput the formula.
Second you can add it to your DAX:
Just like this for example.
Hope this helps!
Hello Sebonidas,
If you really want to create a new table you could create calculated table with naturalinnerjoin function or use summarizecolumns if the tables have relationship.
But if you just need to mix the data you could just use lookup function to add a new calculated column for either table.
You can add this to orders table:
lookupvalue('Claims'[Claims],'Claims'[N° local],'Order'[Store_nbr]
Hope this helps.
If this solved the issue, please mark the comment as solved
thanks @Anonymous but i have created the order table like this.
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 |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |