Hi everyone, I have a huge file about transaction that has 5 columns (Date, Product Name, Quantity, Price, Total Price), example like below:
Date Product Name Quantity Price Total
2019-01-01 A 2 $100 $200
2019-01-01 B 5 $50 $250
2019-01-01 B 50 $50 $2,500
2019-01-01 C 3 $30 $90
2019-02-01 B 1 $50 $50
2019-02-01 B 5 $50 $250
2019-02-01 B 1 $50 $50
2019-02-01 B 10 $50 $500
2019-03-01 C 3 $30 $90
2019-03-01 B 1 $50 $50
My question is, is there a way to sort this file into a total amount sold for every product in every month?
I expect the output will be something like:
Jan Feb Mar Total
A 2 0 0 2
B 55 17 1 73
C 3 0 3 6
Thank you in advance!
Date Product Name Quantity Price Total
2019-01-01 A 2 $100 $200
2019-01-01 B 5 $50 $250
2019-01-01 B 50 $50 $2,500
2019-01-01 C 3 $30 $90
2019-02-01 B 1 $50 $50
2019-02-01 B 5 $50 $250
2019-02-01 B 1 $50 $50
2019-02-01 B 10 $50 $500
2019-03-01 C 3 $30 $90
2019-03-01 B 1 $50 $50
My question is, is there a way to sort this file into a total amount sold for every product in every month?
I expect the output will be something like:
Jan Feb Mar Total
A 2 0 0 2
B 55 17 1 73
C 3 0 3 6
Thank you in advance!