Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I am working with the Northwind database where it has separate tables for Customer, Product and Order Detail. I need to show
the Total of each product along with Customer name, Product name, Quantity ordered. I created a measure for the Total product quantity and added it to the matrix, but then I see the Quantity ordered with blank. I dont want to see any customer in the visual where they have not ordered a particular product. For eg: in the table below, I dont want to see the 2nd and the 5th row as those customers have not ordered any of those products. Please advise how to establish using DAX.
Customer Name | Product Name | Quantity Ordered | Total Product Quantity |
| A | Apple | 2 | 12 |
| B | Apple | 12 | |
| C | Apple | 10 | 12 |
| B | Orange | 7 | 15 |
| C | Apple | 12 | |
| C | Orange | 8 | 15 |
I used a different configuration in the filter which got me the expected result. thanks
You need to add a judgment, roughly as follows. Please modify it according to your model information.
Total Product Quantity =
VAR qo = Quantity Ordered
VAR result = IF(qo = Blank(),Blank(),SUM(Quantity Ordered))
RETURN
result
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 10 | |
| 10 |