DAX code
Bottom N Sales =
VAR N = 5
VAR BottomItems = TOPN(N, ALLSELECTED('Product'[ProductName]), [Total Sales], ASC)
RETURN
IF(NOT ISEMPTY(INTERSECT(VALUES('Product'[ProductName]), SELECTCOLUMNS(BottomItems, "@P", 'Product'[ProductName]))), [Total Sales])