I have a table with stock prices ordered by dates. I only have those 5 stocks, but I have hundreds of dates. I would like to pivot the stocks, but I have no idea on how to do that.
Data:
Date |Stock| Price |
30/09/22 | A | 100.5 |
30/09/22 | B | 151.3 |
30/09/22 | C | 233.4 |
30/09/22 | D | 237.2 |
30/09/22 | E | 38.42 |
01/10/22 | A | 101.5 |
01/10/22 | B | ----- |
01/10/22 | C | 237.6 |
01/10/22 | D | 232.2 |
01/10/22 | E | 38.54 |
Desired results:
Date | A | B | C | D | E |
30/09/22 |100.5|151.3|233.4|237.2|38.42|
01/10/22 |101.5|-----|237.6|232.2|38.54|