Hello all,
I am using BEx as data source and we have last 10 weeks of Quantity as below:
Country | Material | 28.2014 | 29.2014 | 30.2014 | 31.2014 | 32.2014 | 33.2014 | 34.2014 | 35.2014 | 36.2014 | 37.2014 | Total |
CountryA | MatA | 10 | 6 | 10 | 10 | 3 | 6 | 3 | 6 | 2 | 3 | 59 |
MatB | 3 | 3 | 15 | 3 | 2 | 10 | 2 | 10 | 6 | 2 | 56 | |
MatC | 2 | 2 | 6 | 2 | 6 | 3 | 6 | 6 | 15 | 5 | 53 | |
MatD | 8 | 5 | 8 | 5 | 8 | 2 | 8 | 8 | 6 | 2 | 60 | |
MatE | 4 | 6 | 4 | 6 | 4 | 5 | 4 | 4 | 8 | 3 | 48 |
I am expecting top 3 materials on quantity for last 5 weeks of data only as as below.
Country | Material | Quantity |
CountryA | MatC | 35 |
MatB | 30 | |
MatD | 26 |
FYI,
below is the 5 weeks of data from given above 10 weeks of data.
Country | Material | 33.2014 | 34.2014 | 35.2014 | 36.2014 | 37.2014 | Total |
CountryA | MatA | 6 | 3 | 6 | 2 | 3 | 20 |
MatB | 10 | 2 | 10 | 6 | 2 | 30 | |
MatC | 3 | 6 | 6 | 15 | 5 | 35 | |
MatD | 2 | 8 | 8 | 6 | 2 | 26 | |
MatE | 5 | 4 | 4 | 8 | 3 | 24 |
Question is how to restrict quantity to last 3 weeks from given 10 weeks of data
Thank you,
suri