<?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: How to exclude product group at a chart and scipt level? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-exclude-product-group-at-a-chart-and-scipt-level/m-p/568593#M479636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got the product name wrong &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; Scripting works. Thanx!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Jan 2014 12:23:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-25T12:23:34Z</dc:date>
    <item>
      <title>How to exclude product group at a chart and scipt level?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-product-group-at-a-chart-and-scipt-level/m-p/568590#M479633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to exclude one product group ("Group X") from Product Group list ("Product Groups") so that I don't&amp;nbsp; have them visible in ListBox so that I don't display them on charts. I can imagine solving that on two levels:&lt;/P&gt;&lt;P&gt;1) Script - which will exclude it from all my analyses&lt;/P&gt;&lt;P&gt;2) Chart / List box level so that I can choose in which analyses I want to have it excluded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody suggest formulas for both?&lt;/P&gt;&lt;P&gt;- What should be the formula for exclusion in the script?&lt;/P&gt;&lt;P&gt;- How to exclude it at a list box / chart level and where to typ the exclusion (expression field?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 11:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-product-group-at-a-chart-and-scipt-level/m-p/568590#M479633</guid>
      <dc:creator />
      <dc:date>2014-01-25T11:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude product group at a chart and scipt level?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-product-group-at-a-chart-and-scipt-level/m-p/568591#M479634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an &amp;lt;Expression&amp;gt; field you can select from the dropdown of the list box properties general tab (at the very bottom of the drop down).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open the expression editor and type something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Product Groups] &amp;lt;&amp;gt; 'Group X', [Product Groups])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to filter the Group X out of the available groups in that specific list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the same expression as a calculated dimension to filter in a chart (or use a set expression in all your aggregation functions in your chart, like&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Product Group] -= {'Group X'}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use a similar expression as above in your load script for a permanent filter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF([Product Groups] &amp;lt;&amp;gt; 'Group X', [Product Groups]) AS [Product Groups],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both will just eliminate the [Product Group] value 'Group X', but won't remove the associated e.g. sales data for that group, so you may want to filter your records using a WHERE clause instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Product Groups]&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;WHERE [Product Groups] &amp;lt;&amp;gt; 'Group X';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 11:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-product-group-at-a-chart-and-scipt-level/m-p/568591#M479634</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-01-25T11:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude product group at a chart and scipt level?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-product-group-at-a-chart-and-scipt-level/m-p/568592#M479635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the formula&lt;STRONG&gt; &lt;/STRONG&gt;"=if([Product Groups] &amp;lt;&amp;gt; 'Group X', [Product Groups])" is OK but for some reason nothing happens .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could there ba a reason for that to happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 12:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-product-group-at-a-chart-and-scipt-level/m-p/568592#M479635</guid>
      <dc:creator />
      <dc:date>2014-01-25T12:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude product group at a chart and scipt level?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-product-group-at-a-chart-and-scipt-level/m-p/568593#M479636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got the product name wrong &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; Scripting works. Thanx!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 12:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-product-group-at-a-chart-and-scipt-level/m-p/568593#M479636</guid>
      <dc:creator />
      <dc:date>2014-01-25T12:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude product group at a chart and scipt level?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-product-group-at-a-chart-and-scipt-level/m-p/568594#M479637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One last question:&lt;/P&gt;&lt;P&gt;What formula should I use if I want to exclude the entire product group except for one product (Product Y)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 12:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-product-group-at-a-chart-and-scipt-level/m-p/568594#M479637</guid>
      <dc:creator />
      <dc:date>2014-01-25T12:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude product group at a chart and scipt level?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-product-group-at-a-chart-and-scipt-level/m-p/568595#M479638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check for equality instead of difference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=if([Product Groups] = 'Product Y', [Product Groups])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 12:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-product-group-at-a-chart-and-scipt-level/m-p/568595#M479638</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-01-25T12:58:11Z</dc:date>
    </item>
  </channel>
</rss>

