Count how many products have recorded sales in the current filter context using COUNTROWS(VALUES(Sales[ProductID])).
COUNTROWS()
VALUES()