<?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(if() expression not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-if-expression-not-working/m-p/1409471#M809141</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;I have an aggr expression in pivot table(in dimension) to calculate trend for all the months in. My expression works to show bad trend, but not in other as per the conditions below.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The below expression is &lt;STRONG&gt;test&lt;/STRONG&gt; column in table, it gives value 1 for down trend and 0 for up and horizontal trend, so the &lt;STRONG&gt;test is successful, &lt;/STRONG&gt;but my main expression is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(not IsNull(Trim(After(sum(Budget)/sum(Sales)))),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(round(Alt(After(Sum(Budget)/Sum(Sales)), 0),0.0001) &amp;lt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (Round(Alt(Sum(Budget)/Sum(Sales), 0),0.0001) - (Round(Alt(Sum(Budget)/Sum(Sales), 0),0.0001)*0.005)),1,0),0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>surajdhall</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>aggr(if() expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-if-expression-not-working/m-p/1409471#M809141</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;I have an aggr expression in pivot table(in dimension) to calculate trend for all the months in. My expression works to show bad trend, but not in other as per the conditions below.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The below expression is &lt;STRONG&gt;test&lt;/STRONG&gt; column in table, it gives value 1 for down trend and 0 for up and horizontal trend, so the &lt;STRONG&gt;test is successful, &lt;/STRONG&gt;but my main expression is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(not IsNull(Trim(After(sum(Budget)/sum(Sales)))),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(round(Alt(After(Sum(Budget)/Sum(Sales)), 0),0.0001) &amp;lt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (Round(Alt(Sum(Budget)/Sum(Sales), 0),0.0001) - (Round(Alt(Sum(Budget)/Sum(Sales), 0),0.0001)*0.005)),1,0),0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please 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-if-expression-not-working/m-p/1409471#M809141</guid>
      <dc:creator>surajdhall</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

