<?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 Aggr with If Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-with-If-Expression/m-p/9099#M607269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body help me to debug the issue in this expression : &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;pick(_order_bucket,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum(Aggr(if(sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income])&amp;nbsp; &amp;gt; vEGRevBucket2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income]),0),[Latest EG Name])) / vMillion,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum(Aggr(if(sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income])&amp;nbsp; &amp;lt;= vEGRevBucket2 and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income])&amp;nbsp; &amp;gt;= vEGRevBucket1, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income]),0),[Latest EG Name])) / vMillion,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum(Aggr(if(sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income])&amp;nbsp; &amp;lt; vEGRevBucket1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income]),0),[Latest EG Name])) / vMillion&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I m trying to add it in Straight table to show 3 row in Straight table but only first one is showing number rest is showing Zero.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but when i write this each ode individiually than working fine in Text box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Vanraj&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2018 06:25:03 GMT</pubDate>
    <dc:creator>bohravanraj</dc:creator>
    <dc:date>2018-04-10T06:25:03Z</dc:date>
    <item>
      <title>Aggr with If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-If-Expression/m-p/9099#M607269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body help me to debug the issue in this expression : &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;pick(_order_bucket,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum(Aggr(if(sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income])&amp;nbsp; &amp;gt; vEGRevBucket2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income]),0),[Latest EG Name])) / vMillion,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum(Aggr(if(sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income])&amp;nbsp; &amp;lt;= vEGRevBucket2 and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income])&amp;nbsp; &amp;gt;= vEGRevBucket1, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income]),0),[Latest EG Name])) / vMillion,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum(Aggr(if(sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income])&amp;nbsp; &amp;lt; vEGRevBucket1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income]),0),[Latest EG Name])) / vMillion&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I m trying to add it in Straight table to show 3 row in Straight table but only first one is showing number rest is showing Zero.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but when i write this each ode individiually than working fine in Text box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Vanraj&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 06:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-If-Expression/m-p/9099#M607269</guid>
      <dc:creator>bohravanraj</dc:creator>
      <dc:date>2018-04-10T06:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-If-Expression/m-p/9100#M607270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is _Order_bucket an island table? try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(&lt;SPAN style="color: #ff0000;"&gt;Only({1}&lt;/SPAN&gt;_order_bucket&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Aggr(if(sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income])&amp;nbsp; &amp;gt; vEGRevBucket2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income]),0),[Latest EG Name])) / vMillion,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Aggr(if(sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income])&amp;nbsp; &amp;lt;= vEGRevBucket2 and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income])&amp;nbsp; &amp;gt;= vEGRevBucket1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income]),0),[Latest EG Name])) / vMillion,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Aggr(if(sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income])&amp;nbsp; &amp;lt; vEGRevBucket1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Year = {'$(v_this_year)'},Year_month=,Month=,Year_month= {'&amp;lt;=$(v_max_date)'},[Latest Coverage Tagging] = {'$(vCoverageChart)'},[Latest Industry] -={'FI','NGI'}&amp;gt;}[Total Income]),0),[Latest EG Name])) / vMillion&lt;/STRONG&gt;&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;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 08:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-If-Expression/m-p/9100#M607270</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-10T08:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-If-Expression/m-p/9101#M607271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny for quick reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 03:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-If-Expression/m-p/9101#M607271</guid>
      <dc:creator>bohravanraj</dc:creator>
      <dc:date>2018-04-11T03:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-If-Expression/m-p/9102#M607272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will this work for Qlik Sense?&lt;/P&gt;&lt;P&gt;I'm Trying to do the same, but the third "record" always return 0 even if the formula is the same.&lt;/P&gt;&lt;P&gt;I have the same issue using "IF" . The Else, never works.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="image1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/204602_image1.png" style="height: auto;" /&gt;&lt;IMG alt="image2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/204603_image2.png" style="height: 59px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 14:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-If-Expression/m-p/9102#M607272</guid>
      <dc:creator>bernice_gonzale</dc:creator>
      <dc:date>2018-06-07T14:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-If-Expression/m-p/9103#M607273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try adding NODISTINCT after Aggr() in your expression and see if that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(NODISTINCT .....&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 15:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-If-Expression/m-p/9103#M607273</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-07T15:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-If-Expression/m-p/9104#M607274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That fixed it! Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 21:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-If-Expression/m-p/9104#M607274</guid>
      <dc:creator>bernice_gonzale</dc:creator>
      <dc:date>2018-06-11T21:13:14Z</dc:date>
    </item>
  </channel>
</rss>

