I have a table which is similar to this.
| State | Item | Type of sale | Units Sold |
| CA | Books | Retail | 50 |
| CA | Books | Wholesale | 500 |
| MI | Books | Retail | 20 |
| MI | Books | Wholesale | 250 |
| CT | Books | Retail | 100 |
| MA | Books | Retail | 100 |
I would like to transform my data to this:
| Item | Type of Sale | CA | MI | CT | MA |
| Books | Retail | 50 | 20 | 0 | 0 |
| Books | Wholesale | 500 | 250 | 100 | 100 |
Can someone help me to do this?