Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
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

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.