How to replicate graphite template query to Influxdb template query

I am using Grafana v4.6.2 i want to replicate following query in influxdb templating

stats.timers.call_loop.*.$org.*.*

call_loop is a measurement
$org is tag key

thanks in advance

what does your influxdb data look like? What are your measurement names and tags?

sorry for late replay

this is tree structure of graphite data

Screenshot from 2018-01-12 16-16-41

i want to visualize data with variable “upper” from 623294524revvcde6765.*.upper