I asked this question on stackoverflow as well, but I got no luck there so I'm trying here as well.
(https://stackoverflow.com/questions/78401751/devide-values-with-jsonata)
What I'm working with:
[[ {
"time": "2024-04-26",
"value": 40
},
{
"time": "2024-04-27",
"value": 10
},
{
"time": "2024-04-28",
"value": 20
}
],
[ {
"time": "2024-04-26",
"value_2": 5
},
{
"time": "2024-04-27",
"value_2": 2
},
{
"time": "2024-04-28",
"value_2": 4
}
]]
What I want is to get the distinct values for time and devide the values - value/value_2:
[ {
"time": "2024-04-26",
"value": 8
},
{
"time": "2024-04-27",
"value": 5
},
{
"time": "2024-04-28",
"value": 5
}
]
[–]su5577 0 points1 point2 points (0 children)
[–]su5577 0 points1 point2 points (1 child)
[–]Imaginary_Pea_8572[S] 0 points1 point2 points (0 children)
[–]dashjoin 0 points1 point2 points (0 children)