<?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 Filter distinct data (aggr, count, pivot) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-distinct-data-aggr-count-pivot/m-p/15726#M458168</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;&lt;/P&gt;&lt;P&gt;I have country / customer / sku data and I need to build a tool to visually compare prices within the same country by customer (for non zero non missing items). Could you please help with the following illustrative scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input data:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/202082_pastedImage_6.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Input data comes as a result of joining two tables: a table with country x customer x sku mapping + another table with price details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Required output: pivot table - for any selected countries - SKU in the rows / customers in the columns - show only lines where there are at least two DIFFERENT non-zero prices:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/202083_pastedImage_7.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;I've tried to achieve it with countr(aggr(distinct)), but struggling to make it work for all situations.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/202084_pastedImage_8.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Please see enclosed the qvw - any suggestions much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2018 11:02:02 GMT</pubDate>
    <dc:creator>ivanbrewer</dc:creator>
    <dc:date>2018-05-10T11:02:02Z</dc:date>
    <item>
      <title>Filter distinct data (aggr, count, pivot)</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-distinct-data-aggr-count-pivot/m-p/15726#M458168</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;&lt;/P&gt;&lt;P&gt;I have country / customer / sku data and I need to build a tool to visually compare prices within the same country by customer (for non zero non missing items). Could you please help with the following illustrative scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input data:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/202082_pastedImage_6.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Input data comes as a result of joining two tables: a table with country x customer x sku mapping + another table with price details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Required output: pivot table - for any selected countries - SKU in the rows / customers in the columns - show only lines where there are at least two DIFFERENT non-zero prices:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/202083_pastedImage_7.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;I've tried to achieve it with countr(aggr(distinct)), but struggling to make it work for all situations.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/202084_pastedImage_8.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Please see enclosed the qvw - any suggestions much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 11:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-distinct-data-aggr-count-pivot/m-p/15726#M458168</guid>
      <dc:creator>ivanbrewer</dc:creator>
      <dc:date>2018-05-10T11:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filter distinct data (aggr, count, pivot)</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-distinct-data-aggr-count-pivot/m-p/15727#M458169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;sku = {"=Count({&amp;lt;price -= {'0'}&amp;gt;}DISTINCT price) &amp;gt; 1"}&amp;gt;} price)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 14:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-distinct-data-aggr-count-pivot/m-p/15727#M458169</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-10T14:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter distinct data (aggr, count, pivot)</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-distinct-data-aggr-count-pivot/m-p/15728#M458170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;, your suggestion has solved it and I've applied the same approach to few other cases that I had, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 21:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-distinct-data-aggr-count-pivot/m-p/15728#M458170</guid>
      <dc:creator>ivanbrewer</dc:creator>
      <dc:date>2018-05-10T21:25:48Z</dc:date>
    </item>
  </channel>
</rss>

