<?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 Expression validation. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-validation/m-p/1235701#M393102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my expression and it is always returning 0 ,&amp;nbsp; please suggest it is correct&amp;nbsp; or not ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Aggr((((sum(TOTAL{&amp;lt;Flag={'Brand'}, fin_acct={'NR'}&amp;gt;}ACTUALS_USD_BU)/1000)/&lt;/P&gt;&lt;P&gt;&amp;nbsp; (sum(TOTAL{&amp;lt;Flag={'Brand'}, fin_acct={'Total Volume'}&amp;gt;}ACTUALS_USD_BU)/1000)) - &lt;/P&gt;&lt;P&gt;&amp;nbsp; ((sum({&amp;lt;Flag={'Brand'}, fin_acct={'NR'}&amp;gt;}ACTUALS_USD_BU)/1000)/&lt;/P&gt;&lt;P&gt;&amp;nbsp; (sum({&amp;lt;Flag={'Brand'}, fin_acct={'Total Volume'}&amp;gt;}ACTUALS_USD_BU)/1000))),%Country_Key)&amp;nbsp; &amp;gt;0 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Aggr((((sum(TOTAL{&amp;lt;Flag={'Brand'}, fin_acct={'MACO'}&amp;gt;}ACTUALS_USD_BU)/1000)/&lt;/P&gt;&lt;P&gt;&amp;nbsp; (sum(TOTAL{&amp;lt;Flag={'Brand'}, fin_acct={'Total Volume'}&amp;gt;}ACTUALS_USD_BU)/1000)) - &lt;/P&gt;&lt;P&gt;&amp;nbsp; ((sum({&amp;lt;Flag={'Brand'}, fin_acct={'MACO'}&amp;gt;}ACTUALS_USD_BU)/1000)/&lt;/P&gt;&lt;P&gt;&amp;nbsp; (sum({&amp;lt;Flag={'Brand'}, fin_acct={'Total Volume'}&amp;gt;}ACTUALS_USD_BU)/1000))),%Country_Key)&amp;nbsp; &amp;lt;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Aggr((sum(TOTAL{&amp;lt;Flag={'Brand'}, fin_acct={'Total Volume'}&amp;gt;}ACTUALS_USD_BU)/1000),%Country_Key) &amp;gt;0&amp;nbsp;&amp;nbsp; , 1 , 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2016 12:06:46 GMT</pubDate>
    <dc:creator>agni_gold</dc:creator>
    <dc:date>2016-12-09T12:06:46Z</dc:date>
    <item>
      <title>Expression validation.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-validation/m-p/1235701#M393102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my expression and it is always returning 0 ,&amp;nbsp; please suggest it is correct&amp;nbsp; or not ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Aggr((((sum(TOTAL{&amp;lt;Flag={'Brand'}, fin_acct={'NR'}&amp;gt;}ACTUALS_USD_BU)/1000)/&lt;/P&gt;&lt;P&gt;&amp;nbsp; (sum(TOTAL{&amp;lt;Flag={'Brand'}, fin_acct={'Total Volume'}&amp;gt;}ACTUALS_USD_BU)/1000)) - &lt;/P&gt;&lt;P&gt;&amp;nbsp; ((sum({&amp;lt;Flag={'Brand'}, fin_acct={'NR'}&amp;gt;}ACTUALS_USD_BU)/1000)/&lt;/P&gt;&lt;P&gt;&amp;nbsp; (sum({&amp;lt;Flag={'Brand'}, fin_acct={'Total Volume'}&amp;gt;}ACTUALS_USD_BU)/1000))),%Country_Key)&amp;nbsp; &amp;gt;0 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Aggr((((sum(TOTAL{&amp;lt;Flag={'Brand'}, fin_acct={'MACO'}&amp;gt;}ACTUALS_USD_BU)/1000)/&lt;/P&gt;&lt;P&gt;&amp;nbsp; (sum(TOTAL{&amp;lt;Flag={'Brand'}, fin_acct={'Total Volume'}&amp;gt;}ACTUALS_USD_BU)/1000)) - &lt;/P&gt;&lt;P&gt;&amp;nbsp; ((sum({&amp;lt;Flag={'Brand'}, fin_acct={'MACO'}&amp;gt;}ACTUALS_USD_BU)/1000)/&lt;/P&gt;&lt;P&gt;&amp;nbsp; (sum({&amp;lt;Flag={'Brand'}, fin_acct={'Total Volume'}&amp;gt;}ACTUALS_USD_BU)/1000))),%Country_Key)&amp;nbsp; &amp;lt;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Aggr((sum(TOTAL{&amp;lt;Flag={'Brand'}, fin_acct={'Total Volume'}&amp;gt;}ACTUALS_USD_BU)/1000),%Country_Key) &amp;gt;0&amp;nbsp;&amp;nbsp; , 1 , 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 12:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-validation/m-p/1235701#M393102</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2016-12-09T12:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Expression validation.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-validation/m-p/1235702#M393103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how you are using this, but why do you need a Aggr() function here?? You don't even have an outer aggregation. May be you need to add a outer aggregation or may be you just don't need Aggr(). Difficult to say whats right and whats not without knowing the intent &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 12:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-validation/m-p/1235702#M393103</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-09T12:12:34Z</dc:date>
    </item>
  </channel>
</rss>

