How to Create a Variable in Grafana Based on Table Column Filters

Grafana Version 10.3.3

I have a requirement where I need to influence the chart above based on the filters applied in the table below. Specifically, I want to create a new variable that updates according to the filters applied on each column of the table. This new variable should then be used to dynamically update the chart.