I want to get the maximum value from the given data but max() function shows error my data is as under
{
"Items": [
{
"queueName": "basic",
"totalNumberOfCalls": 100,
"longestCall": 10,
"queueSLA": 50
},
{
"queueName": "inBound-inq",
"totalNumberOfCalls": 120,
"longestCall": 11,
"queueSLA": 60
},
{
"queueName": "support-inq",
"totalNumberOfCalls": 200,
"longestCall": 15,
"queueSLA": 65
},
{
"queueName": "verification-inq",
"totalNumberOfCalls": 80,
"longestCall": 13,
"queueSLA": 70
},
{
"queueName": "booking-inq",
"totalNumberOfCalls": 105,
"longestCall": 14,
"queueSLA": 75
}
]
}
I am using query max($…longestCall)
Please help me to solve this