Thanks, it seems to work.
Could you tell me how the expression you suggested works exactly (or where I can find out more about it)?
I cannot understand it completely.
Furthermore I'm don't get what the kpi measures when no selection is made, because it doesn't seem to be equal to sum(sales), and also when multiple selection is made.
This expression is going to be very helpful for many different calculations.