<?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 Pivot table: multible column widths for expr. X based on dim. Y in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-multible-column-widths-for-expr-X-based-on-dim-Y/m-p/156711#M589730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars,&lt;/P&gt;&lt;P&gt;In such case you need to have 3 tables, one when nothing is selected and rest two based on selection. I know its not a good solution. but sometime we need to do like this.&lt;/P&gt;&lt;P&gt;OR rather I can suggest you to add a new column in your script, and in pivot tabel chart, you can have a calculated dimesnsion, where you can define if(value=a, X col ,b ) something on&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2009 19:35:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-14T19:35:13Z</dc:date>
    <item>
      <title>Pivot table: multible column widths for expr. X based on dim. Y</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-multible-column-widths-for-expr-X-based-on-dim-Y/m-p/156707#M589726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have thought a lot about the naming of this thread so hopefully it makes sense [:|]. I have the following pivot table object in the enclosed QV application:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-373_sourceID:373" /&gt;&lt;/P&gt;&lt;P&gt;The object includes two calculations where Calc1 is only calculated when DIM_2 = A and Calc2 when DIM_2 = B.&lt;/P&gt;&lt;P&gt;Now - what I want to do is obviously to hide Calc2 when DIM_2 = A and Calc1 when DIM_2 = B or alternatively to use a macro to set the column width to 0.&lt;/P&gt;&lt;P&gt;Obviously, the problem is, that e.g. Calc2 is the same column under both DIM_2 = A and B, so changing the width under A will reflect the same change under B.... [:^)]&lt;/P&gt;&lt;P&gt;Is there a way that you can set multible widths of the Calc1 and Calc2 columns?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lars Madsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 13:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-multible-column-widths-for-expr-X-based-on-dim-Y/m-p/156707#M589726</guid>
      <dc:creator />
      <dc:date>2009-08-13T13:46:11Z</dc:date>
    </item>
    <item>
      <title>Pivot table: multible column widths for expr. X based on dim. Y</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-multible-column-widths-for-expr-X-based-on-dim-Y/m-p/156708#M589727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars,&lt;/P&gt;&lt;P&gt;I do not think it is possible to have more than one width on the same expression in a chart. A possible solution is to have multiple versions of the chart with teh same position on the screen but different column widths and to use a show condition to show the relevant chart given the selection on DIM_2. ie if B is selected suppress the A chart and show the B chart and vice versa.&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Footsie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 13:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-multible-column-widths-for-expr-X-based-on-dim-Y/m-p/156708#M589727</guid>
      <dc:creator />
      <dc:date>2009-08-13T13:52:44Z</dc:date>
    </item>
    <item>
      <title>Pivot table: multible column widths for expr. X based on dim. Y</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-multible-column-widths-for-expr-X-based-on-dim-Y/m-p/156709#M589728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Footsie&lt;/P&gt;&lt;P&gt;Thanks for the reply - I think you are right that this approach would work out in some cases. It's still a problem if I need both A and B visible at the same time but your proposal got me thinking &lt;IMG alt="Hmm" src="http://community.qlik.com/emoticons/emotion-40.gif" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 18:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-multible-column-widths-for-expr-X-based-on-dim-Y/m-p/156709#M589728</guid>
      <dc:creator />
      <dc:date>2009-08-14T18:26:12Z</dc:date>
    </item>
    <item>
      <title>Pivot table: multible column widths for expr. X based on dim. Y</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-multible-column-widths-for-expr-X-based-on-dim-Y/m-p/156710#M589729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars,&lt;/P&gt;&lt;P&gt;You could have a third copy of the chart and in the show condition use getselectedcount(DIM_2)=0. This means you will have 3 charts altogether. Three charts might be a bit of a pain in terms of maintenance but it is a solution.&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Footsie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 18:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-multible-column-widths-for-expr-X-based-on-dim-Y/m-p/156710#M589729</guid>
      <dc:creator />
      <dc:date>2009-08-14T18:49:15Z</dc:date>
    </item>
    <item>
      <title>Pivot table: multible column widths for expr. X based on dim. Y</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-multible-column-widths-for-expr-X-based-on-dim-Y/m-p/156711#M589730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars,&lt;/P&gt;&lt;P&gt;In such case you need to have 3 tables, one when nothing is selected and rest two based on selection. I know its not a good solution. but sometime we need to do like this.&lt;/P&gt;&lt;P&gt;OR rather I can suggest you to add a new column in your script, and in pivot tabel chart, you can have a calculated dimesnsion, where you can define if(value=a, X col ,b ) something on&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 19:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-multible-column-widths-for-expr-X-based-on-dim-Y/m-p/156711#M589730</guid>
      <dc:creator />
      <dc:date>2009-08-14T19:35:13Z</dc:date>
    </item>
    <item>
      <title>Pivot table: multible column widths for expr. X based on dim. Y</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-multible-column-widths-for-expr-X-based-on-dim-Y/m-p/156712#M589731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Thanks for your replies!&lt;/P&gt;&lt;P&gt;My query was initiated by another discussion on the forum. Referred to as a "Merged header issue" for Pivot tables my need is to control the visibility of DIM_2 in relation to DIM_1. Mergin the header of DIM_1 above DIM_2 gives a better visual presentation I think compared to adding an expression column for each calculation.&lt;/P&gt;&lt;P&gt;I will therefore direct the attention to this post since 'asomani' and 'john witherspoon' provide a briliant way to control the pivot table's merged headers and therefore also provide a workaround for hiding my empty calculations in the first example (though it's not exactly a solution to having multiple column widths apart to set them to zero = hide&lt;/P&gt;&lt;P&gt;Pls. refer to this post: "Merge headers in Pivot tables" &lt;A href="http://community.qlik.com/forums/p/19453/74666.aspx#74666"&gt;http://community.qlik.com/forums/p/19453/74666.aspx#74666&lt;/A&gt;&lt;/P&gt;&lt;P&gt;See enclosed QV application as well. Loading an Inline table as a mask and combining with "pick(match" function will allow me to control exactly what members of the DIM_2 dimension should appear under DIM_1 which is another way of "hiding" obsolete members.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/1464.PivotHideObsoleteColumns.bmp"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/1464.PivotHideObsoleteColumns.bmp" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks again guys,&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 15:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-multible-column-widths-for-expr-X-based-on-dim-Y/m-p/156712#M589731</guid>
      <dc:creator />
      <dc:date>2009-08-17T15:13:38Z</dc:date>
    </item>
  </channel>
</rss>

