<?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 Hide column in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/59204#M9832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a &lt;STRONG&gt;Pivot Table&lt;/STRONG&gt; with 3 dimensions, one of them placed in the X axis (TYPE LICENSE), and 3 expressions (Cars, Drivers and %), two of them shared by all dimension values, and a third one "%" which we only want to show for ONE of the values (TOTAL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="204388" alt="informe.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/204388_informe.PNG" style="height: 139px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We wonder how we can hide the % column for all values except "total" (please, consider it as a dimension value, not calculated by "show partial sum"). We have achieved to leave as NULL these columns, but not hide them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "%" expression is the following. :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15282095975281552" jivemacro_uid="_15282095975281552"&gt;
&lt;P&gt;=if(ColumnNo() = FieldIndex('COD_TYPE_LICENSE','TOTAL'),&lt;/P&gt;
&lt;P&gt;SUM({$&amp;lt;COD_TYPE_LICENSE={1}&amp;gt;} CLIENTS)/(SUM({$&amp;lt;COD_TYPE_LICENSE={1}&amp;gt;} CLIENTS)+SUM({$&amp;lt;COD_TYPE_LICENSE={2}&amp;gt;} CLIENTS))&lt;/P&gt;
&lt;P&gt;, null())&lt;/P&gt;




&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to hide the columns using the CONDITIONAL option and expression &lt;STRONG&gt;"ColumnNo() &amp;lt;&amp;gt; FieldIndex('COD_TYPE_LICENSE','TOTAL')", &lt;/STRONG&gt;but the function ColumnNo() is not returning any value when I use it in CONDITIONAL option (althought yes in metric expression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to hide an expression column for some dimension values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="204387" alt="ASD.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/204387_ASD.PNG" style="height: 520px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2018 14:48:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-05T14:48:22Z</dc:date>
    <item>
      <title>Hide column in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/59204#M9832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a &lt;STRONG&gt;Pivot Table&lt;/STRONG&gt; with 3 dimensions, one of them placed in the X axis (TYPE LICENSE), and 3 expressions (Cars, Drivers and %), two of them shared by all dimension values, and a third one "%" which we only want to show for ONE of the values (TOTAL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="204388" alt="informe.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/204388_informe.PNG" style="height: 139px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We wonder how we can hide the % column for all values except "total" (please, consider it as a dimension value, not calculated by "show partial sum"). We have achieved to leave as NULL these columns, but not hide them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "%" expression is the following. :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15282095975281552" jivemacro_uid="_15282095975281552"&gt;
&lt;P&gt;=if(ColumnNo() = FieldIndex('COD_TYPE_LICENSE','TOTAL'),&lt;/P&gt;
&lt;P&gt;SUM({$&amp;lt;COD_TYPE_LICENSE={1}&amp;gt;} CLIENTS)/(SUM({$&amp;lt;COD_TYPE_LICENSE={1}&amp;gt;} CLIENTS)+SUM({$&amp;lt;COD_TYPE_LICENSE={2}&amp;gt;} CLIENTS))&lt;/P&gt;
&lt;P&gt;, null())&lt;/P&gt;




&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to hide the columns using the CONDITIONAL option and expression &lt;STRONG&gt;"ColumnNo() &amp;lt;&amp;gt; FieldIndex('COD_TYPE_LICENSE','TOTAL')", &lt;/STRONG&gt;but the function ColumnNo() is not returning any value when I use it in CONDITIONAL option (althought yes in metric expression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to hide an expression column for some dimension values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="204387" alt="ASD.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/204387_ASD.PNG" style="height: 520px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 14:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/59204#M9832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-05T14:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hide column in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/59205#M9833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with &lt;STRONG&gt;=if(Dimensionality()=0.. &lt;/STRONG&gt;it will calculates your expression only for the total line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 14:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/59205#M9833</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-06-05T14:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hide column in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/59206#M9834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Youssef&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks for your suggestion!&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;It doesn't work. I forget to say that my "TOTAL" column is a Dimension value, it's not generated by "&lt;EM&gt;Show partial sum"&lt;/EM&gt; of Pivot Table. For this reason, I can't use dimensionality, it's the same in all cases.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Cheers and thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 14:59:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/59206#M9834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-05T14:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hide column in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/59207#M9835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;May be this - &lt;A href="https://community.qlik.com/thread/152551"&gt;Pivot Column Width to Zero&lt;/A&gt;&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;Use the next macro to "hide" columns in pivot:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 15:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/59207#M9835</guid>
      <dc:creator>isingh30</dc:creator>
      <dc:date>2018-06-05T15:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hide column in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/59208#M9836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, but would like to export the pivot table to excel with unneccesary columns! with the macro we hide columns in QV, but when we export the table to excel, it keeps empty columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 15:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/59208#M9836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-05T15:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hide column in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/59209#M9837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do you specify which column is hidden?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 13:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/59209#M9837</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2018-10-24T13:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hide column in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/1509069#M436509</link>
      <description>&lt;P&gt;Hi. How is it possible to call the macro by expanding or collapsing a pivot table?&lt;/P&gt;&lt;P&gt;I thinks we need to have an event to attach the macro.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 13:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-column-in-pivot-table/m-p/1509069#M436509</guid>
      <dc:creator>dzmitry_shmurye</dc:creator>
      <dc:date>2018-11-19T13:12:02Z</dc:date>
    </item>
  </channel>
</rss>

