<?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 distinct if Sum &amp;gt; amount in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-distinct-if-Sum-gt-amount/m-p/1548799#M598346</link>
    <description>&lt;P&gt;please provide details about the dimension used&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 15:55:51 GMT</pubDate>
    <dc:creator>sivakumar1994</dc:creator>
    <dc:date>2019-02-25T15:55:51Z</dc:date>
    <item>
      <title>Count distinct if Sum &gt; amount</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-if-Sum-gt-amount/m-p/1548789#M598345</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table of lines of invoices (invoice number - date - client - item - quantity).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to count the invoice numbers where the total amount ordered for all items is below 10 kg.&amp;nbsp; The count will be shown in a table by client.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;CHRONOFA = the invoice number&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;TONNAGE VENDU = quantity&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I've tried :&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;=count(distinct aggr ( if (sum([TONNAGE VENDU])&amp;lt;10, CHRONOFA) , CHRONOFA))&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;but its not giving me the right number.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried :&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;=Count(DISTINCT {&amp;lt;CHRONOFA = {"=Sum([Tonnage_Vendu]) &amp;lt; 10"}&amp;gt;} CHRONOFA)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Any ideas anyone??&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-if-Sum-gt-amount/m-p/1548789#M598345</guid>
      <dc:creator>leenlart</dc:creator>
      <dc:date>2024-11-16T04:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct if Sum &gt; amount</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-if-Sum-gt-amount/m-p/1548799#M598346</link>
      <description>&lt;P&gt;please provide details about the dimension used&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 15:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-if-Sum-gt-amount/m-p/1548799#M598346</guid>
      <dc:creator>sivakumar1994</dc:creator>
      <dc:date>2019-02-25T15:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct if Sum &gt; amount</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-if-Sum-gt-amount/m-p/1548803#M598347</link>
      <description>&lt;P&gt;Per client, I want to count the distinct invoice numbers (field CHRONOFA) when the total sum of the quantity (field [TONNAGE VENDU]) is under 10.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure I'm actually replying to&amp;nbsp; your question...&amp;nbsp; could you be more specific in what details you are interested in ?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 16:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-if-Sum-gt-amount/m-p/1548803#M598347</guid>
      <dc:creator>leenlart</dc:creator>
      <dc:date>2019-02-25T16:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct if Sum &gt; amount</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-if-Sum-gt-amount/m-p/1548866#M598348</link>
      <description>Hi,&lt;BR /&gt;Can you try this..&lt;BR /&gt;&lt;BR /&gt;=Sum(IF(Aggr(sum([TONNAGE VENDU]),CHRONOFA) &amp;lt; 10,1))</description>
      <pubDate>Mon, 25 Feb 2019 18:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-if-Sum-gt-amount/m-p/1548866#M598348</guid>
      <dc:creator>santhiqlik</dc:creator>
      <dc:date>2019-02-25T18:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct if Sum &gt; amount</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-if-Sum-gt-amount/m-p/1549025#M598349</link>
      <description>&lt;P&gt;Yes!&amp;nbsp; This worked great!&amp;nbsp; &amp;nbsp;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 08:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-if-Sum-gt-amount/m-p/1549025#M598349</guid>
      <dc:creator>leenlart</dc:creator>
      <dc:date>2019-02-26T08:29:27Z</dc:date>
    </item>
  </channel>
</rss>

