<?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: Calculation Syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-Syntax/m-p/973233#M953786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;same as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$&amp;lt;CurrentYearFlag={1}, Incoterm-={FCA}&amp;gt;}[Total Invoice Amount])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 13:35:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-24T13:35:56Z</dc:date>
    <item>
      <title>Calculation Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Syntax/m-p/973228#M953781</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 know computers follow a simple logic and usually the user causes the error but &lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;Im totally irritated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I try to do a simple calculation but QV seems to find a way I have not thought about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get different results when excluding a certain file in a sum-function with Set Analysis and when subtracting the sum of that value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;CurrentYearFlag={1}, Incoterm-={FCA}&amp;gt;}[Total Invoice Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= 10.113.047&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;CurrentYearFlag={1}&amp;gt;}[Total Invoice Amount])-sum({$&amp;lt;CurrentYearFlag={1}, Incoterm={FCA}&amp;gt;}[Total Invoice Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= 13.467.336&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone explain me what could be the problem with my data / Syntax that leads to different results?&lt;/P&gt;&lt;P&gt;Many Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 11:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Syntax/m-p/973228#M953781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-24T11:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Syntax/m-p/973229#M953782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you made any selections in Incoterm field when you tried to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a difference between &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;&lt;STRONG&gt;Incoterm-={FCA}&lt;/STRONG&gt; and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Incoterm = {*} - {FCA}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your second expression is more like this -&amp;gt; &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Incoterm = {*} - {FCA}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 13:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Syntax/m-p/973229#M953782</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-24T13:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Syntax/m-p/973230#M953783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No selections have been made.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 13:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Syntax/m-p/973230#M953783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-24T13:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Syntax/m-p/973231#M953784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I think I found the reason. &lt;/P&gt;&lt;P&gt;The difference between the two formulas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum({$&amp;lt;CurrentYearFlag={1}, Incoterm-={FCA}&amp;gt;}[Total Invoice Amount])&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt; &lt;SPAN style="line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum({$&amp;lt;CurrentYearFlag={1}&amp;gt;}[Total Invoice Amount])-sum({$&amp;lt;CurrentYearFlag={1}, Incoterm={FCA}&amp;gt;}[Total Invoice Amount])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;is exactly the amount of empty fields I got in [Incoterms].&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But this does still not explain the two different results to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 13:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Syntax/m-p/973231#M953784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-24T13:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Syntax/m-p/973232#M953785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still what do you get for this -&amp;gt; &lt;STRONG&gt;S&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;um({$&amp;lt;CurrentYearFlag={1}, Incoterm= {'*'} - {'FCA'}&amp;gt;}[Total Invoice Amount])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 13:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Syntax/m-p/973232#M953785</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-24T13:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Syntax/m-p/973233#M953786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;same as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$&amp;lt;CurrentYearFlag={1}, Incoterm-={FCA}&amp;gt;}[Total Invoice Amount])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 13:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Syntax/m-p/973233#M953786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-24T13:35:56Z</dc:date>
    </item>
  </channel>
</rss>

