Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello All,
I've 2 table in my report.
Order table: Order ID,Order name, value, Products,etc
Order detail table: Order ID,Product name, Specification, etc
There's a relationship between Order & Order detail table (One to many)
I need to find number of order without products. Here I can't use calculated column or table as my source is direct query and I won't be able to do auto refresh.
Can someone suggest me how to get the desired result?
Solved! Go to Solution.
How is an order created if there are no products?
Try
OrdersWithoutProducts =
CALCULATE(
COUNT(Orders[Order ID]),
NOT(Orders[Order ID] IN VALUES('Order detail'[Order ID]))
)
If you have a one-to-many relationship from orders to order details then you could use
# orders no products =
SUMX ( 'orders', IF ( ISEMPTY ( RELATEDTABLE ( 'order details' ) ), 1 ) )
Hi,
sorry it's not working
How is an order created if there are no products?
Try
OrdersWithoutProducts =
CALCULATE(
COUNT(Orders[Order ID]),
NOT(Orders[Order ID] IN VALUES('Order detail'[Order ID]))
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |