<?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 Why RATE_C must move out side the expression ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-RATE-C-must-move-out-side-the-expression/m-p/1071536#M638095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 1 expression 1 return wrong value&amp;nbsp; :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {$(=max(year)-0)}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;}(sales)/1000)&lt;/P&gt;&lt;P&gt;*RATE_C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below expression i move RATE_C out side , it return right value :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {$(=max(year)-0)}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;}(sales*RATE_C)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know why ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2016 03:15:35 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2016-03-15T03:15:35Z</dc:date>
    <item>
      <title>Why RATE_C must move out side the expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-RATE-C-must-move-out-side-the-expression/m-p/1071536#M638095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 1 expression 1 return wrong value&amp;nbsp; :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {$(=max(year)-0)}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;}(sales)/1000)&lt;/P&gt;&lt;P&gt;*RATE_C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below expression i move RATE_C out side , it return right value :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {$(=max(year)-0)}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;}(sales*RATE_C)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know why ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 03:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-RATE-C-must-move-out-side-the-expression/m-p/1071536#M638095</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-03-15T03:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why RATE_C must move out side the expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-RATE-C-must-move-out-side-the-expression/m-p/1071537#M638096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found the solution , after i change the SOURCE_C to SOURCE :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SOURCE&lt;/STRONG&gt;, CURRENCY_NAME,RATE_C&lt;/P&gt;&lt;P&gt;TDSS, SG, 1&lt;/P&gt;&lt;P&gt;TDSKL, RM, 0.38286&lt;/P&gt;&lt;P&gt;TDSID, ID, 0.00011&lt;/P&gt;&lt;P&gt;TDST, TH, 0.04&lt;/P&gt;&lt;P&gt;TDSPG, RM, 0.38286&lt;/P&gt;&lt;P&gt;ADL, SG, 1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 03:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-RATE-C-must-move-out-side-the-expression/m-p/1071537#M638096</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-03-15T03:28:19Z</dc:date>
    </item>
  </channel>
</rss>

