<?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: Fetching individual data not using sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fetching-individual-data-not-using-sum/m-p/873957#M1004466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expecting this?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Calculation:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; CUST_NO,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; GroupName,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; GroupMOQ,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; (TRANS_STOCK_QTY*-1) as TotalbyGroup,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if((&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TRANS_STOCK_QTY*-1&lt;/SPAN&gt;)&amp;gt;=&amp;nbsp; GroupMOQ,1,0) as HitMOQCount&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Fact;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2015 04:00:19 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2015-05-29T04:00:19Z</dc:date>
    <item>
      <title>Fetching individual data not using sum</title>
      <link>https://community.qlik.com/t5/QlikView/Fetching-individual-data-not-using-sum/m-p/873956#M1004465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this code to calculate this:&lt;/P&gt;&lt;P&gt;My key is CUST_NO to find the customer and check the the TRANS_STOCK_QTY and have the number inverted. Then, I check whether it is &amp;gt;= Group Minimum Order Quantity (GroupMOQ) or not. if it is I give 1 to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;HitMOQCount otherwise 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculation:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; CUST_NO,&lt;/P&gt;&lt;P&gt;&amp;nbsp; GroupName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; GroupMOQ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(TRANS_STOCK_QTY*-1) as TotalbyGroup&lt;/P&gt;&lt;P&gt;Resident Fact&lt;/P&gt;&lt;P&gt;Group By &lt;/P&gt;&lt;P&gt;&amp;nbsp; CUST_NO,&lt;/P&gt;&lt;P&gt;&amp;nbsp; GroupName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; GroupMOQ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Fact;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculation1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;if(TotalbyGroup &amp;gt;=&amp;nbsp; GroupMOQ,1,0) as HitMOQCount&lt;/P&gt;&lt;P&gt;Resident Calculation;&lt;/P&gt;&lt;P&gt;DROP Table Calculation;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;the expression &lt;SPAN style="font-size: 13.3333330154419px;"&gt;sum(TRANS_STOCK_QTY*-1) as TotalbyGroup aggregates all of the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;TRANS_STOCK_QTY. But I need individually. Any suggestion please let me know &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance everyone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 03:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetching-individual-data-not-using-sum/m-p/873956#M1004465</guid>
      <dc:creator />
      <dc:date>2015-05-29T03:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching individual data not using sum</title>
      <link>https://community.qlik.com/t5/QlikView/Fetching-individual-data-not-using-sum/m-p/873957#M1004466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expecting this?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Calculation:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; CUST_NO,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; GroupName,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; GroupMOQ,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; (TRANS_STOCK_QTY*-1) as TotalbyGroup,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if((&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TRANS_STOCK_QTY*-1&lt;/SPAN&gt;)&amp;gt;=&amp;nbsp; GroupMOQ,1,0) as HitMOQCount&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Fact;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 04:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetching-individual-data-not-using-sum/m-p/873957#M1004466</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2015-05-29T04:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching individual data not using sum</title>
      <link>https://community.qlik.com/t5/QlikView/Fetching-individual-data-not-using-sum/m-p/873958#M1004467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;P&gt;Aggregation expressions required by GROUP BY clause&lt;/P&gt;&lt;P&gt;Calculation:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; CUST_NO,&lt;/P&gt;&lt;P&gt;&amp;nbsp; GroupName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; GroupMOQ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; (TRANS_STOCK_QTY*-1) as TotalbyGroup,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if((TRANS_STOCK_QTY*-1)&amp;gt;=&amp;nbsp; GroupMOQ,1,0) as HitMOQCount&lt;/P&gt;&lt;P&gt;Resident Fact&lt;/P&gt;&lt;P&gt;Group By &lt;/P&gt;&lt;P&gt;&amp;nbsp; CUST_NO,&lt;/P&gt;&lt;P&gt;&amp;nbsp; GroupName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; GroupMOQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 04:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetching-individual-data-not-using-sum/m-p/873958#M1004467</guid>
      <dc:creator />
      <dc:date>2015-05-29T04:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching individual data not using sum</title>
      <link>https://community.qlik.com/t5/QlikView/Fetching-individual-data-not-using-sum/m-p/873959#M1004468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont use group by then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just write only&amp;nbsp; what&amp;nbsp; &lt;STRONG style="color: #3d3d3d; font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 11.6999998092651px;"&gt;&lt;A href="https://community.qlik.com/people/celambarasan"&gt;celambarasan&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;wrote.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 05:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetching-individual-data-not-using-sum/m-p/873959#M1004468</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-05-29T05:09:13Z</dc:date>
    </item>
  </channel>
</rss>

