I want to filter a data set with in a range. As an example there is a table which contain the details of students. As a user Is there a way to filter students who are born with in a certain period of time according to their birth year by using dashboard ?
The best starting point is to first create such SQL query in Postgres console and then once you get such result, could simply use it inside Grafana to create such dashboard.
try this. It will use the time range selector provided by grafana.
SELECT
birthdate AS "time",
first_name
FROM students
WHERE extract(epoch from birthdate) between ${__from:date:seconds}
and ${__to:date:seconds}
ORDER BY 1