Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Bookmarks and Macros

I have a report that uses a VB macro to turn on subtotals when a field is selected from another table.  The bookmarks seem to bypass running the macro.  Is this correct?

3 Replies
marcus_sommer

The best is to avoid macros - see Macros are Bad. In your case you could use your field twice one with subtotals and one without and each with a condition on your mentioned selected field - for this no macro will be needed.

- Marcus

Not applicable
Author

The problem is that the field selected by the user is just a yes/no that kicks off a macro that uses an object to turn on partial subtotals for a category.  I don't how to set that setting outside of a macro (other than at initial design).

marcus_sommer

Put your chart-dimension twice within the chart:

YourDimension // dimension-condition with subtotals: if(YourField = 'yes', true(), false())

YourDimension // dimension-condition without subtotals: if(YourField = 'no', true(), false())

- Marcus