<?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: EXPRESSION ISSUE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/982378#M335268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not totally sure, but I think the difference between the expressions is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 1 counts distinct [Claim No] for each one of the 3 years, sums the results and you get the average in the end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 2 counts distinct [Claim No] over the set of the 3 years, meaning that it will count distinct [Claim No] present in all the years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2015 17:42:18 GMT</pubDate>
    <dc:creator>jduarte12</dc:creator>
    <dc:date>2015-10-28T17:42:18Z</dc:date>
    <item>
      <title>EXPRESSION ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/982377#M335267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHy are these two giving me different results?? 1st one seems correct , but I expect both to give me the same outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Count({&amp;lt;NEW_24Mths_FLAG={'1'},Year={$(=Max(Year)-1)}&amp;gt;}&amp;nbsp; distinct [Claim No])&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;Count({&amp;lt;NEW_24Mths_FLAG={'1'},Year={$(=Max(Year)-2)}&amp;gt;}&amp;nbsp; distinct [Claim No])&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;Count({&amp;lt;NEW_24Mths_FLAG={'1'},Year={$(=Max(Year)-3)}&amp;gt;}&amp;nbsp; distinct [Claim No])) /3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//******SECOND EXPRESSION*****************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Count({&amp;lt;NEW_24Mths_FLAG={'1'},Year={$(=Max(Year)-1),$(=Max(Year)-2),$(=Max(Year)-3)}&amp;gt;}&amp;nbsp; distinct [Claim No]) /3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 17:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/982377#M335267</guid>
      <dc:creator />
      <dc:date>2015-10-28T17:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: EXPRESSION ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/982378#M335268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not totally sure, but I think the difference between the expressions is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 1 counts distinct [Claim No] for each one of the 3 years, sums the results and you get the average in the end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 2 counts distinct [Claim No] over the set of the 3 years, meaning that it will count distinct [Claim No] present in all the years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 17:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/982378#M335268</guid>
      <dc:creator>jduarte12</dc:creator>
      <dc:date>2015-10-28T17:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: EXPRESSION ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/982379#M335269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think so, cuz I used the same two expressions with a different flag and they both give me the same results&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 17:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/982379#M335269</guid>
      <dc:creator />
      <dc:date>2015-10-28T17:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: EXPRESSION ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/982380#M335270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is because u are using Distinct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Expression 1 : It is counting separately but&lt;/P&gt;&lt;P&gt;in Expression 2 : It is counting all at once, so the distinct values will be different from expression 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you remove distinct from both the expressions, it should give you the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Faredun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 17:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/982380#M335270</guid>
      <dc:creator />
      <dc:date>2015-10-28T17:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: EXPRESSION ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/982381#M335271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They´re &lt;STRONG&gt;not supposed&lt;/STRONG&gt; to return same value.&lt;/P&gt;&lt;P&gt;Suppose you have &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Claim No] = 0001 into Year-1, Year -2 and Year-3,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you use first expression, that Claim No would be counted 3 times, and if you use the second expression it would be counted only once&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/982381#M335271</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-10-28T18:23:32Z</dc:date>
    </item>
  </channel>
</rss>

