Manipulating ${__series.name} variable

Hi there,

I have a data link configured doing a drill-down on a value in a Graph Panel.
Basically it opens another link with the ${__series.name} e.g.

Drill-down → https://www.test.com/ip=${__series.name}

However, my query for the series is grouped by two different fields (ip and ASN) - so in my panel it will show e.g. “1.1.1.1 12345” (ip + ASN)
But when using the ${__series.name} I only want to add the ip part and not the ASN part… So I am looking for a way of splitting ${__series.name} into an array or something.

Possible?

Anyone?
Many thanks in advance