<?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: Aggr function including IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-function-including-IF-statement/m-p/120169#M750119</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;&lt;STRONG&gt;Sum({&amp;lt;BIL_ID = {"=Sum(NetRevenue) = 0"}&amp;gt;}Quantity)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2018 14:16:18 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-11-08T14:16:18Z</dc:date>
    <item>
      <title>Aggr function including IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-including-IF-statement/m-p/120168#M750118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wondering if what I'm trying to do is possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the third expression below I would like to count all free units per BIL_ID, but doing so by month. Obviously it works if I replace the Date_MonthYear dimension with BIL_ID... But I would like to see that per month instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I've tried this expression using the Aggr function, but that doesn't work:&lt;/P&gt;&lt;P&gt;=Aggr(If(Sum(NetRevenue)=0, Sum(Quantity), 0), BIL_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do what I'm trying to do in this way? &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217882_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&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/Aggr-function-including-IF-statement/m-p/120168#M750118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function including IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-including-IF-statement/m-p/120169#M750119</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;&lt;STRONG&gt;Sum({&amp;lt;BIL_ID = {"=Sum(NetRevenue) = 0"}&amp;gt;}Quantity)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-including-IF-statement/m-p/120169#M750119</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-08T14:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function including IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-including-IF-statement/m-p/120170#M750120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works! Thanks a lot Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-including-IF-statement/m-p/120170#M750120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-08T14:39:45Z</dc:date>
    </item>
  </channel>
</rss>

