I'm thinking this should be simple, but I am very much a novice and could use some guidance.
I have data that is coming in the form of something like this which I have entered as a table:
I am trying to create a query to have a row for each month that will sum the quantities for each type:
I've been able to group the dates by formatting the date as yyyy-mm and sum the values for one of the Types, but can't figure out how to have separate columns for each Type with summed values. Any suggestions?
I have data that is coming in the form of something like this which I have entered as a table:
Date | Type | Quantity |
1/14/22 | A | 4 |
1/18/22 | B | 2 |
1/24/22 | A | 5 |
2/3/22 | C | 4 |
2/5/22 | B | 8 |
I am trying to create a query to have a row for each month that will sum the quantities for each type:
A | B | C | |
2022-01 | 9 | 2 | 0 |
2022-02 | 0 | 8 | 4 |
2022-03 |
I've been able to group the dates by formatting the date as yyyy-mm and sum the values for one of the Types, but can't figure out how to have separate columns for each Type with summed values. Any suggestions?