Data Link not working properly

Hey folks,

Grafana 8.5.2
Influx 2.0.6 using Flux

I’m trying to use a data link to populate a different panel with a template variable. The template variable name is interface. I configured the data link in the following way.${}

When I click on the data link, however, it populates the interface value with the name of the measurement in the query.

This is the query…

from(bucket: “bucket”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == “Net-System”)
|> filter(fn: (r) => r[“hostname”] == “${Source}”)
|> filter(fn: (r) => r["_value"] > 0)
|> filter(fn: (r) => r["_field"] == “ifHCInOctets”)
|> derivative(unit: 1s, nonNegative: true, columns: ["_value"], timeColumn: “_time”)
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield()