Filter Products that gets 50% of turnover

Hi all,

I have a table like,


-----------------------
Product    |    Sales    |
-----------------------
Produc1    |    1234    |
Produc2    |    234      |
Produc3    |    456      |
Produc4    |    2345    |
........
ProducN    |    232      |
-----------------------
Sum            34,500
-----------------------            

We want to apply a filter so that we should get only the Top N products (based on sales) which got us 50% of total Sales. How should I do this??

Thanks & Regards,
C.P.Mohanraj :frowning:
FCITS, India.


cpmohanraj :australia: (BOB member since 2002-09-23)

I think you need to do percentiles. Do a search on the forum for percentile. I believe there was a topic on this earlier this week.


Steve Krandel :us: (BOB member since 2002-06-25)

I tried searching for it. I don’t find anything relevant to my situation. COuld you please help me in this??


cpmohanraj :australia: (BOB member since 2002-09-23)

I’m not sure you can do exactly what you want, since you won’t be able filter the data based so that only those that contribute to the top 50% are visible.


Steve Krandel :us: (BOB member since 2002-06-25)

Check this link. Not a elegant way but it still works with Alerters.

Sri


Sridharan :india: (BOB member since 2002-11-08)