I have a table with 3 columns which shows product's revenue in each month:
1.Product
2.Revenue$
3.Month_Date
The Table is like:
Product | Month_Date | Revenue$
A 2013-01 10
A 2013-02 11
A 2013-03 8
... ... ...
A 2019-04 20
B 2013-01 2
B 2013-02 5
The problem is that there are 76 months from 2013-01 to 2019-04, and I want to show the month in columns instead of rows and show the revenue for each product in a row so that the data should be like the following table :
Product | 2013-01 | 2013-02 | 2013-03 | ...... | 2019-04
Revenue$ A 10 11 8 ...... 20
B 2 5 3 ...... 6
Could you give me a hand by telling me if there is any efficient way to do this please? I have tried a long time without working this out instead of hard coding.Thank you so much for your help in advance!