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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
hugmarcel
Specialist
Specialist

Activate / deaktivate pivot expression by macro

Hi

I have not found how to activate / deactivate a pivot formula (express) with an API macro. Any help?

Thx  a lot

Marcel

Labels (1)
4 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     You can remove and add expression using below

    

rem ** delete second expression from chart CH01 **

set chart = ActiveDocument.GetSheetObject("CH01")

chart.RemoveExpression 1

set chart = ActiveDocument.GetSheetObject("CH01")

chart .AddExpression "sum(Amount)"

Celambarasan

jagan
Partner - Champion III
Partner - Champion III

Hi,

If you are using Qlikview 11 you can do this by Conditional enablement of expression in Expression tab.  No need of using Macro.

Hope this helps you.

Regards,

Jagan.

hugmarcel
Specialist
Specialist
Author

Ok, nice to know the trick with QV 11. However, I am ussing QV 10 still.

How to add a label for the added expression then? I do not like to have ""sum(Amount)"" as label.

Thx - Marcel

jagan
Partner - Champion III
Partner - Champion III

Hi,

Hope the attached image helps you.

Regards,

Jagan.