# Issues with variable referencing variable

**URL:** <https://community.grafana.com/t/issues-with-variable-referencing-variable/13806>\
**Category:** InfluxDB\
**Created:** [January 24, 2019, 2:09pm UTC](https://community.grafana.com/t/issues-with-variable-referencing-variable/13806 "2019-01-24T14:09:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarky1](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/sarky1/32/5887_2.png) [@sarky1](https://community.grafana.com/u/sarky1)\
**Post date:** [January 24, 2019, 2:09pm UTC](https://community.grafana.com/t/issues-with-variable-referencing-variable/13806/1 "2019-01-24T14:09:53Z")

</div>

I’m having issues with a variable referencing a variable.

I’m trying to repeat a graph for each interface on a san switch. This works correctly however I need to include the description field for each port in the title for each graph.

I’m trying to achieve this by setting the $name field and pulling that by a variable like so.

 ![name-variable](https://us1.discourse-cdn.com/grafana/original/2X/2/2365a13f40076d873255c6ac0ae196151501fcf2.png)

I’m getting $name = None when doing this. If I select a single port this works fine because its not getting multiple values back I assume. Is there someway to reference an array of the values returned or what am I missing to be able to get this information?

Here is my input values from telgraf to influxdb if that helps.

```
sanbox,agent_host=sb5602d,connUnitPortName=wit0,connUnitPortStatIndex=1,host=gone,hostname=sb5602d connUnitPortStatCountClass3Discards=0i,connUnitPortStatCountClass3RxFrames=187573205468i,connUnitPortStatCountClass3TxFrames=554932053263i,connUnitPortStatCountError=49i,connUnitPortStatCountInvalidCRC=0i,connUnitPortStatCountLinkFailures=0i,connUnitPortStatCountLossofSignal=9223372036854775807i,connUnitPortStatCountNumberLinkResets=13i,connUnitPortStatCountRxLinkResets=12i,connUnitPortStatCountRxObjects=187573227834i,connUnitPortStatCountTxLinkResets=1i,connUnitPortStatCountTxObjects=554932060275i,connUnitPortStatUnitId=1152922332949214475i 1548338822000000000
sanbox,agent_host=sb5602d,connUnitPortName=brawn0,connUnitPortStatIndex=2,host=gone,hostname=sb5602d connUnitPortStatCountClass3Discards=5i,connUnitPortStatCountClass3RxFrames=358784132980i,connUnitPortStatCountClass3TxFrames=1351690096658i,connUnitPortStatCountError=303141i,connUnitPortStatCountInvalidCRC=0i,connUnitPortStatCountLinkFailures=1i,connUnitPortStatCountLossofSignal=9223372036854775807i,connUnitPortStatCountNumberLinkResets=27i,connUnitPortStatCountRxLinkResets=22i,connUnitPortStatCountRxObjects=358784133824i,connUnitPortStatCountTxLinkResets=5i,connUnitPortStatCountTxObjects=1351690097707i,connUnitPortStatUnitId=1152922332949214475i 1548338822000000000

```

And the current output I’m getting

 ![interface-graphs](https://us1.discourse-cdn.com/grafana/original/2X/c/c6d5ded15b4999cfe5054211e9e8c4cc2a152525.png)
