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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

loop columns of a pivot table

I got a pivot table with several dimensions

I need a macro that loops through all dimensions of a pivot table so that it Collapses All instead of right clicking and click Collapse All

Please advise

I can walk on water when it freezes
2 Replies
sivarajs
Specialist II
Specialist II

This might help you to proceed

See the attachment

hani_saghir
Contributor III
Contributor III

Allow me to demonstrate Ali's concern:drill down.png

in this snapshot you can see that you have 5 dimensions with some rows expanded.

we need to give the use the possibility to collapse all dimensions. if you click "Collapse dimension columns", the get collapsed, however f you click back the +, the old expansion will return as is. and what is not really user friendly is that a user might drill down a chart on a day, and many days later open that chart to find it expanded, so the user will have to collapse each column one by one.

is there a way to write a macro that loops the dimensions, and collpases them one by one?