<?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 Number of Rows in distinct sums in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663628#M1062322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get the number of rows that were used to create a sum, you need to do a count them in the load script using the 1st&amp;nbsp; suggestion from Anbu above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1,000,000 records is really not very much so i don't understand the performance issues even if your laptop is small.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How long does it take to run a load script with the sum() function and group by ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Sep 2014 13:14:34 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-09-22T13:14:34Z</dc:date>
    <item>
      <title>Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663621#M1062315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello dear Qlikview's masters,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a problem, and I'm sure you could have the solution. &lt;/P&gt;&lt;P&gt;I am calculating (from a big excel file (around 1000000 rows)) a lot of sums. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I want to know how many rows I have in my sum (this is my problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 59px; height: 89px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Command&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Quantity&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;3&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;6&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I have : if Command='A' so, sum(Quantity)=8 (3+2+3)), and I want the number of rows (3)&lt;/P&gt;&lt;P&gt;and if Command='B' so, sum(Quantity)=15 (4+3+2+6)), and I want 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think I want a table like this&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="100" style="border: 1px solid rgb(0, 0, 0); width: 289px; height: 102px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Command&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Sum&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; text-align: center;"&gt;Number of rows&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone have an idea ? In the script or in an expression,... &lt;/P&gt;&lt;P&gt;Thanks in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663621#M1062315</guid>
      <dc:creator>louisernould</dc:creator>
      <dc:date>2014-09-22T12:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663622#M1062316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load Command,sum(Quantity),count(Command) group by Command;&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Command,Quantity&lt;/P&gt;&lt;P&gt;A,3&lt;/P&gt;&lt;P&gt;A,2&lt;/P&gt;&lt;P&gt;A,3&lt;/P&gt;&lt;P&gt;B,4&lt;/P&gt;&lt;P&gt;B,3&lt;/P&gt;&lt;P&gt;B,2&lt;/P&gt;&lt;P&gt;B,6 ];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663622#M1062316</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-22T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663623#M1062317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu,&lt;/P&gt;&lt;P&gt;Actually I already try this solution but I have too many rows and too many commands (something like 200000...) So I cannot do it... Or I can start today and I will finish it in 2 weeks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe more in an expression ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663623#M1062317</guid>
      <dc:creator>louisernould</dc:creator>
      <dc:date>2014-09-22T12:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663624#M1062318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A Straight Table with Command as the dimension, sum(Quantity) as the 1st expression and count(Command) as the 2nd expression could work.&amp;nbsp; This will count the # rows from the data model for each unique command. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a unique record identifier in the data model you could also do count(distinct&amp;nbsp; [UniqueIdentifierFieldName] ) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663624#M1062318</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-22T12:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663625#M1062319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't work...&lt;/P&gt;&lt;P&gt;My mistake, I forgot something: The 'sum' is already in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Command,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum(Quantity) as sum&lt;/P&gt;&lt;P&gt;&amp;nbsp; from ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe the Number of row of the sum has to be in the script... I'm a little bit confused...&lt;/P&gt;&lt;P&gt;The Command is not so important, I just want to know if it is possible to count the number of rows of a sum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663625#M1062319</guid>
      <dc:creator>louisernould</dc:creator>
      <dc:date>2014-09-22T12:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663626#M1062320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;it is not possible to count the number of rows of a sum&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663626#M1062320</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-22T12:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663627#M1062321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh no... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even with a loop ? like: &lt;/P&gt;&lt;P&gt;for each sum, &lt;/P&gt;&lt;P&gt;count (rowno())&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or something like that ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 13:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663627#M1062321</guid>
      <dc:creator>louisernould</dc:creator>
      <dc:date>2014-09-22T13:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663628#M1062322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get the number of rows that were used to create a sum, you need to do a count them in the load script using the 1st&amp;nbsp; suggestion from Anbu above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1,000,000 records is really not very much so i don't understand the performance issues even if your laptop is small.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How long does it take to run a load script with the sum() function and group by ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 13:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663628#M1062322</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-22T13:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663629#M1062323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. Why can't you calculate count along with sum?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 13:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663629#M1062323</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-22T13:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663630#M1062324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Louis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Below table For A data you want to see in 3 rows for that there should be some other column which we can use to do grouping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="headerSortUp header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Command&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Quantity&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;B&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;B&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;B&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;B&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;6&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;A&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;3&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;A&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;A&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share your sample .qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 13:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663630#M1062324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-22T13:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663631#M1062325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// loading your data + row counter ('1' entered in each line) in a temporary table&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;LOAD Command,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as row_count&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\Users\......\Classeur1.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Feuil1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// loading from the temporary table the sum of quantity and the sum of row, grouped by command&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Command,&lt;/P&gt;&lt;P&gt;sum(Qty) as Sum,&lt;/P&gt;&lt;P&gt;sum(row_count) as Row_num&lt;/P&gt;&lt;P&gt;Resident tmp group by Command;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//delete temporary table&lt;/P&gt;&lt;P&gt;drop table tmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 13:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663631#M1062325</guid>
      <dc:creator>demoustier</dc:creator>
      <dc:date>2014-09-22T13:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663632#M1062327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to a pivot table &lt;/P&gt;&lt;P&gt;Dimension-Command&lt;/P&gt;&lt;P&gt;Expression1-sum(Quantity)&lt;/P&gt;&lt;P&gt;Expression2-noofrows(Command)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663632#M1062327</guid>
      <dc:creator />
      <dc:date>2014-09-22T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663633#M1062328</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;We do not have such syntax in QlikView to calculate sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we have two options here to solve your "problem". &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;1. Using Count() to calculate number of rows.&lt;/P&gt;&lt;P&gt;2. Using the combination of AutoNumber() and RecNo() functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done both the approaches in the attached QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrew Hudson ! !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663633#M1062328</guid>
      <dc:creator>adhudson</dc:creator>
      <dc:date>2014-09-22T14:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663634#M1062329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or Expression2-Count(Command)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663634#M1062329</guid>
      <dc:creator />
      <dc:date>2014-09-22T14:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663635#M1062330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;or Expression2-count(Command)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663635#M1062330</guid>
      <dc:creator />
      <dc:date>2014-09-22T14:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663636#M1062331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wow, so much answers &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 really want to share my qvw file but it's a private one, so I cannot share it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;, I am not allowed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to explain it easier but I think I failed ^^ and &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I tried everything you gave to me, but it doesn't work either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my full code, Maybe you will see some newbee mistakes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TMP_Réalisé:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Site, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ref, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Réalisé&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[File1]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INNER JOIN (TMP_Réalisé)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD @1 as NumSem, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as Annee, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as [PRE Date réalisé]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[File2]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TMP_Date:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Distinct([PRE Date réalisé]+56) as DatePourRéalisé&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident TMP_Réalisé;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET NbDates = NoOfRows('TMP_Date');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FOR i=1 to $(NbDates)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; LET DateChargement = FieldValue('DatePourRéalisé',$(i));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; TableRéalisé:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; LOAD $(DateChargement) as [Date réalisé],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Site,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Ref,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt;"&gt;&amp;nbsp; Sum(Réalisé) as QuantitéRéalisé&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Resident TMP_Réalisé&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; Group by Ref, Site;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NEXT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table TMP_Date;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table TMP_Réalisé;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I don't know if it's enough or not... But the fact is, the Count Function doesn't work for my pb: I want to count the total of rows in the 'sum(Réalisé)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't know how to do it, don't worry, I will drop it&lt;/P&gt;&lt;P&gt;but thanks for your time everybody !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663636#M1062331</guid>
      <dc:creator>louisernould</dc:creator>
      <dc:date>2014-09-22T14:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663637#M1062332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the easiest way to count rows..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Louis add that field "1 as row_count" in the script, and then sum it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663637#M1062332</guid>
      <dc:creator />
      <dc:date>2014-09-22T14:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663638#M1062333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just did the row_count trick,&lt;/P&gt;&lt;P&gt;here is a selection, but when I sum it, I have only '1', and in my excel file, I have 6 rows&lt;/P&gt;&lt;P&gt;&lt;IMG alt="row_count.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/67353_row_count.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663638#M1062333</guid>
      <dc:creator>louisernould</dc:creator>
      <dc:date>2014-09-22T14:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663639#M1062334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vu le libellé des colonnes, je passe au français ☺&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Si tu as une commande par Date réalisé, c’est normale d’avoir 1 à chaque fois&lt;/P&gt;&lt;P&gt;Si tu as plusieurs commandes par Date réalisé il faut faire un group by Date réalisé.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tu ne peux pas envoyer un échantillon de ton fichier avec des données fictives et aléatoires ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Benjamin DEMOUSTIER,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De : louis ernould &lt;/P&gt;&lt;P&gt;Envoyé : lundi 22 septembre 2014 16:59&lt;/P&gt;&lt;P&gt;À : DEMOUSTIER Benjamin&lt;/P&gt;&lt;P&gt;Objet : Re:  - Count Number of Rows in distinct sums&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik Community&amp;lt;http://community.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count Number of Rows in distinct sums&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from louis ernould&amp;lt;http://community.qlik.com/people/louisernould?et=watches.email.thread&amp;gt; in New to QlikView - View the full discussion&amp;lt;http://community.qlik.com/message/615625?et=watches.email.thread#615625&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 15:08:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663639#M1062334</guid>
      <dc:creator>demoustier</dc:creator>
      <dc:date>2014-09-22T15:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count Number of Rows in distinct sums</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663640#M1062336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mmmmmm, that's not possible. It should work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you are using the sum in the script, you must use it in the chart or table, so it will be filtered by "command" using Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could use autonumber as row_count, and then count them instead of sum them. Anyway, whichever you choose, the sum/count its in a expression, not in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that's the answer..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 15:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Number-of-Rows-in-distinct-sums/m-p/663640#M1062336</guid>
      <dc:creator />
      <dc:date>2014-09-22T15:12:35Z</dc:date>
    </item>
  </channel>
</rss>

