You have to write in Chart -> Properties -> Layout -> Conditional
and paste a code there
If( Value = 1 And vDetailId = 2 , 1, 0)
And try to set different value for variables Value and vDetailId but it works only when it is 1 and 2
See the attached sample file.
Layout Test.qvw 121.5 K