<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic expand a dimension column in a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expand-a-dimension-column-in-a-pivot-table/m-p/275559#M102813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I got a pivot table in which I added a dimension and hid it via a macro (on load of the sheet)&lt;/P&gt;&lt;P&gt;however when this dimension comes collapsed by default&lt;/P&gt;&lt;P&gt;is there a way to expand it by code (macro)&lt;/P&gt;&lt;P&gt;I was able to hide it as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;set var = ActiveDocument.Variables("dimShow")&lt;/P&gt;&lt;P&gt;varValue = var.GetContent.String&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;set objProp = obj.GetProperties&lt;/P&gt;&lt;P&gt;set objDim = objProp.Dimensions&lt;/P&gt;&lt;P&gt;if varValue = 1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; objDim(1).ColWidth = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; var.SetContent 0,true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;is there a property like .expanded = 1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2011 08:18:32 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2011-06-09T08:18:32Z</dc:date>
    <item>
      <title>expand a dimension column in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/expand-a-dimension-column-in-a-pivot-table/m-p/275559#M102813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I got a pivot table in which I added a dimension and hid it via a macro (on load of the sheet)&lt;/P&gt;&lt;P&gt;however when this dimension comes collapsed by default&lt;/P&gt;&lt;P&gt;is there a way to expand it by code (macro)&lt;/P&gt;&lt;P&gt;I was able to hide it as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;set var = ActiveDocument.Variables("dimShow")&lt;/P&gt;&lt;P&gt;varValue = var.GetContent.String&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;set objProp = obj.GetProperties&lt;/P&gt;&lt;P&gt;set objDim = objProp.Dimensions&lt;/P&gt;&lt;P&gt;if varValue = 1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; objDim(1).ColWidth = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; var.SetContent 0,true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;is there a property like .expanded = 1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 08:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expand-a-dimension-column-in-a-pivot-table/m-p/275559#M102813</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2011-06-09T08:18:32Z</dc:date>
    </item>
  </channel>
</rss>

