from(bucket: “jmeter”)
|> range(start: 0, stop: now())
|> filter(fn: (r) => r["_measurement"] == “jmeter”)
|> filter(fn: (r) => r[“application”] == “demo_scenario.jmx @ 1 @ 2021-10-18T15:59:28Z”)
|> filter(fn: (r) => r["_field"] == “startedT”)
|> keep(columns: ["_time"])
|> sort(columns: ["_time"], desc: true)
|> last(column: “_time”)
------ results - 2021-10-18 21:29:29 GMT+5:30
same query doesn’t written any value in Grafana dashboard variables means showing “none” in preview of values.