<?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: BAR CHART, exclude variables in the DIMENSION in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/BAR-CHART-exclude-variables-in-the-DIMENSION/m-p/865630#M995832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can do it in calculated Dimension or in Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;If (Dim&amp;lt;&amp;gt;'NONE' or Dim&amp;lt;&amp;gt;'NULL',Dim,null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Dim-={'NONE','NULL'}&amp;gt;}Measure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 18:30:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-01T18:30:23Z</dc:date>
    <item>
      <title>BAR CHART, exclude variables in the DIMENSION</title>
      <link>https://community.qlik.com/t5/QlikView/BAR-CHART-exclude-variables-in-the-DIMENSION/m-p/865629#M995831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I make a BAR CHART, I want to include the value "NULL"? &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91507_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see the value "NONE" and "NULL"&amp;nbsp; dominates the chart, this should be eliminated, how do I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 17:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BAR-CHART-exclude-variables-in-the-DIMENSION/m-p/865629#M995831</guid>
      <dc:creator />
      <dc:date>2015-07-01T17:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAR CHART, exclude variables in the DIMENSION</title>
      <link>https://community.qlik.com/t5/QlikView/BAR-CHART-exclude-variables-in-the-DIMENSION/m-p/865630#M995832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can do it in calculated Dimension or in Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;If (Dim&amp;lt;&amp;gt;'NONE' or Dim&amp;lt;&amp;gt;'NULL',Dim,null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Dim-={'NONE','NULL'}&amp;gt;}Measure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 18:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BAR-CHART-exclude-variables-in-the-DIMENSION/m-p/865630#M995832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-01T18:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAR CHART, exclude variables in the DIMENSION</title>
      <link>https://community.qlik.com/t5/QlikView/BAR-CHART-exclude-variables-in-the-DIMENSION/m-p/865631#M995833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jane&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As noted above you can use a calculated dimension or an expression to achieve this.&amp;nbsp; A key point not mentioned above is that if you use a calculated dimension you must remember to tick the 'Suppress When Value Is Null' option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To illustrate, you start with:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="91589" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91589_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;If you add a calculated dimension &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;'NONE' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;'NULL',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,) &lt;/SPAN&gt;but forget to tick the 'Suppress When Value Is Null' option you will get:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="91590" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/91590_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;You can see that the excluded values are now shown as a new untitled bar.&amp;nbsp; Selecting the calculated dimension and ticking the 'Suppress When Value Is Null' option removes this bar so you end up with:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="91592" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/91592_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;The option can be found on the Dimensions tab of the chart properties&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="91593" class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/91593_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;In the calculated dimension formula it is important to use the correct logical operator.&amp;nbsp; In the examples given in the previous answer the operator 'OR' is used.&amp;nbsp; This will not work as effectively the expression is saying if the dimension is not NONE or the dimension is not NULL then display the dimension.&amp;nbsp; However when it is NULL it is not NONE and when it is NONE it is not NULL so the values will persist.&amp;nbsp; To get them to disappear you have to basically say only show the values where the dimension is not NULL and NONE, hence the 'and' operator will work. E.g.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;'NONE' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;'NULL',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Another way to write this which may be easier to follow is &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='NONE' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='NULL',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Null&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Note in this version the operator 'OR' is used rather than 'AND'.&amp;nbsp; What makes the difference is that in the first example the expression is based on NONE and NULL &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; being present whereas in the second version the expression is based on where they are present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to summarise the second formula above basically says if the value of the dimension is NONE or NULL then replace the value with a nulled result otherwise show the value of Dimension.&amp;nbsp; With the values of NONE and NULL being converted to a nulled result then when the 'Suppress When Value Is Null' option is ticked the values NONE and NULL vanish from the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use the expression version then just use the Dimension and an expression of&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={'NONE','NULL'}&amp;gt;}Value1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;which is basically saying 'only sum the values in the Value1 field where the value in the Dimension is not NULL or NONE.&amp;nbsp; You don't need to tick the 'Suppress When Value Is Null' option for this expression approach to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 02:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BAR-CHART-exclude-variables-in-the-DIMENSION/m-p/865631#M995833</guid>
      <dc:creator />
      <dc:date>2015-07-02T02:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: BAR CHART, exclude variables in the DIMENSION</title>
      <link>https://community.qlik.com/t5/QlikView/BAR-CHART-exclude-variables-in-the-DIMENSION/m-p/865632#M995834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91596_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching is a sample file.&lt;/P&gt;&lt;P&gt;I have created 2 expressions one without NONE &amp;amp; NULL and other one ONLY FOR NONE &amp;amp; NULL&lt;/P&gt;&lt;P&gt;in the Axes tab of properties I have changed the position of one expression on the left and other on the right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 05:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BAR-CHART-exclude-variables-in-the-DIMENSION/m-p/865632#M995834</guid>
      <dc:creator>svenkita</dc:creator>
      <dc:date>2015-07-02T05:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAR CHART, exclude variables in the DIMENSION</title>
      <link>https://community.qlik.com/t5/QlikView/BAR-CHART-exclude-variables-in-the-DIMENSION/m-p/865633#M995835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 01:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BAR-CHART-exclude-variables-in-the-DIMENSION/m-p/865633#M995835</guid>
      <dc:creator />
      <dc:date>2015-07-03T01:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: BAR CHART, exclude variables in the DIMENSION</title>
      <link>https://community.qlik.com/t5/QlikView/BAR-CHART-exclude-variables-in-the-DIMENSION/m-p/865634#M995836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're most welcome.&amp;nbsp; Glad it helped &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 01:15:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BAR-CHART-exclude-variables-in-the-DIMENSION/m-p/865634#M995836</guid>
      <dc:creator />
      <dc:date>2015-07-03T01:15:05Z</dc:date>
    </item>
  </channel>
</rss>

