<?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: If with aggregation not working in UI in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-with-aggregation-not-working-in-UI/m-p/1593832#M443777</link>
    <description>&lt;P&gt;It worked.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2019 20:10:49 GMT</pubDate>
    <dc:creator>suheshreddy</dc:creator>
    <dc:date>2019-06-19T20:10:49Z</dc:date>
    <item>
      <title>If with aggregation not working in UI</title>
      <link>https://community.qlik.com/t5/QlikView/If-with-aggregation-not-working-in-UI/m-p/1593820#M443774</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to compare a field with an aggregation of another field but I am not successful in doing so, can someone please help me if I am missing something simple in it.&lt;/P&gt;&lt;P&gt;I am using below code&amp;nbsp;&lt;/P&gt;&lt;P&gt;max(aggr(if(MIN &amp;lt;= (sum({&amp;lt;YEAR = {'2019'}&amp;gt;}SALES)/&lt;BR /&gt;((sum({&amp;lt;YEAR = {'2018'}&amp;gt;}SALES)&lt;BR /&gt;+sum({&amp;lt;YEAR = {'2017'}&amp;gt;}SALES))/2)),REBATE),PAYER))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below code works but I want it to calculate at each dimension&lt;/P&gt;&lt;P&gt;max({&amp;lt;MIN = {"&amp;lt;=$(= sum({&amp;lt;YEAR = {'2019'}&amp;gt;}SALES)/&lt;BR /&gt;((sum({&amp;lt;YEAR = {'2018'}&amp;gt;}SALES)&lt;BR /&gt;+sum({&amp;lt;YEAR = {'2017'}&amp;gt;}SALES))/2))"}&amp;gt;}&lt;BR /&gt;REBATE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please find the attached sample app for my data set.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-with-aggregation-not-working-in-UI/m-p/1593820#M443774</guid>
      <dc:creator>suheshreddy</dc:creator>
      <dc:date>2024-11-16T20:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: If with aggregation not working in UI</title>
      <link>https://community.qlik.com/t5/QlikView/If-with-aggregation-not-working-in-UI/m-p/1593824#M443775</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Max(Aggr(
If(MIN &amp;lt;= (Sum(TOTAL &amp;lt;PAYER&amp;gt; {&amp;lt;YEAR = {'2019'}&amp;gt;} SALES)/
((Sum(TOTAL &amp;lt;PAYER&amp;gt; {&amp;lt;YEAR = {'2018'}&amp;gt;} SALES) 
+Sum(TOTAL &amp;lt;PAYER&amp;gt; {&amp;lt;YEAR = {'2017'}&amp;gt;}SALES))/2)), REBATE)
, PAYER, MIN))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Jun 2019 19:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-with-aggregation-not-working-in-UI/m-p/1593824#M443775</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-19T19:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: If with aggregation not working in UI</title>
      <link>https://community.qlik.com/t5/QlikView/If-with-aggregation-not-working-in-UI/m-p/1593832#M443777</link>
      <description>&lt;P&gt;It worked.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 20:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-with-aggregation-not-working-in-UI/m-p/1593832#M443777</guid>
      <dc:creator>suheshreddy</dc:creator>
      <dc:date>2019-06-19T20:10:49Z</dc:date>
    </item>
  </channel>
</rss>

