Forum Discussion
Pavithra_sarava
3 years agoRegular Visitor
Need to find order without product without using calculated columns/tables
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 Orde...
- 3 years ago
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])) )
johnt75
Super User
3 years agoIf 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 ) )
Pavithra_sarava
3 years agoRegular Visitor
Hi,
sorry it's not working
- lukiz843 years ago
Memorable Member
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])) )