<?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: Putting Dollar Expansion in Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Putting-Dollar-Expansion-in-Variable/m-p/562217#M690809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you not just say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMTDYesterday = TODAY()-1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Oct 2013 18:51:24 GMT</pubDate>
    <dc:creator>rustyfishbones</dc:creator>
    <dc:date>2013-10-15T18:51:24Z</dc:date>
    <item>
      <title>Putting Dollar Expansion in Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Putting-Dollar-Expansion-in-Variable/m-p/562213#M690805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am setting a variable in the script for use later in Set Analysis, but have had issues with the Dollar Expansion;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As in, this don't work :&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM style="font-size: 10pt;"&gt; let &lt;STRONG style=": ; color: #808080;"&gt;vSetMTYesterday&lt;/STRONG&gt;='[Day]={"&amp;lt;=$(=day(today()))"} '; &lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt; &lt;/P&gt;&lt;P style="padding-left: 60px;"&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But replacing the&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;EM&gt;$&lt;/EM&gt; with &lt;EM&gt;' &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;chr&lt;/SPAN&gt;(36) &amp;amp; '&lt;/EM&gt; then it does work :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt; let &lt;STRONG style=": ; color: #808080;"&gt;vSetMTYesterday&lt;/STRONG&gt;='[Day]={"&amp;lt;=' &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;chr&lt;/SPAN&gt;(36) &amp;amp; '(=day(today()))"} '; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Is this what one would expect ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Is there a better way of doing this ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 16:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Putting-Dollar-Expansion-in-Variable/m-p/562213#M690805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-15T16:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Putting Dollar Expansion in Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Putting-Dollar-Expansion-in-Variable/m-p/562214#M690806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem with one of my applications. Try this :&lt;/P&gt;&lt;P&gt;SET &lt;STRONG style="color: #808080;"&gt;vSetMTYesterday &lt;/STRONG&gt;= '[Day]={"&amp;lt;=%(=day(today()))"} ';&lt;/P&gt;&lt;P&gt;LET &lt;STRONG style="color: #808080;"&gt;vSetMTYesterday = Replace($(&lt;STRONG style="color: #808080;"&gt;vSetMTYesterday), '%', '$');&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #808080;"&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #808080;"&gt;&lt;STRONG style="color: #808080;"&gt;It works for me.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 16:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Putting-Dollar-Expansion-in-Variable/m-p/562214#M690806</guid>
      <dc:creator />
      <dc:date>2013-10-15T16:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Putting Dollar Expansion in Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Putting-Dollar-Expansion-in-Variable/m-p/562215#M690807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Marie-Sophie&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your suggestion which is a different swerve on mine, as in you avoid the &lt;EM&gt;$&lt;/EM&gt; by using a &lt;EM&gt;%&lt;/EM&gt; and later replacing the &lt;EM&gt;%&lt;/EM&gt; with a &lt;EM&gt;$&lt;/EM&gt;, whereas I use &lt;EM&gt;chr(36)&lt;/EM&gt; that translates to the &lt;EM&gt;$&lt;/EM&gt; sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd be interested to hear if we just have live with a frig for this or whether there is a neat, tidy &amp;amp; elegant solution.&lt;/P&gt;&lt;P&gt;&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;"&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 16:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Putting-Dollar-Expansion-in-Variable/m-p/562215#M690807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-15T16:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Putting Dollar Expansion in Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Putting-Dollar-Expansion-in-Variable/m-p/562216#M690808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work too: LET vSetMTYesterday= '[Day]={"&amp;lt;=$' &amp;amp; '(=day(today()))"}';&lt;/P&gt;&lt;P&gt;Sometimes the above is the easiest way to handle this, sometimes a SET and LET + replace is more convenient. It depends for example on how many $ characters you need to 'escape'. But it is something you have to live with. Dollar-expansion is very nice to have, even if it does mean that sometimes you need to do a bit extra to prevent a premature expansion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 18:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Putting-Dollar-Expansion-in-Variable/m-p/562216#M690808</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-15T18:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Putting Dollar Expansion in Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Putting-Dollar-Expansion-in-Variable/m-p/562217#M690809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you not just say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMTDYesterday = TODAY()-1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 18:51:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Putting-Dollar-Expansion-in-Variable/m-p/562217#M690809</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-10-15T18:51:24Z</dc:date>
    </item>
  </channel>
</rss>

