<?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: Hide dimensions in charts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138413#M522363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is two ways you can do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Calculated dimension (as Rob also mentioned)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125620_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(vVar = 1, If(Sort &amp;lt;&amp;gt; 999, Item), Item)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Set analysis&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/125627_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Item&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Sort = {$(=If(vVar = 1, Chr(39) &amp;amp; '&amp;gt;999&amp;lt;999' &amp;amp; Chr(39), Chr(39) &amp;amp; '*' &amp;amp; Chr(39)))}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 17:35:49 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-24T17:35:49Z</dc:date>
    <item>
      <title>Hide dimensions in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138411#M522361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm a self made user of QV11 and I have a question about how to hide a dimension of a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the situation :&lt;/P&gt;&lt;P&gt;I'm loading my data from an excel file.&lt;/P&gt;&lt;P&gt;In order to custom the sorting order of my chart, I "left join" another excel file with the sorting order values (1, 2, 3, etc...)&lt;/P&gt;&lt;P&gt;For the data not matching with the sorting order file, I map the value 999.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to illustrate, I have :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data file :&lt;/P&gt;&lt;P&gt;[item]&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorting file :&lt;/P&gt;&lt;P&gt;[item],[sort order]&lt;/P&gt;&lt;P&gt;A,3&lt;/P&gt;&lt;P&gt;B,1&lt;/P&gt;&lt;P&gt;C,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which gives me the table after mapping :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[item],[sort order]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A,3&lt;/P&gt;&lt;P&gt;B,1&lt;/P&gt;&lt;P&gt;C,2&lt;/P&gt;&lt;P&gt;D,999&lt;/P&gt;&lt;P&gt;(plus all the values in the data files)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in my chart, I show the different items as dimension, the values I want to show and I sort my items using the expression [sort order].&lt;/P&gt;&lt;P&gt;I then have showed :&lt;/P&gt;&lt;P&gt;B, C, A, D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works perfectly but now I want to have the possibility to hide all the dimensions not present in my sorting file (so all the dimensions having 999 in [sort oder]).&lt;/P&gt;&lt;P&gt;If possible, I would like to use a kind of switch button "show/hide".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how I could do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 16:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138411#M522361</guid>
      <dc:creator>takama13</dc:creator>
      <dc:date>2016-05-24T16:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hide dimensions in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138412#M522362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simple approach is to create the Dimension twice. Once as [item], the second with the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(only({&amp;lt;[sort order]-={999}&amp;gt;}item), item)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Enable Conditional property on each Dim to test a variable. eg =vShow999 and =NOT vShow999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the variable and initialize it to 1. Then create a button that changes the variable value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 16:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138412#M522362</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-05-24T16:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hide dimensions in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138413#M522363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is two ways you can do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Calculated dimension (as Rob also mentioned)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125620_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(vVar = 1, If(Sort &amp;lt;&amp;gt; 999, Item), Item)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Set analysis&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/125627_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Item&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Sort = {$(=If(vVar = 1, Chr(39) &amp;amp; '&amp;gt;999&amp;lt;999' &amp;amp; Chr(39), Chr(39) &amp;amp; '*' &amp;amp; Chr(39)))}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 17:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138413#M522363</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-24T17:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hide dimensions in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138414#M522364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both of you, that works perfectly.&lt;/P&gt;&lt;P&gt;I used the solution 1 from Sunny T, which is very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I spent several days playing with the property "Activate condition" and tried to use quite the same formula but seems I had to use a calulated dimension instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 17:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138414#M522364</guid>
      <dc:creator>takama13</dc:creator>
      <dc:date>2016-05-24T17:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hide dimensions in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138415#M522365</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;maybe another solution could be to create an additional selector field and simply use a listbox instead of a button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_218172_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125651_QlikCommunity_Thread_218172_Pic1.JPG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_218172_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/125652_QlikCommunity_Thread_218172_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_218172_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/125653_QlikCommunity_Thread_218172_Pic3.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14641188385568908" jivemacro_uid="_14641188385568908"&gt;
&lt;P&gt;mapSortingFile:&lt;/P&gt;
&lt;P&gt;Mapping LOAD * Inline [&lt;/P&gt;
&lt;P&gt;item,sort order&lt;/P&gt;
&lt;P&gt;A,3&lt;/P&gt;
&lt;P&gt;B,1&lt;/P&gt;
&lt;P&gt;C,2&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabDataFile:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Rand()*100) as SomeFact,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('mapSortingFile',item,999) as [sort order],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(ApplyMap('mapSortingFile',item,Null()),'only items present in sorting table') as [show/hide]&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;item&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;P&gt;C&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 19:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138415#M522365</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-05-24T19:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hide dimensions in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138416#M522366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting solution too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 14:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138416#M522366</guid>
      <dc:creator>takama13</dc:creator>
      <dc:date>2016-06-02T14:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hide dimensions in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138417#M522367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good solutions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem like that, and now I can solve it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 20:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-dimensions-in-charts/m-p/1138417#M522367</guid>
      <dc:creator>gilbertomedeiro</dc:creator>
      <dc:date>2016-09-26T20:41:36Z</dc:date>
    </item>
  </channel>
</rss>

