Hi, I think the variable content starts with an equal sign, so it is evaluated globally, and the result is shown in the chart.
To filter by dimensions remove the starting equal sign, this way only the expression goes to the chart, not the result, and dimension values are applied.