<?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: Count or Sum in Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725404#M1072616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dermot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes its possible, but you need to use&lt;STRONG&gt; GROUP BY &lt;/STRONG&gt;in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;count(ITEM)&lt;/P&gt;&lt;P&gt;sql select *&lt;/P&gt;&lt;P&gt;from group by filed1,filed2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2014 12:45:12 GMT</pubDate>
    <dc:creator>avinashelite</dc:creator>
    <dc:date>2014-08-06T12:45:12Z</dc:date>
    <item>
      <title>Count or Sum in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725403#M1072615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an example of my data :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="635"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl68" height="34" width="125"&gt;ITEM&lt;/TD&gt;&lt;TD class="xl68" width="173"&gt;DESCRIPTION&lt;/TD&gt;&lt;TD class="xl69" width="64"&gt;ORD QTY&lt;/TD&gt;&lt;TD class="xl69" width="64"&gt;RESERVED QTY&lt;/TD&gt;&lt;TD class="xl69" width="64"&gt;ON HAND&lt;/TD&gt;&lt;TD class="xl68" width="145"&gt;LINE STATUS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;10.12.45&lt;/TD&gt;&lt;TD class="xl65"&gt;Flag&lt;/TD&gt;&lt;TD class="xl66"&gt;1&lt;/TD&gt;&lt;TD class="xl66"&gt;0&lt;/TD&gt;&lt;TD class="xl66"&gt;8&lt;/TD&gt;&lt;TD class="xl65"&gt;BACKORD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;10.12.55&lt;/TD&gt;&lt;TD class="xl65"&gt;Pole&lt;/TD&gt;&lt;TD class="xl66"&gt;6&lt;/TD&gt;&lt;TD class="xl66"&gt;6&lt;/TD&gt;&lt;TD class="xl66"&gt;16&lt;/TD&gt;&lt;TD class="xl65"&gt;RELEASED&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;10.12.632&lt;/TD&gt;&lt;TD class="xl65"&gt;Rope&lt;/TD&gt;&lt;TD class="xl66"&gt;10&lt;/TD&gt;&lt;TD class="xl66"&gt;10&lt;/TD&gt;&lt;TD class="xl66"&gt;16&lt;/TD&gt;&lt;TD class="xl65"&gt;RELEASED&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;10.12.654&lt;/TD&gt;&lt;TD class="xl65"&gt;Grass Seed&lt;/TD&gt;&lt;TD class="xl66"&gt;5&lt;/TD&gt;&lt;TD class="xl66"&gt;5&lt;/TD&gt;&lt;TD class="xl66"&gt;73&lt;/TD&gt;&lt;TD class="xl65"&gt;RELEASED&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;10.12.45&lt;/TD&gt;&lt;TD class="xl65"&gt;Flag&lt;/TD&gt;&lt;TD class="xl66"&gt;1&lt;/TD&gt;&lt;TD class="xl66"&gt;0&lt;/TD&gt;&lt;TD class="xl67"&gt;0&lt;/TD&gt;&lt;TD class="xl65"&gt;RELEASED&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;10.12.55&lt;/TD&gt;&lt;TD class="xl65"&gt;Pole&lt;/TD&gt;&lt;TD class="xl66"&gt;1&lt;/TD&gt;&lt;TD class="xl66"&gt;1&lt;/TD&gt;&lt;TD class="xl66"&gt;15&lt;/TD&gt;&lt;TD class="xl65"&gt;RELEASED&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;10.12.200&lt;/TD&gt;&lt;TD class="xl65"&gt;Deck Chair&lt;/TD&gt;&lt;TD class="xl66"&gt;2&lt;/TD&gt;&lt;TD class="xl66"&gt;1&lt;/TD&gt;&lt;TD class="xl66"&gt;1&lt;/TD&gt;&lt;TD class="xl65"&gt;BACKORD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;10.12.45&lt;/TD&gt;&lt;TD class="xl65"&gt;Flag&lt;/TD&gt;&lt;TD class="xl66"&gt;2&lt;/TD&gt;&lt;TD class="xl66"&gt;0&lt;/TD&gt;&lt;TD class="xl67"&gt;0&lt;/TD&gt;&lt;TD class="xl65"&gt;RELEASED&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can load everything in no problem, however want to sum and count during load, is this possible?&amp;nbsp; For example can I count the number of open orders for Flags, and the total qty items ordered and reserved?&amp;nbsp; This is so I can easily flag up via a list box any item that doesn't have enough stock?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 12:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725403#M1072615</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2014-08-06T12:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count or Sum in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725404#M1072616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dermot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes its possible, but you need to use&lt;STRONG&gt; GROUP BY &lt;/STRONG&gt;in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;count(ITEM)&lt;/P&gt;&lt;P&gt;sql select *&lt;/P&gt;&lt;P&gt;from group by filed1,filed2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 12:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725404#M1072616</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2014-08-06T12:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count or Sum in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725405#M1072617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using SQL in your load script?&amp;nbsp; If so, it should be as easy as a SQL statement that returns what you want.&amp;nbsp; If you are loading from excel, you may need to use aggregates in a preceding load.&amp;nbsp; Could you include your load script for this table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 12:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725405#M1072617</guid>
      <dc:creator>joshabbott</dc:creator>
      <dc:date>2014-08-06T12:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count or Sum in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725406#M1072618</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;T1:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;ITEM,&amp;nbsp;&amp;nbsp;&amp;nbsp; DESCRIPTION,&amp;nbsp;&amp;nbsp;&amp;nbsp; ORDQTY,&amp;nbsp;&amp;nbsp;&amp;nbsp; RESERVEDQTY, ON HAND,&amp;nbsp;&amp;nbsp;&amp;nbsp; LINE STATUS&lt;/P&gt;&lt;P&gt;10.12.45,&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 8,&amp;nbsp;&amp;nbsp;&amp;nbsp; BACKORD&lt;/P&gt;&lt;P&gt;10.12.55,&amp;nbsp;&amp;nbsp;&amp;nbsp; Pole,&amp;nbsp;&amp;nbsp;&amp;nbsp; 6,&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp; 16,&amp;nbsp;&amp;nbsp;&amp;nbsp; RELEASED&lt;/P&gt;&lt;P&gt;10.12.632,&amp;nbsp;&amp;nbsp;&amp;nbsp; Rope,&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp; 16,&amp;nbsp;&amp;nbsp;&amp;nbsp; RELEASED&lt;/P&gt;&lt;P&gt;10.12.654,&amp;nbsp;&amp;nbsp;&amp;nbsp; Grass Seed,&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,&amp;nbsp;&amp;nbsp;&amp;nbsp; 73,&amp;nbsp;&amp;nbsp;&amp;nbsp; RELEASED&lt;/P&gt;&lt;P&gt;10.12.45,&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; RELEASED&lt;/P&gt;&lt;P&gt;10.12.55,&amp;nbsp;&amp;nbsp;&amp;nbsp; Pole,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 15,&amp;nbsp;&amp;nbsp;&amp;nbsp; RELEASED&lt;/P&gt;&lt;P&gt;10.12.200,&amp;nbsp;&amp;nbsp;&amp;nbsp; Deck Chair,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; BACKORD&lt;/P&gt;&lt;P&gt;10.12.45,&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; RELEASED&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;LOAD Count(ITEM) as OPENORDERS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(ORDQTY) as TOTALORDERS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(RESERVEDQTY) as TOTALRESERVEORD&lt;/P&gt;&lt;P&gt;Resident T1&lt;/P&gt;&lt;P&gt;where Match(DESCRIPTION,'Flag');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Regards,&lt;/P&gt;&lt;P&gt;Vishal Waghole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 12:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725406#M1072618</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2014-08-06T12:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Count or Sum in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725407#M1072619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have got this working, however its rolling everything up together, ie showing 5 orders, and 28 items, which is the total no items and the total being sold.&amp;nbsp; See QV File attached.&amp;nbsp; The expressions give me what I want to see, however I'd like then to be able to have a list box showing Yes or No for stock fulfilled.&amp;nbsp; I thought if I could do the counts in the load script the listbox would be easy then.&amp;nbsp; Alternatively can you have an if statement in the list box with Yes/No as the available options and then use this to filter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 13:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725407#M1072619</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2014-08-06T13:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count or Sum in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725408#M1072620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone give me an in on this one?&amp;nbsp; TIA!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 09:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725408#M1072620</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2014-08-07T09:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count or Sum in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725409#M1072621</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can create aggregated table in script with some predefined dimensions and then you can link that with actual data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use group by functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 10:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725409#M1072621</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2014-08-07T10:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count or Sum in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725410#M1072622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No need to use group by function, cause in load statement all columns are inside aggregate function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we uses columns with aggregate function in Load statement then its mandatory to use group by function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Regards,&lt;/P&gt;&lt;P&gt;Vishal Waghole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 04:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725410#M1072622</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2014-08-08T04:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count or Sum in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725411#M1072623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope I haven't been able to crack this one.&amp;nbsp; Sometimes I find getting stuck in Qlikview very hard to find a solution!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 07:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725411#M1072623</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2014-08-08T07:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count or Sum in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725412#M1072624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tell me whats problem are you facing now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will try to resolve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Regards,&lt;/P&gt;&lt;P&gt;Vishal Waghole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 07:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-Sum-in-Load-Script/m-p/725412#M1072624</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2014-08-08T07:58:17Z</dc:date>
    </item>
  </channel>
</rss>

