<?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 Odd result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Odd-result/m-p/159479#M34095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a puzzle (for those who like them [:D]).&lt;/P&gt;&lt;P&gt;I have a model for a call center system for which an expression on a straight table/combo chart is producing odd results. First off, the set expression:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;CallDate={"&amp;gt;=$(=MonthStart(Max(Total CallDate))) &amp;lt;=$(=MonthEnd(Max(Total CallDate)))"}&amp;gt;} Attempts)&lt;/P&gt;&lt;P&gt;works correctly, but I am trying to understand why this supposedly similar SumIf expression gets the wrong result:&lt;/P&gt;&lt;P&gt;Sum(If(CallDate &amp;gt;= MonthStart(Max(Total CallDate)) AND CallDate &amp;lt;= MonthEnd(Max(Total CallDate)), Attempts)).&lt;/P&gt;&lt;P&gt;CallDate is a field on the CallRegister table, Attempts is a flag field (1 or 0) on an analysis table linked 1:1 by CallID to the CallRegister. If Attempt is missing or zero, the call register entry was a "phantom" and not to be included in the count. See the figure for a snip of the table structure.&lt;/P&gt;&lt;P&gt;On a chart dimensioned by day of the month, for 1 August, the set expression gives a result of 3 (this is correct), while the SumIf gets 24.&lt;/P&gt;&lt;P&gt;Any thoughts as to why this is happening?[8-|]&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Aug 2010 08:25:59 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2010-08-13T08:25:59Z</dc:date>
    <item>
      <title>Odd result</title>
      <link>https://community.qlik.com/t5/QlikView/Odd-result/m-p/159479#M34095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a puzzle (for those who like them [:D]).&lt;/P&gt;&lt;P&gt;I have a model for a call center system for which an expression on a straight table/combo chart is producing odd results. First off, the set expression:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;CallDate={"&amp;gt;=$(=MonthStart(Max(Total CallDate))) &amp;lt;=$(=MonthEnd(Max(Total CallDate)))"}&amp;gt;} Attempts)&lt;/P&gt;&lt;P&gt;works correctly, but I am trying to understand why this supposedly similar SumIf expression gets the wrong result:&lt;/P&gt;&lt;P&gt;Sum(If(CallDate &amp;gt;= MonthStart(Max(Total CallDate)) AND CallDate &amp;lt;= MonthEnd(Max(Total CallDate)), Attempts)).&lt;/P&gt;&lt;P&gt;CallDate is a field on the CallRegister table, Attempts is a flag field (1 or 0) on an analysis table linked 1:1 by CallID to the CallRegister. If Attempt is missing or zero, the call register entry was a "phantom" and not to be included in the count. See the figure for a snip of the table structure.&lt;/P&gt;&lt;P&gt;On a chart dimensioned by day of the month, for 1 August, the set expression gives a result of 3 (this is correct), while the SumIf gets 24.&lt;/P&gt;&lt;P&gt;Any thoughts as to why this is happening?[8-|]&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 08:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Odd-result/m-p/159479#M34095</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-08-13T08:25:59Z</dc:date>
    </item>
    <item>
      <title>Odd result</title>
      <link>https://community.qlik.com/t5/QlikView/Odd-result/m-p/159480#M34096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to replicate this problem, but my Set analysis expression is giving me the same results as the normal expression.&lt;/P&gt;&lt;P&gt;hmmm.&lt;/P&gt;&lt;P&gt;It would be interesting to see why it is causing a difference with yours.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 12:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Odd-result/m-p/159480#M34096</guid>
      <dc:creator />
      <dc:date>2010-08-13T12:08:50Z</dc:date>
    </item>
  </channel>
</rss>

