I have a huge dataset and for illustration, I have simplified the dataset given below:
date product price amount 201901 A 10 20 201902 A 10 20 201903