I have a list of product SKUs and the revenue they generated in a certain period.
The list of SKUs is really long, so I’d like to able to filter to a specific SKU within that list and return the surrounding 10 products (5 above and 5 below) when ranked by revenue.
The user would filter the SKU to 30010492910
, and the Look would return 11 rows, with the filtered SKU in the middle, ranked by revenue. Displaying the rank would be ideal.
Here’s an example of the expected output (with fewer rows):
Rank | SKU | Revenue |
---|---|---|
45 | 30012030122 | 80,000 |
46 | 30012032351 | 79,000 |
47 | 30010492910 | 72,000 |
48 | 30012030199 | 68,500 |
49 | 30012033921 | 68,000 |
Any idea how to accomplish this?