How can I create a date variable for grafana using the _time field of influx ? I want to combine _time from 2 diff. measurements which are part of same bucket

How can I create a date variable for grafana using the _time field of influx ? I want to combine _time from 2 diff. measurements which are part of same bucket.