<?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 count and sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-and-sum/m-p/549922#M1301524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G'day,&lt;/P&gt;&lt;P&gt;I need your help in a small problem i'm stuck with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a sales table that show the invoice_no, worker_no, product_id, total_amount&lt;/P&gt;&lt;P&gt;100, 555, 99889 , 70&lt;/P&gt;&lt;P&gt;100,555,99888,100&lt;/P&gt;&lt;P&gt;100,666,99999,50&lt;/P&gt;&lt;P&gt;101,555,77887,650&lt;/P&gt;&lt;P&gt;102,555,77777,250&lt;/P&gt;&lt;P&gt;103,666,78956,199&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the create a table that shows the amount of invoices a worker have when the sales (of the invoice) is between 0 to 200, and the number of invoices between 201 to 500 and above 501.&lt;/P&gt;&lt;P&gt;the table should be like that&lt;/P&gt;&lt;P&gt;worker_no, #of invoices between 0 to 200, #of invoices between 201 to 500, #of invoices above 501&lt;/P&gt;&lt;P&gt;555,1,1,1&lt;/P&gt;&lt;P&gt;666,2,0,0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am adding the invoice_no to the table it works fine but when I take it out I am it sum all the invoices and not per invoice so I am&amp;nbsp; getting:&lt;/P&gt;&lt;P&gt;555,0,0,3&lt;/P&gt;&lt;P&gt;666,0,2,0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following code:&lt;/P&gt;&lt;P&gt;if(sum(total &amp;lt;invoice_no,worker_no&amp;gt; total_amount) &amp;gt; 0 and sum(total &amp;lt;invoice_no,worker_no&amp;gt; total_amount) &amp;lt; 200 , (COUNT (DISTINCT total &amp;lt;invoice_no, worker_no&amp;gt; invoice_no)),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;BR /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator>egoziyan</dc:creator>
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>count and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-and-sum/m-p/549922#M1301524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G'day,&lt;/P&gt;&lt;P&gt;I need your help in a small problem i'm stuck with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a sales table that show the invoice_no, worker_no, product_id, total_amount&lt;/P&gt;&lt;P&gt;100, 555, 99889 , 70&lt;/P&gt;&lt;P&gt;100,555,99888,100&lt;/P&gt;&lt;P&gt;100,666,99999,50&lt;/P&gt;&lt;P&gt;101,555,77887,650&lt;/P&gt;&lt;P&gt;102,555,77777,250&lt;/P&gt;&lt;P&gt;103,666,78956,199&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the create a table that shows the amount of invoices a worker have when the sales (of the invoice) is between 0 to 200, and the number of invoices between 201 to 500 and above 501.&lt;/P&gt;&lt;P&gt;the table should be like that&lt;/P&gt;&lt;P&gt;worker_no, #of invoices between 0 to 200, #of invoices between 201 to 500, #of invoices above 501&lt;/P&gt;&lt;P&gt;555,1,1,1&lt;/P&gt;&lt;P&gt;666,2,0,0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am adding the invoice_no to the table it works fine but when I take it out I am it sum all the invoices and not per invoice so I am&amp;nbsp; getting:&lt;/P&gt;&lt;P&gt;555,0,0,3&lt;/P&gt;&lt;P&gt;666,0,2,0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following code:&lt;/P&gt;&lt;P&gt;if(sum(total &amp;lt;invoice_no,worker_no&amp;gt; total_amount) &amp;gt; 0 and sum(total &amp;lt;invoice_no,worker_no&amp;gt; total_amount) &amp;lt; 200 , (COUNT (DISTINCT total &amp;lt;invoice_no, worker_no&amp;gt; invoice_no)),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;BR /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-and-sum/m-p/549922#M1301524</guid>
      <dc:creator>egoziyan</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: count and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-and-sum/m-p/549923#M1301527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 14:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-and-sum/m-p/549923#M1301527</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-30T14:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: count and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-and-sum/m-p/549924#M1301530</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;the key is &lt;STRONG&gt;&lt;EM&gt;=count({&amp;lt;total_amount = {"&amp;lt;=501 &amp;gt;= 200"} &amp;gt;} invoice_no)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached my solution. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 15:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-and-sum/m-p/549924#M1301530</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2013-10-30T15:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: count and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-and-sum/m-p/549925#M1301536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create something like this and you can only change the values ​​of the limits for the value you want to use and create a count for the current selection for you to indicate the number of invoices per worker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 15:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-and-sum/m-p/549925#M1301536</guid>
      <dc:creator />
      <dc:date>2013-10-30T15:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: count and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-and-sum/m-p/549926#M1301541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yaniv, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached. I think I have managed to visualize the table you are asking for. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I have classified the values in "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;total_amount" &lt;/SPAN&gt;by using IntervalMatch. You see that under the Description column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, I have used Set Analysis so that I can specify for which Description value I want the expression to execute on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 15:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-and-sum/m-p/549926#M1301541</guid>
      <dc:creator />
      <dc:date>2013-10-30T15:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: count and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-and-sum/m-p/549927#M1301544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your help.&lt;/P&gt;&lt;P&gt;SALTO solution was most suitable for my needs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-and-sum/m-p/549927#M1301544</guid>
      <dc:creator>egoziyan</dc:creator>
      <dc:date>2013-10-31T13:46:59Z</dc:date>
    </item>
  </channel>
</rss>

