I have data (input) on which I need to perform some calculations to get the result that I want (output).
Input:
| Sales | Store | Product | Category | Quantity |
| 500 | A | 1 | Inhouse | 40 |
| 205 | B | 2 | External | 25 |
| 360 | C | 1 | Inhouse | 35 |
| 400 | D | 2 | Inhouse | 30 |
| 155 | E | 3 | External | 10 |
| 268 | F | 4 | Inhouse | 20 |
| 306 | G | 1 | External | 25 |
| 478 | H | 3 | Inhouse | 28 |
| 121 | I | 4 | Inhouse | 12 |
Output:
| | Product 1 | Product 2 | Product 3 | Product 4 |
| Total Sales | | | | |
| Total Quantity | | | | |
| Average Quanity | | | | |
| Inhouse | | | | |
| Inhouse as %ge of total | | | | |
Please note that the above data is just a sample. Actual data is quite large.
Can you help me get the above output from the given input?
Thanks in advance!