Top 5 grouping of material based on usage

M

Matt

I have a table that has material, customer name, region, and 24 month usage.
Primary keys are set on material, customer name, and region.

What I'm trying to do is bring back the top 5 records (if 5 records don't
exist, bring back as many records available, basically, <= top 5) for every
material based on highest 24 month usage regardless of customer and region.
Is there a way to do this? Thanks in advance for your help.

Example:

Material Customer Region 24 Mo Usage
ABC DELL Europe 10
ABC DELL ASIA 25
ABC SONY NA 30
ABC SONY NA 15
ABC HP ASIA 11
BCA HP EUROPE 13
BCA LENOVO NA 14
DDE LENOVO ASIA 12
DDE TOSHIBA ASIA 10
CDN APPLE NA 8
CDN APPLE NA 15
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top