Value dependent datalink

I have an sqlite3 database (pihole query database) with a field (additional_info) that can contain a number, a DNS domain or null. The database field is a text field

The grafana dashboard, I created, can thus display numeric ‘additional info’

alphanumeric (DNS domain) info

I want to create a datalink on the additional_info field, but since there are different queries required (depending on the value of the field), I need two datalinks, this to link to two different dashboards.

Is this possible?

using grafana 8.0.3