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
Hello,
I have two queries that need merged based on a value in a cell.
I need the rows in Query B to be inserted under the row in Query A when a specific cell matches.
For example in Query A in a column I have the value 123, next row 456, third row 789. In Query B I have the same values but different columns. Can the queries be combined in which the row from Query A is row 1, then the row from query B that matches is row 2. Then third line is the second value in Query A with the second value in Query B in row four?
For example below:
Second column matches in both queries. I need Query A as the first record and then Query B that has the same corresponding second column value to be the next line and so on.
Query A
Query B
Thanks so much.
Solved! Go to Solution.
Hi @Anonymous ,
Pls refer the below:
base table:
Outputresult:
You could download my pbix file to learn the details operations.
Best Regards
Lucien
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 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |