How can I remove the null values in the bottomcount, ie. i only want to see the products with actually sold units, I have tried with nonempty and non empty without success.
with
member [Measures].[Amount Sold] as
([Measures].[Internet Sales Amount]),
format_string = "currency"
select {[Measures].[Amount Sold]}
on columns,
bottomcount(
order(
{[Product].[Product].Members},
([Measures].[Amount Sold]), bdesc),
5 )on rows
You could filter [Product].Members using
NOT ISEMPTY()
to exclude all the empty values, and then bottomcount the filtered set.Note that
BottomCount()
will do an ascending, break-hierarchies sort, so you need to do theOrder()
on top of it if you want descending order.