<?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: Dollar Sign Expansion, Problem with arithmetic on the result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-Problem-with-arithmetic-on-the-result/m-p/1164476#M379233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus,&lt;/P&gt;&lt;P&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; I had a commented out previous version of my expression after my working expression and that was throwing the spanner into the works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Jul 2016 16:51:25 GMT</pubDate>
    <dc:creator>effinty2112</dc:creator>
    <dc:date>2016-07-03T16:51:25Z</dc:date>
    <item>
      <title>Dollar Sign Expansion, Problem with arithmetic on the result</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-Problem-with-arithmetic-on-the-result/m-p/1164474#M379231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have variable with a parameter: eSQMTotalforYear($1) with formula : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;$(=eYear) = {$(=-$1+max($(=eYear)))}&amp;gt;} Qty*[Chargeable Unit SQM])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the answer I want. A textbox containing: =$(eSQMTotalforYear(0)) returns 871541.71999991 which is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I have is that I can't perform any arithmetic on the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted the difference between this year and last but a textbox containing: =$(eSQMTotalforYear(0)) - $(eSQMTotalforYear(1)) disregards&lt;/P&gt;&lt;P&gt;the second half of the expression and I get 871541.71999991 again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(eSQMTotalforYear(1)) on its own gives the correct figure for the previous year :1677744.7799994&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Even subtracting a constant has no effect : =$(eSQMTotalforYear(0)) -800000 returns : 871541.71999991. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping there's something obvious I've overlooked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew Walker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2016 15:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-Problem-with-arithmetic-on-the-result/m-p/1164474#M379231</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-07-03T15:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar Sign Expansion, Problem with arithmetic on the result</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-Problem-with-arithmetic-on-the-result/m-p/1164475#M379232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could this: &lt;A href="https://community.qlik.com/docs/DOC-8694"&gt;Well-commented variables. Be careful!&lt;/A&gt; be the reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2016 16:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-Problem-with-arithmetic-on-the-result/m-p/1164475#M379232</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-03T16:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar Sign Expansion, Problem with arithmetic on the result</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-Problem-with-arithmetic-on-the-result/m-p/1164476#M379233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus,&lt;/P&gt;&lt;P&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; I had a commented out previous version of my expression after my working expression and that was throwing the spanner into the works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2016 16:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-Problem-with-arithmetic-on-the-result/m-p/1164476#M379233</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-07-03T16:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar Sign Expansion, Problem with arithmetic on the result</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-Problem-with-arithmetic-on-the-result/m-p/1164477#M379234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is very interesting,,,, Can you please share a small sample so that we can take a look and see what is happening..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2016 17:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-Problem-with-arithmetic-on-the-result/m-p/1164477#M379234</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-07-03T17:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar Sign Expansion, Problem with arithmetic on the result</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-Problem-with-arithmetic-on-the-result/m-p/1164478#M379235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thirumala,&lt;/P&gt;&lt;P&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; Marcus pointed me in the right direction. My first expression's formula ended in a comment and when this was expanded the // commented out everything that followed including the second expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2016 19:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-Problem-with-arithmetic-on-the-result/m-p/1164478#M379235</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-07-03T19:09:49Z</dc:date>
    </item>
  </channel>
</rss>

