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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

expand a dimension column in a pivot table

Hello

I got a pivot table in which I added a dimension and hid it via a macro (on load of the sheet)

however when this dimension comes collapsed by default

is there a way to expand it by code (macro)

I was able to hide it as follows:

set var = ActiveDocument.Variables("dimShow")

varValue = var.GetContent.String

set obj = ActiveDocument.GetSheetObject("CH01")

set objProp = obj.GetProperties

set objDim = objProp.Dimensions

if varValue = 1 then

  objDim(1).ColWidth = 0

  var.SetContent 0,true

is there a property like .expanded = 1

I can walk on water when it freezes
Labels (1)
0 Replies