Issues with variable referencing variable

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.

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