Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
How do I duplciate rows based on column value in another table
E.g.
Table 1
Customers Sales Number Order Number Year
Alex 1111111 111222 2015
Alex 1111111 111222 2016
Alex 1111111 111222 2017
Table 2
Customers Sales Number Order Number Sales
Alex 1111111 111222 200
Alex 1111111 111222 300
Alex 1111111 111222 400
Desired Output
Customers Sales Number Order Number Sales Year
Alex 1111111 111222 200 2015
Alex 1111111 111222 200 2016
Alex 1111111 111222 200 2017
Alex 1111111 111222 300 2015
Alex 1111111 111222 300 2016
Alex 1111111 111222 300 2017
Alex 1111111 111222 400 2015
Alex 1111111 111222 400 2016
Alex 1111111 111222 400 2017
I know that there is a custom column in the power quer editor, however im unsure what the formula might be.
The 2 table have matching columns "Customers Sales Number Order Number"
Solved! Go to Solution.
@ephramz , merge on name, or order number and then expend
https://radacad.com/append-vs-merge-in-power-bi-and-power-query
Crossjoin or generate with filter in DAX
https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/
Use Merge Queries in Query Editor - https://docs.microsoft.com/en-us/power-query/merge-queries-overview
Best Regards,
Siva Mani
Proud to be a Super User!
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Use Merge Queries in Query Editor - https://docs.microsoft.com/en-us/power-query/merge-queries-overview
Best Regards,
Siva Mani
Proud to be a Super User!
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@ephramz , merge on name, or order number and then expend
https://radacad.com/append-vs-merge-in-power-bi-and-power-query
Crossjoin or generate with filter in DAX
https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 43 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |