<?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: Exclude filter for one dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427924#M34156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ignas, I modified the expression in your first app, it used Sum and Product, I know you are asking about avg and Customer but I prefer to remark the differences in the sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About this one I think what's happening is that you really don't have a record wich tells you have zero Bananas for Alaska, the chart shows zero but only because there is one Banana for Alabama, so it paints the cell for Banana-Alaska combination, but there is no data that really tells that (the excel doesn't have a row that tells "zero Banas for Alaska for John).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is only one record with a '1', the Avg should be '1', you'll need to generate the missing data (zeros) you need, creating all combinations needed like in the 'Generating all combinations of several fields' section of this document:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3786"&gt;Generating Missing Data In QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If you really need to count all zeros in the "A" you'll need a composite key with Customer, Product, Country and Region.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In "B" you can start with a table that relates Country with it's regions, join all customers (if customers have a region use it to join with the assigned region), and finally join with all products.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In "C" step you can add "0 as Amount" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Another option can be add the zeros in the source data, but one way or another it should exist to be counted.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Sep 2017 09:06:06 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2017-09-17T09:06:06Z</dc:date>
    <item>
      <title>Exclude filter for one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427919#M34151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a real issue trying to make a comparison table between region and country sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get &lt;STRONG&gt;Amount (Region)&lt;/STRONG&gt; numbers fine, but I struggle to get &lt;STRONG&gt;AVG(Amount) &lt;/STRONG&gt; per country in the same table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I select&amp;nbsp; country &lt;STRONG&gt;Belgium&lt;/STRONG&gt; and Region &lt;STRONG&gt;East Flanders&lt;/STRONG&gt;. &lt;STRONG&gt;Amount (Country)&lt;/STRONG&gt; must disregard &lt;STRONG&gt;Region&lt;/STRONG&gt; selection and show only &lt;STRONG&gt;country average&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="176831" alt="Capture.JPG" class="jive-image image-1" height="474" src="https://community.qlik.com/legacyfs/online/176831_Capture.JPG" style="height: 474px; width: 569.535px;" width="570" /&gt;&lt;/P&gt;&lt;P&gt;I used this Set expression that does not work for me. I am also only interested in Customer John.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="176832" alt="Capture2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/176832_Capture2.JPG" style="height: 282px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anybody help me to solve this puzzle?&lt;SPAN style="color: #ff0000; font-size: 18pt;"&gt; I attach the App. !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Would you be able to jump in @&lt;SPAN style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="171708" data-objecttype="3" href="https://community.qlik.com/people/stalwar1" style="font-weight: inherit; font-style: inherit; font-size: 11.7px; font-family: inherit; color: #3778c7;"&gt;Sunny Talwar&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 10:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427919#M34151</guid>
      <dc:creator>ignasdukynas</dc:creator>
      <dc:date>2017-09-16T10:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude filter for one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427920#M34152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to ignore selections in Region you can change the expression to avg({&amp;lt;Region=,Customer={'John'}&amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 11:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427920#M34152</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2017-09-16T11:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude filter for one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427921#M34153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello @&lt;SPAN style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/gwassenaar"&gt;gwassenaar&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The average sales is wrong if I select one country. You can try the app and see that it does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 11:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427921#M34153</guid>
      <dc:creator>ignasdukynas</dc:creator>
      <dc:date>2017-09-16T11:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude filter for one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427922#M34154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ignas, the expression in the master item of the uploaded app is different to the one posted by Gysbert, he uses commas to apply set analysis, not using '*', so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Product]={"Apple"}&amp;gt;*$&amp;lt;Region=&amp;gt;} Amount) // Not ignores selections in region&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Product]={"Apple"}, Region=&amp;gt;} Amount) // Ignores selection in region&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 12:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427922#M34154</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-09-16T12:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude filter for one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427923#M34155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ruben,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/21969"&gt;rubenmarin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am a bit confused. I upload a new app (&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/download/2156-274842-1345559-295883/Filter_exclusion.v2.qvf" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; background-color: #fdfdfd;" title="https://community.qlik.com/servlet/JiveServlet/download/1345559-295883/Filter_exclusion.v2.qvf"&gt;https://community.qlik.com/servlet/JiveServlet/download/1345559-295883/Filter_exclusion.v2.qvf&lt;/A&gt;) with your formula except that it should be not a &lt;STRONG&gt;sum&lt;/STRONG&gt; but &lt;STRONG&gt;average&lt;/STRONG&gt; instead and instead of &lt;STRONG&gt;Product&lt;/STRONG&gt; should be &lt;STRONG&gt;Customer&lt;/STRONG&gt;. My new formula is this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;avg({$&amp;lt;[Customer]={"John"}, Region=&amp;gt;} Amount)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The Amount (Country) is simply wrong.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="176833" alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176833_Capture.JPG" style="height: 326px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;If you look at Banana.&lt;/P&gt;&lt;P&gt;The average Banana for USA should be 0.5 (Amount (Country)) the same as for Pie. But it shows in the table that it is 1.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="176837" alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/176837_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Do you know what is wrong with the set analysis? How can I get the right numbers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 13:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427923#M34155</guid>
      <dc:creator>ignasdukynas</dc:creator>
      <dc:date>2017-09-16T13:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude filter for one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427924#M34156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ignas, I modified the expression in your first app, it used Sum and Product, I know you are asking about avg and Customer but I prefer to remark the differences in the sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About this one I think what's happening is that you really don't have a record wich tells you have zero Bananas for Alaska, the chart shows zero but only because there is one Banana for Alabama, so it paints the cell for Banana-Alaska combination, but there is no data that really tells that (the excel doesn't have a row that tells "zero Banas for Alaska for John).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is only one record with a '1', the Avg should be '1', you'll need to generate the missing data (zeros) you need, creating all combinations needed like in the 'Generating all combinations of several fields' section of this document:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3786"&gt;Generating Missing Data In QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If you really need to count all zeros in the "A" you'll need a composite key with Customer, Product, Country and Region.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In "B" you can start with a table that relates Country with it's regions, join all customers (if customers have a region use it to join with the assigned region), and finally join with all products.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In "C" step you can add "0 as Amount" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Another option can be add the zeros in the source data, but one way or another it should exist to be counted.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Sep 2017 09:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427924#M34156</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-09-17T09:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude filter for one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427925#M34157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ruben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you a lot. You are exactly right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Ignas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Sep 2017 12:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-filter-for-one-dimension/m-p/1427925#M34157</guid>
      <dc:creator>ignasdukynas</dc:creator>
      <dc:date>2017-09-17T12:37:15Z</dc:date>
    </item>
  </channel>
</rss>

