Good morning Everyone, especially DAX enthusiasts I'm trying to make the following expression more efficient, but struggling to come up with an alternative:
CALCULATE ([QUANTITY (A)], FILTER ( VALUES ( DimProduct[ProductName] ) , [CATEGORY (A-B)] = "ACTIVE" ))
/
(CALCULATE (
[QUANTITY (A)],
FILTER ( ALL ( DimSite ) , [CATEGORY (A-B)] = "ACTIVE" ) ,
FILTER ( ALL ( DimCustomer ) , [CATEGORY (A-B)] = "ACTIVE" ) ,
FILTER ( ALL ( DimProduct ) , [CATEGORY (A-B)] = "ACTIVE" )
)
)
The denominator should look at the entire dataset for products that are "active". Anything obvious that could be done?