Grafana custom query

Hi, I am successfully able to render data from one of my InfluxDB table on to grafana chart.Now on selection of any of the point from the chart, I need to query again to another table and pass this point as a where clause. Is this achievable ? Any help is appreciated .