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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

hide a table column

I did search the forum before opening this, but didn't find an answer.

Requirement is to hide a straight & pivot table for all users except some AD IDs. Also in some tables, need to hide a particular column if not in the allowed AD ID list. How to achieve both? Thanks

12 Replies
Not applicable
Author

My aim to hide the coloumns is;

Do the basic calculation at one column and then use this result at the other columns repeatedly.

So removing, adding columns is not a solution for me, because I need to use the columns while they are hidden.

I give a sensible name to my calculated column and show to user. So there is no need to hide it any more, my problem is considered to be solved for now.

Anonymous
Not applicable
Author

Here is a macro I'm using somitimes to hide column in pivot:


sub Squeeze
call HideColumn("CH01", 2)
end sub
'
private sub HideColumn(ch, n)
set ch = ActiveDocument.GetSheetObject(ch)
ch.SetPixWidth (n-1), 0
end sub


Not applicable
Author

Thank you Michael, your code is helpfull !