Is it possible to convert table with batched time data series that looks like this:
| id | technology | time | value |
|---|---|---|---|
| 1 | technology 1 | 123 | 2 |
| 2 | technology 2 | 123 | 3 |
| 3 | technology 3 | 123 | 0.5 |
| 4 | technology 1 | 124 | 3 |
| 5 | technology 2 | 124 | 1,2 |
| 6 | technology 3 | 124 | 8 |
to table with particular "technology part" as a dimension (column?), for example this:
| id | technology | time | value | technology 2 |
|---|---|---|---|---|
| 1 | technology 1 | 123 | 2 | 3 |
| 2 | technology 3 | 123 | 0.5 | 3 |
| 4 | technology 1 | 124 | 3 | 1,2 |
| 5 | technology 3 | 124 | 8 | 1,2 |
The value of "technology 2" needs to be in all rows with the same time mark.
Thanks.
I tried to do this in qliksense with "crosstable" function but I'm not able to get the right result, so maybe it will be possible in native SQL.
You could do something like the following.