<?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 Advanced aggregation problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Advanced-aggregation-problem/m-p/294194#M1179667</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;I think Celambarasan's solution is a good one. &lt;/P&gt;&lt;P&gt;As you want result for ShipmentShipped different from 0, I believe the expression should be&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Shipment_Shipped-={0}&amp;gt;} Distinct Shippment_Order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2012 10:41:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-17T10:41:59Z</dc:date>
    <item>
      <title>Advanced aggregation problem</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-aggregation-problem/m-p/294192#M1179665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, If you check the attached file you will see a table with 375 records.I need to know how many of this are distinct based on the first field, but only the first 10 characters, and from those, just the ones that ShIppment SHipped field is different from 0.I've made several tests and this is the best I can come with :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(distinct count(if(Shipment_Shipped=0,0,left(Shipment_Order_ShipId_Line,10))),Key_Date) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this gives me again the 375 records.I'm not sure what to do now, Any ideas? thanks in advance to anyone who can help me...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 09:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-aggregation-problem/m-p/294192#M1179665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-17T09:56:34Z</dc:date>
    </item>
    <item>
      <title>Advanced aggregation problem</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-aggregation-problem/m-p/294193#M1179666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Instead of doing this in expresssion try to make a separate field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shipment_Order_ShipId_Line,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(Shipment_Order_ShipId_Line,10) as Shippment_Order,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shipment_Shipped&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From DataFile;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use expression as Count({&amp;lt;Shipment_Shipped={0}&amp;gt;} Distinct Shippment_Order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give you the correct result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 10:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-aggregation-problem/m-p/294193#M1179666</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-17T10:32:18Z</dc:date>
    </item>
    <item>
      <title>Advanced aggregation problem</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-aggregation-problem/m-p/294194#M1179667</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;I think Celambarasan's solution is a good one. &lt;/P&gt;&lt;P&gt;As you want result for ShipmentShipped different from 0, I believe the expression should be&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Shipment_Shipped-={0}&amp;gt;} Distinct Shippment_Order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 10:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-aggregation-problem/m-p/294194#M1179667</guid>
      <dc:creator />
      <dc:date>2012-02-17T10:41:59Z</dc:date>
    </item>
  </channel>
</rss>

