I need know the number off days each product had sold by row. Exemple "In the day 1 de product AX1 had sold 3, and the product AX2 had sold 2 on the day 1"
I have this:
Product | Date | Sales
AX1 |2019-01-01 | 3
AX1 |2019-01-02 | 2
AX2 |2019-01-01 | 2
AX2 |2019-01-02 | 1
But i need this:
Product | Date | Sales | Day
AX1 |2019-01-01 | 3 | 1
AX1 |2019-01-02 | 2 | 2
AX2 |2019-01-01 | 2 | 1
AX2 |2019-01-02 | 1 | 2