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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to add and remove expressions from line chart dynamically

How to add and remove expressions from line chart dynamically

2 Replies
its_anandrjs
Champion III
Champion III

Hi,

See the attached sample file how to use dynamic epression it will explain you.

Let me know about this

Rgds

Anand

Not applicable
Author

Trigger the below macros accordingly.

set chart = ActiveDocument.GetSheetObject("CH01")

chart.AddExpression "sum(sales)"

set chart = ActiveDocument.GetSheetObject("CH01")

chart.RemoveExpression "sum(sales)"

Regards,

Kiran.