<?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: About $ Replacement Limitation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615378#M685155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Atsushi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SET &lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;X&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; =1;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;SET &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;CONDITION&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[GoodsReceivingDate]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;lt;= MonthEnd(Today(0),-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;$(X)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;); &lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;LET&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;CONDITION2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;= '[GoodsReceivingDate] &amp;lt;= MonthEnd(Today(0),-' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(36) &amp;amp; '(X))'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;gives me in variable overview:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Condition : &lt;/SPAN&gt;[GoodsReceivingDate]&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= MonthEnd(Today(0),-1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Condition2 : &lt;/SPAN&gt;[GoodsReceivingDate]&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= MonthEnd(Today(0),-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(X)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So it should work (use LET)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Fabrice&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Feb 2014 12:28:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-06T12:28:05Z</dc:date>
    <item>
      <title>About $ Replacement Limitation</title>
      <link>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615375#M685151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus, I wish possible workaround on an issue of $ replacement. To make the logic change easy, I have made all the replacement in the initial loading script with SET statement. Single change in the business logic, many graph/grids changed simultaneously. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replacement without input values works. However; if the replacement statement included the input variable, the initialised value seems resident. (See below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET CONDITION= [GoodsReceivingDate] &amp;lt;= MonthEnd(Today(0),-$(X)); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, X is input value, initialised as '1'. Users may input '5' to have month shift of 5 months. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When loading script run, then '1' is initialised. However, no matter user change X value, the $(CONDITION) remains fixed. *$(=CONDITION) has same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should we refrain using input value in the text replacement? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Background not using Set Analyses for month field]&lt;/P&gt;&lt;P&gt;I refrained from using Set Analyses due to the report containing various different dates. Order Date, Purchase Date, Goods Receive Date (101), Goods Issue Date (601), .... in fact SAP situation, wname movement type is abundant, I rely on month-shift to combine all of them into the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate for your support in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 10:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615375#M685151</guid>
      <dc:creator>atsushi_saijo</dc:creator>
      <dc:date>2014-02-06T10:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: About $ Replacement Limitation</title>
      <link>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615376#M685153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Atsushi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps due to the $ that is interpreted in the script.&lt;/P&gt;&lt;P&gt;Use Chr(36) to replace the $ sign that would be interpreted by the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Condition = ' xxxxxx' &amp;amp; chr(36) &amp;amp; '(X)' ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 10:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615376#M685153</guid>
      <dc:creator />
      <dc:date>2014-02-06T10:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: About $ Replacement Limitation</title>
      <link>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615377#M685154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appreciate for fast answer. I attempted, however; the result was not affirmative. &lt;/P&gt;&lt;P&gt;I tried various combination ", ', and also just using CHR(36) in a plain SET statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"....."&amp;amp;CHR(36)&amp;amp;'(X)..........'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resulted somehow in 0. Replacing with the plane expression works. But it is interesting to learn CHR(36) as a way to replace characters. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 11:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615377#M685154</guid>
      <dc:creator>atsushi_saijo</dc:creator>
      <dc:date>2014-02-06T11:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: About $ Replacement Limitation</title>
      <link>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615378#M685155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Atsushi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SET &lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;X&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; =1;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;SET &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;CONDITION&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[GoodsReceivingDate]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;lt;= MonthEnd(Today(0),-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;$(X)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;); &lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;LET&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;CONDITION2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;= '[GoodsReceivingDate] &amp;lt;= MonthEnd(Today(0),-' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(36) &amp;amp; '(X))'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;gives me in variable overview:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Condition : &lt;/SPAN&gt;[GoodsReceivingDate]&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= MonthEnd(Today(0),-1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Condition2 : &lt;/SPAN&gt;[GoodsReceivingDate]&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= MonthEnd(Today(0),-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(X)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So it should work (use LET)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Fabrice&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 12:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615378#M685155</guid>
      <dc:creator />
      <dc:date>2014-02-06T12:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: About $ Replacement Limitation</title>
      <link>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615379#M685156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very interesting to have your feedback: when I see in the variable overview in the original state, it is giving as '1' instead of $(X). Indeed the script inserts the value and automatically calculated it. Somehow LET statement gives straightaway 0 without any expression. I am delving into this matter and I will post a feedback soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 13:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615379#M685156</guid>
      <dc:creator>atsushi_saijo</dc:creator>
      <dc:date>2014-02-06T13:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: About $ Replacement Limitation</title>
      <link>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615380#M685157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Succeeded, I appreciate for your support: with small question.&lt;/P&gt;&lt;P&gt;LET with CHR(36) works. Interactively works too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Small question why originally did not work. I have had such a statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Original]&lt;/P&gt;&lt;P&gt;SET CONDITION = 'MATCH([GoodsType],'A','B')=0 AND&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [GoodsReceivingDate] &amp;lt;= MonthEnd(Today(0)),-$(X))';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SET is replaced as LET,&lt;/LI&gt;&lt;LI&gt;$(X) is replaced as '.....' &amp;amp; CHR(36) &amp;amp; '(X) .....'.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This allows input field in tact in the charts and reporting grids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But initially it did not work. But removing MATCH statement, the statement started working. Is there known rule that we must not use AND statement within LET statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************&lt;/P&gt;&lt;P&gt;P.S. I edited and broken down to fine pieces for the replacement. Currently refactoring on-going but $ with input field needs being careful. I appreciated for all your support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 13:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615380#M685157</guid>
      <dc:creator>atsushi_saijo</dc:creator>
      <dc:date>2014-02-06T13:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: About $ Replacement Limitation</title>
      <link>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615381#M685158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Atsushi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, I do not know well the differences.&lt;/P&gt;&lt;P&gt;I just know that SET should store the result of the formula, and LET the string (for later interpretation)&lt;/P&gt;&lt;P&gt;If it is a string, SET and LET should be the same. Except perhaps the $ inside the formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;See the excellent answer by Jonathan Dienst about the local variables: &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/64743"&gt;http://community.qlik.com/thread/64743&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Fabrice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 14:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-Replacement-Limitation/m-p/615381#M685158</guid>
      <dc:creator />
      <dc:date>2014-02-06T14:24:32Z</dc:date>
    </item>
  </channel>
</rss>

