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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Error in Pivot Table

I am creating a pivot table through a macro after making some selections which act as the dimensions.

The macro works fine when run on the server but when trying to run on IE, the pivot table is created but it is all black in color making it unreadable, even if i send it to excel, the font and the background color is black

Unable to resolve this issue

Please help

Regards

Peter

15 Replies
Not applicable
Author

You are absolutely right - the manual DOES say you should avoid changing the properties of objects in macros when running the document with QV Server. However, everyone does it and I am not aware of it ever causing any problems.

Having said that, I avoid it whenever possible and indeed you should also avoid macros too if possible (for example create multiple objects where only one is displayed using display conditioning based on variables rather than changing properties).

Regards,

Gordon

Not applicable
Author

That's interesting... Thank you very much for this answer. I'll rely on you for this "everyone does it" then.

I understand macros should be avoided in order to keep things simple mainly. But official point of view is really scarry as if macros can't be stable or something.

Not applicable
Author

The main reason is that macros cause inefficiencies - caches are cleared and so on as Qlikview cannot know what you are up to with your code. I have attached a document from Qliktech which should give you more details why macros should be avoided if possible.

Regards,

Gordon

Not applicable
Author

Hi Peter,

i am facing on exacly the same problem. I want to build a pivot table depending on the selections, my users made on another sheet. There should be different Buttons, where you can choose, how you pivot table should look like and which dimensions and expressions are used. Perhaps you can help me, to find a solution:
How do you remove the existing fields and adding new fields in an already existing Pivot table?

Regards, Martin

johnw
Champion III
Champion III

Not sure quite what you're looking for, but attached is one way of adding and removing dimensions and expressions based on user selections.

Not applicable
Author

Hi John,

your example helps me to find a solution for my problem. Thank you so much!