Filter in an for
Hello there,
I have this code:
for (var x = 0; x <me.kpis.length; x++) {
var line=me.kpis[x].Line;
var json_yt = Things["Name of Things"].GetKpis({
Lines: line,
_timeOption:"Yesterday"
});
var json_yt = Things["Name of Things"].GetKpis({
Lines: line,
_timeOption:"All month"
});
if(line.includes("line1")) {
var kpis_value_yt_value =json_yt.array.filter(x=>x.kpis)[0]["kpis"];
I want to get Kpis from json_yt but when I try to get data from there I have a message:
var result = (json_yt);
I have an array with all data.
I dont know if I made a mistake or the platform have some problems.
Thanks

