Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 51 | |
| 42 | |
| 25 | |
| 22 |
| User | Count |
|---|---|
| 140 | |
| 116 | |
| 56 | |
| 37 | |
| 31 |