Using SoQL (Socrata Query Language) we can filter the values of a data set using the in(...)
function.
A sample example is shown in the socrata website using the Chicago open data portal.
But when I try this functionality using a different data set of the same data portal I don't get the answer. Here is the SoQL I used
https://data.cityofchicago.org/resource/uupf-x98q.json?$where=police_district in('12','24')
I get the following error.
{
"code" : "query.compiler.malformed",
"error" : true,
"message" : "Error, could not parse SoQL query \"select * from #uupf-x98q where police_district in('12','24')\"",
"data" : {
"query" : "select * from #uupf-x98q where police_district in('12','24')"
}
}