This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Hello,
I have two tables: The first tables shows my orders and products which were ordered with a quantity and the second table shows all my available products without quantity field.
So I want to calculate based on a specific date which products were ordered and which not.
Problem: How can I merge a table with quantity and the table without quantity. All products without quantity should get the value zero.
I can do that with an join using import modus but how to do the merge in direct query? Just need some ideas 🙂
Thank you in advance. Best regards.
Solved! Go to Solution.
I am assuming product here is product dimension, Same way you have date dimension,
When you create sum of qty measure add +0
Qty Total = Sum(Table[Qty]) +0
Also, explore this option
You can't merge in Direct Query, you would need to edit the source system.
You could theoretically merge them in DAX using things like NATURALINNERJOIN, etc. but that will be part of a measure calculation.
@Greg_Deckler Thank you for your fast reply. So I tried to do a join but I get the error message "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value." On the picture I tried to describe what I want to create but is this even possible since the tables have different columns?
Hi,
Try this
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 21 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 56 | |
| 55 | |
| 43 | |
| 26 | |
| 24 |