<?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: Complex expression (count if sum...) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397137#M809560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/180202_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Top text box shows the count and second box shows which ID_DOCs meet the condition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2017 12:48:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-10-19T12:48:39Z</dc:date>
    <item>
      <title>Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397135#M809558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hello dear community!&lt;BR /&gt;I have a problem with a complex expression.&lt;BR /&gt;&lt;BR /&gt;It is necessary to count the number of documents in which the amount of sales is more than a certain number (&amp;gt; 50), as well as with the filter in SetAnalysis.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The difficulty is that the document in my array is not aggregated by unique.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;As an example, the data looks like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 211px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="54"&gt;ID_DOC&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="51"&gt;ID_SKU&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="60"&gt;SumSale&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="46"&gt;Flag_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;33&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;44&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;33&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;33&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;32&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;44&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;77&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;88&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;23&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;44&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;43&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;33&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;The solution I imagine is like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT ID_DOC) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Sum(SumSale),ID_DOC) &amp;gt; 50&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Flag_1=1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="alt-edited"&gt;The result of the decision needs to be the number - &lt;STRONG&gt;2&lt;/STRONG&gt;, if we take the above example data.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="alt-edited"&gt;Please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="alt-edited"&gt;With respect Anton.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397135#M809558</guid>
      <dc:creator>antonaks</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397136#M809559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;ID_DOC = {"=Sum({&amp;lt;Flag_1 = {1}&amp;gt;}SumSale) &amp;gt; 50"}&amp;gt;} ID_DOC)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 12:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397136#M809559</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-19T12:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397137#M809560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/180202_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Top text box shows the count and second box shows which ID_DOCs meet the condition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 12:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397137#M809560</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-19T12:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397138#M809561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;Count(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; color: #ff0000;"&gt; &lt;SPAN style="color: #000000;"&gt;{&amp;lt; Flag_1 ={1} &amp;gt;}&lt;/SPAN&gt; &lt;/SPAN&gt;aggr(sum(&lt;SPAN style="font-style: inherit; color: #ff0000;"&gt; &lt;SPAN style="color: #000000;"&gt;{&amp;lt; SumSale = {"=Sum(SumSale) &amp;gt; 50"}&amp;gt;}&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;SumSale),ID_DOC))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;Count(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; color: #ff0000;"&gt; &lt;SPAN style="color: #000000;"&gt;{&amp;lt; Flag_1 ={1} &amp;gt;}&lt;/SPAN&gt; &lt;/SPAN&gt;aggr(sum(&lt;SPAN style="font-style: inherit; color: #ff0000;"&gt; &lt;SPAN style="color: #000000;"&gt;{&amp;lt; &lt;STRONG style=": ; color: #ff0000; font-size: 13.3333px; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Flag_1 ={1}, &lt;/STRONG&gt;SumSale = {"=Sum(SumSale) &amp;gt; 50"}&amp;gt;}&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;SumSale),ID_DOC))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 12:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397138#M809561</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-10-19T12:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397139#M809562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anton,&lt;/P&gt;&lt;P&gt;Maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(Aggr(if(Sum({$&amp;lt;Flag_1 = {1}&amp;gt;}SumSale)&amp;gt;50,ID_DOC),ID_DOC))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 12:53:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397139#M809562</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-10-19T12:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397140#M809563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Thanks for trying but unfortunately did not work ...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 13:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397140#M809563</guid>
      <dc:creator>antonaks</dc:creator>
      <dc:date>2017-10-19T13:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397141#M809564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="alt-edited"&gt;Thank you very much.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 13:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397141#M809564</guid>
      <dc:creator>antonaks</dc:creator>
      <dc:date>2017-10-19T13:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397142#M809565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like you are not going with the set analysis option, is there a reason why you choose not to use this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 13:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397142#M809565</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-19T13:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397143#M809566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to enthusiastic, Can you try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Count(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;A&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;ggr(sum(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #000000;"&gt;{&amp;lt; SumSale = {"=Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Flag_1 ={1} &amp;gt;} &lt;/STRONG&gt;SumSale) &amp;gt; 50"}&amp;gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;SumSale),ID_DOC))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 13:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397143#M809566</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-10-19T13:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397144#M809567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;It seems to me that the absence of Aggr () can lead to an error.&lt;/SPAN&gt; &lt;SPAN&gt;But I already see that without SetAnalysis, the calculation takes a very long time.&lt;/SPAN&gt; &lt;SPAN&gt;My fact table has a size of more than 100,000,000 rows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I'll try your option.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 13:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397144#M809567</guid>
      <dc:creator>antonaks</dc:creator>
      <dc:date>2017-10-19T13:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397145#M809568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis is the way to go here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 13:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397145#M809568</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-19T13:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397146#M809570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I can not implement it in the application.&lt;BR /&gt;The formula looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt; (&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt; {&amp;lt;DOC_FILIAL_KEY = {"= &lt;STRONG&gt;Sum&lt;/STRONG&gt; ({$ &amp;lt;[CHANNEL NAME] - = {'Manufacturer'}, [DOCUMENT TYPE ID] = {2,7,10}, [CODE TYPE] = {1,2 , 4,15,19,20,27,28,29,30}, CM_TD = {1}&amp;gt;} ([AMOUNT WITH VAT] * [OPERATION TYPE])&amp;gt; 50 "} &lt;SPAN&gt;&amp;gt;} DOC_FILIAL_KEY)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397146#M809570</guid>
      <dc:creator>antonaks</dc:creator>
      <dc:date>2017-10-19T14:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397147#M809572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count (DISTINCT {&amp;lt;DOC_FILIAL_KEY = {"=Sum({$&amp;lt;[CHANNEL NAME] -= {'Manufacturer'}, [DOCUMENT TYPE ID] = {2,7,10}, [CODE TYPE] = {1,2 , 4,15,19,20,27,28,29,30}, CM_TD = {1}&amp;gt;} ([AMOUNT WITH VAT] * [OPERATION TYPE])) &amp;gt; 50"}&amp;gt;} DOC_FILIAL_KEY)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397147#M809572</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-19T14:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397148#M809573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I missed the bracket &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;BR /&gt;Works 100 times faster !!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;SPAN class="alt-edited"&gt;Thank you very much!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397148#M809573</guid>
      <dc:creator>antonaks</dc:creator>
      <dc:date>2017-10-19T14:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Complex expression (count if sum...)</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397149#M809574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-expression-count-if-sum/m-p/1397149#M809574</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-19T14:29:44Z</dc:date>
    </item>
  </channel>
</rss>

