<?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: INCLUDE Script Problems with SET VARIABLES in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/INCLUDE-Script-Problems-with-SET-VARIABLES/m-p/357891#M132811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey I am running into the same issue, but when i swap out the string it notes as a script line error. Any idea what's wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vSetYTD&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {$&amp;lt;MonthID = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;='&amp;amp;chr(36)&amp;amp;'(=Max(MonthID))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;BR /&gt; Date = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;='&amp;amp;chr(36)&amp;amp;'(=Max(Date))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;BR /&gt; Year = {'&amp;amp;chr(36)&amp;amp;'(=Max(Year))},&lt;BR /&gt; Quarter = ,&lt;BR /&gt; Period = ,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Period (#)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = ,&lt;BR /&gt; Month = &amp;gt;}; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2013 21:30:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-23T21:30:34Z</dc:date>
    <item>
      <title>INCLUDE Script Problems with SET VARIABLES</title>
      <link>https://community.qlik.com/t5/QlikView/INCLUDE-Script-Problems-with-SET-VARIABLES/m-p/357887#M132807</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 want to import Variables with the import script. Everytime i update my dashboard, the variable is correct importet and which works fine:&lt;/P&gt;&lt;P&gt;SET VarCount = ...&amp;nbsp; &lt;STRONG&gt;count ( {$&amp;lt;Reportingyear={$(=year(today))&amp;gt;} xyz). &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is when i try to import this with an include statement $(Include = ....... .txt) the variable will be imported with following error &lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;count ( {Reportingyear={ (internal error) } xyz)". &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a problem with syntax variable with include statements? Does anyone know how to solve this problem?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance....&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards &lt;/P&gt;&lt;P&gt;Jezze&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 16:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INCLUDE-Script-Problems-with-SET-VARIABLES/m-p/357887#M132807</guid>
      <dc:creator />
      <dc:date>2012-06-18T16:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: INCLUDE Script Problems with SET VARIABLES</title>
      <link>https://community.qlik.com/t5/QlikView/INCLUDE-Script-Problems-with-SET-VARIABLES/m-p/357888#M132808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would assume you also run into trouble just using something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET VarCount = &lt;STRONG&gt;count ( {$&amp;lt;Reportingyear={$(=year(today))&amp;gt;} xyz);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your script (without inlcuding from a different file), because of the dollar sign expansion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to work at your site, so I probably miss something essential here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload a working sample qvw (with your original SET statement)? I don't think this sample must do anything else then create the variable, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 17:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INCLUDE-Script-Problems-with-SET-VARIABLES/m-p/357888#M132808</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-18T17:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: INCLUDE Script Problems with SET VARIABLES</title>
      <link>https://community.qlik.com/t5/QlikView/INCLUDE-Script-Problems-with-SET-VARIABLES/m-p/357889#M132809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jezze,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever QlikView finds the string "$(=" it causes an internal error, although the script keeps loading without reporting it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some workarounds to it, one is to use a different character instead of the "=", like "~" then do a Replace() in a different variable. Another workaround is to use LET instead of SET and use the Chr(36) sign for the dollar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13400470763562749" jivemacro_uid="_13400470763562749"&gt;&lt;P&gt;LET VarCountLET = 'count ( {$&amp;lt;Reportingyear={' &amp;amp; Chr(36) &amp;amp; '(=year(today))&amp;gt;} xyz)';&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 19:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INCLUDE-Script-Problems-with-SET-VARIABLES/m-p/357889#M132809</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-06-18T19:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: INCLUDE Script Problems with SET VARIABLES</title>
      <link>https://community.qlik.com/t5/QlikView/INCLUDE-Script-Problems-with-SET-VARIABLES/m-p/357890#M132810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Miguel, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the perfect solution is to use LET statement. It works perfectly fine!!!! Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;King regards &lt;/P&gt;&lt;P&gt;Jezze&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 06:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INCLUDE-Script-Problems-with-SET-VARIABLES/m-p/357890#M132810</guid>
      <dc:creator />
      <dc:date>2012-06-19T06:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: INCLUDE Script Problems with SET VARIABLES</title>
      <link>https://community.qlik.com/t5/QlikView/INCLUDE-Script-Problems-with-SET-VARIABLES/m-p/357891#M132811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey I am running into the same issue, but when i swap out the string it notes as a script line error. Any idea what's wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vSetYTD&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {$&amp;lt;MonthID = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;='&amp;amp;chr(36)&amp;amp;'(=Max(MonthID))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;BR /&gt; Date = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;='&amp;amp;chr(36)&amp;amp;'(=Max(Date))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;BR /&gt; Year = {'&amp;amp;chr(36)&amp;amp;'(=Max(Year))},&lt;BR /&gt; Quarter = ,&lt;BR /&gt; Period = ,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Period (#)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = ,&lt;BR /&gt; Month = &amp;gt;}; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 21:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INCLUDE-Script-Problems-with-SET-VARIABLES/m-p/357891#M132811</guid>
      <dc:creator />
      <dc:date>2013-01-23T21:30:34Z</dc:date>
    </item>
  </channel>
</rss>

