{
"single_results": [
{
"name": "Rule1",
"results": [
{
"name": "Sample1",
"positive_comment": "xxx",
"negative_comment": "xxx",
"score": 6
},
{
"name": "Sample2",
"positive_comment": "xxx",
"negative_comment": "xxx",
"score": 5
},
{
"name": "Sample3",
"positive_comment": "xxx",
"negative_comment": "xxx",
"score": 8
},
{
"name": "Sample4",
"positive_comment": "xxx",
"negative_comment": "xxx",
"score": 9
}
]
},
{
"name": "Rule2",
"results": [
{
"name": "Sample5",
"positive_comment": "xxx",
"negative_comment": "xxx",
"score": 7
},
{
"name": "Sample6",
"positive_comment": "xxx",
"negative_comment": "xxx",
"score": 6
},
{
"name": "Sample7",
"positive_comment": "xxx",
"negative_comment": "xxx",
"score": 10
}
]
}
]
}
"Avg: "& Average(
ForAll(
ParseJSON(<JSONstring>).single_results As rec;
{name: Table(rec.result).Value; avgValue:Average(Table(rec.results);ThisRecord.Value.score)}
);avgValue
)
[
{
"name": "Ruleset A",
"results": [
{
"name": "abc",
"positive_comment": "This is good",
"negative_comment": "This is bad",
"score": 5
},
{
"name": "cde",
"positive_comment": "This is good",
"negative_comment": "This is bad",
"score": 7
}
]
},
{
"name": "Ruleset B",
"results": [
{
"name": "efg",
"positive_comment": "This is good",
"negative_comment": "This is bad",
"score": 3
},
{
"name": "ghi",
"positive_comment": "This is good",
"negative_comment": "This is bad",
"score": 7
}
]
}
]
Average(
Ungroup(
ForAll(
Table(ParseJSON(ThisItem.Result)),
{
Subtable: ForAll(
RenameColumns(Table(Value.results),Value,Subvalue),
{Rulescore: Value(Subvalue.score)}
)
}
),
Subtable
),
Rulescore
)
Average(ThisItem.results,score)
Average(
Ungroup(
RenameColumns(
Colsingle_results,
name,
rule
),
results
),
score
)
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional