I have a data with and ID and numeric value, organized by date in columns, like this
| ClusterID | Pos. 2024-01-01 | Pos. 2024-01-02 | ..... | Pos. 2024-03-24 |
|---|---|---|---|---|
| 100015 | 1053 | 1027 | ..... | 327 |
| 230022 | 9002 | ..... | 101 | |
| ...... | ..... | |||
| 320024 | 74 | 98 | ..... | 2 |
And I would like to have this data in rows:
| ClusterID | Position | Date |
|---|---|---|
| 100015 | 1053 | 2024-01-01 |
| 100015 | 1027 | 2024-01-02 |
| 100015 | .... | .... |
| 100015 | 327 | 2024-03-24 |
| 100022 | 2024-01-01 | |
| 100022 | 9002 | 2024-01-02 |
| 100022 | .... | .... |
| 100022 | 101 | 2024-03-24 |
| 100024 | 74 | 2024-01-01 |
| 100024 | 98 | 2024-01-02 |
| 100024 | .... | .... |
| 100024 | 2 | 2024-03-24 |
I tried transpose() and query but stuck with big amount of columns in my sample.
Here is the link with some data in GS: https://docs.google.com/spreadsheets/d/186hcvRHUAN3VRPwMO5jaZbF8ozft-waxTGpCCh-uPFQ/edit?usp=sharing
Here's one approach you may test out: