1. Start the formula in vCondition with the equal sign, in order to pick the relevant formula before the expression gets to the Chart Measure - that means that Measures cannot be your chart Dimension, but it will largely improve performance.
2. The parameter to the $-sign expansion needs to be enclosed in single quotes, to appear as a string:
I believe that these two changes should fix the problem, however everything needs to be tested :-)
We teach these advanced techniques at the Masters Summit for Qlik - check our upcoming schedule and see if our agenda is good for you.