Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
perumal_41
Partner - Specialist II
Partner - Specialist II

Promote and Demote

Hi Qlikview Experts,

Please guide me expression Promote and Demote  through macro in Object .

Regards

Perumal A

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can use the MoveDimension and MoveExpression members of the chart object.

Examples from the com api:

rem create new straight table and switch places of dimension columns

set chart = ActiveDocument.Sheets("Main").CreateStraightTable

chart.AddDimension "ProductType"

chart.AddDimension "ProductGroup"

chart.AddExpression "sum(Amount)"

chart.MoveDimension 1,0

rem create new straight table and switch places of expression columns

set chart = ActiveDocument.Sheets("Main").CreateStraightTable

chart.AddDimension "ProductType"

chart.AddExpression "sum(Amount)"

chart.AddExpression "count(Product)"

chart.MoveExpression 1,0


talk is cheap, supply exceeds demand
perumal_41
Partner - Specialist II
Partner - Specialist II
Author

Hi Gysbert Wassenaar,

Thanks for Valueble  time spend for me.but I Don't want create new object .I have  Already Created Chart,in this chart i want do  Expression promote and demote

Regards

Perumal

Not applicable

How many expressions You've got in that chart?

perumal_41
Partner - Specialist II
Partner - Specialist II
Author

Hi,

I have 10 Expression  in Chart based on selection expression want promote or demote .

Regards

Perumal A