Hello I have a bar chart with an aggr dimension to capture the top 15 states by the sum of a value. I would like the top 15 to flex based on the value of a selected variable. In my sheet i have a variable that allows the user to select a measure and the chart flexes to that measure. I want the aggr to flex to that measure as well. It is as if i need to embed the variable within the aggr but I can't get it to work. Below my screen print I have pasted the set analysis that drives the metrics/visualizations. Any help would be much appreciated.
Here are each of the metrics behind the button/variable.