I could really appreciate your help on this.
I have a table with products, dates, and amounts. This is what the initial table looks like.
Product ID