Maybe the example I gave was inccorect. Sorry...
I will need for each product, its share from total sales of all products in the chosen period.
When I show all products, the calculation is correct.
But when I choose only product a (for example) it calculates 100%.
I hope I am more clear now.