My query is not about dynamic dimension but on swapping filters. I've tried explaining with an example as well.
Similar idea but with Boolean filter
Create a parameter with two options Year and Country
Create a calc field to leverage the parameter. Calc1
Something like this : Case [Choose parameter] When 'Country' Then 'USA' When 'Year' Then '2014' End
Create another calc field to apply this as filter : [State] = [Calc1] Or Str([Year]) = [Calc1]
And use this second calc in the filter and choose True.
Thanks Surendra! Putting 1 and 0 as values after the condition expression did the trick I was missing earlier.
Glad it helped