I have a measurement for the populations of different cities. I can get the last record one by one for each city but I would like to do that in one query. I don't know how to get that done because this is basically my first flux query. I tried the follow query. You can probably see that it gave me the last data point of either New York or Los Angeles instead of one for New York and one for Los Angeles.
from(bucket: "population")
|> range(start: -7d)
|> filter(fn: (r) => r["city"] == "New York") or r["city"] == "Los Angeles"]
|> last()