<?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 Re: Hiding Dimension (pivot) by using Sheet Properties in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201343#M59484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using this code to hide a column, but I'd also like to have some code that "undoes" the hiding, so that I can toggle back and forth. How do I "unhide" the column I hid?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2015 22:16:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-18T22:16:43Z</dc:date>
    <item>
      <title>Hiding Dimension (pivot) by using Sheet Properties</title>
      <link>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201336#M59477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to hide a column by setting a 'Sheet Object Event trigger - OnActive' action from the Sheet Properties, Triggers tab - I don't seem to be able to get the VB to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Sub HideDim&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;set obj = ActiveDocument.GetSheetObject("CH364")&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;set objProp = obj.GetProperties&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;set objDim = objProp.Dimensions&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;objDim(2).ColWidth = 0&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;obj.SetProperties objProp&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;end sub&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Can someone point out my obvious mistake as I'm not a VB developer&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 14:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201336#M59477</guid>
      <dc:creator />
      <dc:date>2011-04-06T14:47:24Z</dc:date>
    </item>
    <item>
      <title>Hiding Dimension (pivot) by using Sheet Properties</title>
      <link>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201337#M59478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;This is what I use to hide column in a pivot table (in this example chart CH01, column 2):&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub Squeeze&lt;BR /&gt; call HideColumn("CH01", 2)&lt;BR /&gt;end sub&lt;BR /&gt;'&lt;BR /&gt;private sub HideColumn(ch, n)&lt;BR /&gt; set ch = ActiveDocument.GetSheetObject(ch)&lt;BR /&gt; ch.SetPixWidth (n-1), 0&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 14:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201337#M59478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-06T14:53:59Z</dc:date>
    </item>
    <item>
      <title>Hiding Dimension (pivot) by using Sheet Properties</title>
      <link>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201338#M59479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option is to disable columns:&lt;/P&gt;&lt;P&gt;set chart = ActiveDocument.GetSheetObject("CH678")&lt;/P&gt;&lt;P&gt;cp = chart.GetProperties&lt;/P&gt;&lt;P&gt;set expr = cp.Expressions.Item(0).Item(0).Data.ExpressionData 'where the first item(0) is item(column number)&lt;BR /&gt;&lt;BR /&gt; expr.Enable = false&lt;/P&gt;&lt;P&gt;chart.SetProperties cp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 15:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201338#M59479</guid>
      <dc:creator />
      <dc:date>2011-04-06T15:01:43Z</dc:date>
    </item>
    <item>
      <title>Hiding Dimension (pivot) by using Sheet Properties</title>
      <link>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201339#M59480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't get this to disable a dimension colunm it stops at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set expr = cp.Expressions.Item(0).Item(0).Data.ExpressionData 'where the first item(0) is item(column number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 15:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201339#M59480</guid>
      <dc:creator />
      <dc:date>2011-04-06T15:42:18Z</dc:date>
    </item>
    <item>
      <title>Hiding Dimension (pivot) by using Sheet Properties</title>
      <link>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201340#M59481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry i thought you wanted to hide an expression. You should either use Michael's solution above or create a calculated dimension.&lt;/P&gt;&lt;P&gt;To create a calculated dimension take a look at the following post, there's a sample file called test.qvw that explains what to do:&lt;/P&gt;&lt;P&gt;http://community.qlik.com/forums/t/19245.aspx&lt;/P&gt;&lt;P&gt;Basically you will create a dimension that looks like:&lt;/P&gt;&lt;P&gt;=if($(dimShow)=1,'Dim2',' ')&lt;/P&gt;&lt;P&gt;The dimShow will be set in the maco to be either 1 or 0.&lt;/P&gt;&lt;P&gt;If you want you can post your qvw I could help set it up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 16:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201340#M59481</guid>
      <dc:creator />
      <dc:date>2011-04-06T16:13:56Z</dc:date>
    </item>
    <item>
      <title>Hiding Dimension (pivot) by using Sheet Properties</title>
      <link>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201341#M59482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Otherwise you can have a look at this topic as well: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/37998#37998"&gt;http://community.qlik.com/message/37998#37998&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similar to the above solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 02:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201341#M59482</guid>
      <dc:creator />
      <dc:date>2011-06-02T02:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding Dimension (pivot) by using Sheet Properties</title>
      <link>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201342#M59483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to use this code to hide a colunm in a pivot table but without success, Can you please help in getting the code right please My sheet object Id is SH04 coloumn is 11 and chart Id is CH06 Below is the senario why I want to hide the column&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;am working on a financial dashboard where in it has Group Name, Account,Actual ,Budget ,variance column for Period Year to Date and Full year respectively, Now as the data is not available still for Full year I want to Hide Actual Column for Full Year, When am trying to hide Actual by writing false() or 0 in Condition expression it is hiding the entire Actual column ie also for Period &amp;amp; Year to Date, I just want to Hide Actual Column for Full Year, Is this possible,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I searched on line for this and found some macro to hide the column by adjusting width to 0 but couldn't able to understand where to put that code or how to use&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Thanks a lot fro your help &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 15:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201342#M59483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-13T15:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding Dimension (pivot) by using Sheet Properties</title>
      <link>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201343#M59484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using this code to hide a column, but I'd also like to have some code that "undoes" the hiding, so that I can toggle back and forth. How do I "unhide" the column I hid?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 22:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hiding-Dimension-pivot-by-using-Sheet-Properties/m-p/201343#M59484</guid>
      <dc:creator />
      <dc:date>2015-08-18T22:16:43Z</dc:date>
    </item>
  </channel>
</rss>

