<?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 Inconsistent behavior in in-table calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431383#M430510</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;Does anyone have an idea of why would this expression results with different results?&lt;/P&gt;&lt;P&gt;if("Balance" - "Safety Stock" &amp;lt; "Safety Stock", "Balance" - "Safety Stock", 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Items marked in yellow are expected to show 0 in the last column:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-09-04_11-19-41.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175508_2017-09-04_11-19-41.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2017 09:26:54 GMT</pubDate>
    <dc:creator>nenadvukovic</dc:creator>
    <dc:date>2017-09-04T09:26:54Z</dc:date>
    <item>
      <title>Inconsistent behavior in in-table calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431383#M430510</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;Does anyone have an idea of why would this expression results with different results?&lt;/P&gt;&lt;P&gt;if("Balance" - "Safety Stock" &amp;lt; "Safety Stock", "Balance" - "Safety Stock", 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Items marked in yellow are expected to show 0 in the last column:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-09-04_11-19-41.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175508_2017-09-04_11-19-41.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 09:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431383#M430510</guid>
      <dc:creator>nenadvukovic</dc:creator>
      <dc:date>2017-09-04T09:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent behavior in in-table calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431384#M430511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;STRONG&gt;(&lt;/STRONG&gt;"Balance" - "Safety Stock"&lt;STRONG&gt;)&lt;/STRONG&gt; &amp;lt; "Safety Stock", &lt;STRONG&gt;(&lt;/STRONG&gt;"Balance" - "Safety Stock"&lt;STRONG&gt;)&lt;/STRONG&gt;, 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 09:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431384#M430511</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-04T09:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent behavior in in-table calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431385#M430512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to write this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if("Balance" - "Safety Stock" &amp;lt; "Safety Stock", &lt;STRONG&gt;0&lt;/STRONG&gt;,&amp;nbsp; "Balance" - "Safety Stock")&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 09:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431385#M430512</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-04T09:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent behavior in in-table calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431386#M430513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx, but I tried that before posting the question. Just one detail, those are not field names but column labels.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 09:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431386#M430513</guid>
      <dc:creator>nenadvukovic</dc:creator>
      <dc:date>2017-09-04T09:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent behavior in in-table calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431387#M430514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, that does not work. I want to show red lines with actual numbers, and others with 0. If you look my screenshot you would see that lines 1 and 2 are fine, but lines 4, 7, 8, 10 are not. How come?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 09:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431387#M430514</guid>
      <dc:creator>nenadvukovic</dc:creator>
      <dc:date>2017-09-04T09:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent behavior in in-table calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431388#M430515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you attach inline because i just tested and it's working.. I am not sure Where you made mistake. Are you doing this in script / UI ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If UI, Try this? May be&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;if((Balance - [Safety Stock]) &amp;lt; [Safety Stock], &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(&lt;/STRONG&gt;Balance - [Safety Stock]&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;)&lt;/STRONG&gt;, 0)&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;This should work as i feel, But if number format issue, You could define Num() .. over expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 09:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431388#M430515</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-04T09:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent behavior in in-table calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431389#M430516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For 4th row values after your condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Step&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"Balance" - "Safety Stock"&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 38168&amp;nbsp;&amp;nbsp; -&amp;nbsp; 27000&amp;nbsp;&amp;nbsp; = 11168&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2. Step&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"Balance" - "Safety Stock" &amp;lt; "Safety Stock"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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; 11168 &amp;lt; 27000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This statement is true so for this true part of the statement execute &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;That is &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"Balance" - "Safety Stock"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Then why you expecting 0 let me know.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 09:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431389#M430516</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-04T09:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent behavior in in-table calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431390#M430517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize, it is consistent with the expression used. My mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time. I'll mark all your replies helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 10:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-behavior-in-in-table-calculations/m-p/1431390#M430517</guid>
      <dc:creator>nenadvukovic</dc:creator>
      <dc:date>2017-09-04T10:12:31Z</dc:date>
    </item>
  </channel>
</rss>

