<?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: Bug In Qlik in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bug-In-Qlik/m-p/1101424#M365351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the calculation to use RangeSum solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2016 06:56:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-20T06:56:59Z</dc:date>
    <item>
      <title>Bug In Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-In-Qlik/m-p/1101421#M365348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with the following values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Total GSV] as WM_TotalGSV ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Retro Discount] as WM_RetrospectiveDiscount ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Standard Discount] as WM_StandardDiscount ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which I store into a temp table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then read the data into the required data and perform the following calculation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 9pt; font-family: 'Courier New';"&gt;WM_TotalGSV&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #800000; font-size: 9pt; font-family: 'Courier New';"&gt;WM_RetrospectiveDiscount&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #800000; font-size: 9pt; font-family: 'Courier New';"&gt;WM_StandardDiscount&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000; font-size: 9pt; font-family: 'Courier New';"&gt;WM_NetSales&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;For some reason the figure &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;WM_NetSales) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12px; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12px; font-family: 'Courier New';"&gt;Is different from&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12px; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(&lt;SPAN style="font-size: 13.3333px;"&gt;WM_TotalGSV) - sum(&lt;SPAN style="color: #800000; font-size: 9pt; font-family: 'Courier New';"&gt;WM_RetrospectiveDiscount&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; ) - sum(&lt;SPAN style="color: #800000; font-size: 9pt; font-family: 'Courier New';"&gt;WM_StandardDiscount&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;This is when I create a chart selecting the whole data set.&amp;nbsp; If select on a line by line, or group of lines the figures match.&amp;nbsp; The difference between the values is &lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 13.3333px;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 9pt; font-family: 'Courier New';"&gt;WM_RetrospectiveDiscount&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; ) (&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;WM_StandardDiscount is zero for all lines).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;I can't see any reason why the figures we different.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;Andy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 15:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-In-Qlik/m-p/1101421#M365348</guid>
      <dc:creator />
      <dc:date>2016-07-19T15:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bug In Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-In-Qlik/m-p/1101422#M365349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a bug at all! The expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WM_TotalGSV - WM_RetrospectiveDiscount - WM_StandardDiscount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will evaluate to null if ANY of the three field values is null. So the values of the other fields for those reords will be lost when you Sum those values. The alternative of summing them individually does not do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is consistent with how SQL databases handle null values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 15:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-In-Qlik/m-p/1101422#M365349</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-07-19T15:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Bug In Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-In-Qlik/m-p/1101423#M365350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #800000;"&gt;Instead of :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #800000;"&gt;WM_TotalGSV&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #3d3d3d;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #800000;"&gt;WM_RetrospectiveDiscount&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #3d3d3d;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #800000;"&gt;WM_StandardDiscount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #800000;"&gt;RangeSum(WM_TotalGSV,&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #3d3d3d;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #800000;"&gt;WM_RetrospectiveDiscount,&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #3d3d3d;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #800000;"&gt;WM_StandardDiscount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #800000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #800000;"&gt;It could be that null values are messing up this horizontal calculation. RangeSum handles nulls as if they are zero value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #800000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #800000;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #800000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: #800000;"&gt;Andrew&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 15:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-In-Qlik/m-p/1101423#M365350</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-07-19T15:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bug In Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-In-Qlik/m-p/1101424#M365351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the calculation to use RangeSum solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 06:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-In-Qlik/m-p/1101424#M365351</guid>
      <dc:creator />
      <dc:date>2016-07-20T06:56:59Z</dc:date>
    </item>
  </channel>
</rss>

