I have a table with Orders and a table with Order Status (relationship 1:many on Order Status), I'm trying to filter or Count the rows in the Order Status table less than or equal to the minimum value in the Orders table, for example the minimum value here would be 2, so I want to get only the rows "Order Created" and "Shipped" in the Order Status table.
I have tried creating the measure below with no luck:
Status =
var minvalue = min('Orders'[Order Status #])
RETURN =
CALCULATE(
COUNTROWS('Order Status'),
'Order Status #' <= minvalue
)