Ranking function across two dimension for a count of products
Dear reader,
I am currently working on a ranking function which ranks products bought by the frequency. The location of the shelf is also included, however it is currently only ranking within shelves and not across the entire shop. For example if we have a shelf A with 3 products: Apple: 3, Banana 5: Tomato: 1 and a shelf B: Cucumber: 4, Pineapple: 2, Rice: 6.