Thanks for your quick response.
I'm relatively new to qlikview .It'll be great if you could suggest further info on the macro if possible ,like a sample may be .
I don't think the second option is possible .
As I always want all the four charts to be visible .
Button should change all the chart views to same expression when clicked on it .And show next expression for next click .Hope my question is clear .
One set of 4 charts would have their conditional show set to vExpr = 'Cond A',
one set would have their conditional show set to vExpr = 'Cond B', and
one set would have their conditional show set to vExpr = 'Cond C'
Here is code from the API Guide for setting a chart's expression via code:
rem change expression in chart
set chart = ActiveDocument.GetSheetObject("CH01")
set p = chart.GetProperties
set expr = p.Expressions.Item(0).Item(0).Data.ExpressionData
expr.Definition.v = "sum(Amount)"
I still recommend the first solution.