<?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: Problems with set expression read from external file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219342#M390124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should be part of the external file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2016 11:11:18 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-12-07T11:11:18Z</dc:date>
    <item>
      <title>Problems with set expression read from external file</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219338#M390120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;Goodmorning everyone.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;I plugged in an external file the Set expression to use in charts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;The format is in the qvs file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;SET @ORDCLI_Mese11_Y1_ValValuta = SUM( {&amp;lt;ANNO={$(Previous_Year)},AREA={"ORD"},MESE={$(Mese_MM_meno11)}&amp;gt;} VALORE_IN_VALUTA );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET @ORDCLI_Mese11_Y1_Val€ = SUM( {&amp;lt;ANNO={$(Previous_Year)},AREA={"ORD"},MESE={$(Mese_MM_meno11)}&amp;gt;} VALORE );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ecc&lt;/P&gt;&lt;P&gt;ecc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;In the load script I read the formulas:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;$(Must_Include=$(_DIRINCLUDE)Expressions.qvs)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;In view of the variable in the document the set expression they are set with the variables indicated by ($ (Previous_Year)) and $ (Mese_MM_meno11) already valued.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145861_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/145863_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/145864_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;If these variables change in the document in the formulas are not changed. (by slider ot other object)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;In view of variables it should be given the variable and not the value it contains. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;To work should be seen in the variables:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SUM( {&amp;lt;ANNO={$(Previous_Year)},AREA={"ORD"},MESE={$(Mese_MM_meno11)}&amp;gt;} VALORE )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;SPAN class="shorttext"&gt;How should I write in the external file the Set expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;I enclose File set expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="shorttext"&gt;Thank you all.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 10:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219338#M390120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-07T10:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with set expression read from external file</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219339#M390121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&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; font-size: 13px;"&gt;&lt;STRONG&gt;SET @ORDCLI_Mese11_Y1_ValValuta = SUM({&amp;lt;ANNO={#(Previous_Year)},AREA={"ORD"},MESE={#(Mese_MM_meno11)}&amp;gt;} VALORE_IN_VALUTA );&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;SET &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;@ORDCLI_Mese11_Y1_ValValuta&lt;/SPAN&gt; = Replace(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;@ORDCLI_Mese11_Y1_ValValuta&lt;/SPAN&gt;,'#','$');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 10:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219339#M390121</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-07T10:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with set expression read from external file</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219340#M390122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/7455"&gt;Stop Dollar Sign Expansion in the script (Escape Character ??? )&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 10:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219340#M390122</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-07T10:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with set expression read from external file</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219341#M390123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;I'm sorry&lt;/SPAN&gt; but I can not make it work.&lt;BR /&gt;&lt;SPAN&gt;The replace&lt;/SPAN&gt; &lt;SPAN&gt;him&lt;/SPAN&gt; should I enter in the Script and not in external file ??&lt;BR /&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 11:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219341#M390123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-07T11:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with set expression read from external file</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219342#M390124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should be part of the external file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 11:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219342#M390124</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-07T11:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with set expression read from external file</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219343#M390125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;I inserted&lt;/SPAN&gt; :&lt;SPAN&gt;the following instructions in the external file :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET @ORDCLI_Mese11_Y1_Val€=SUM( {&amp;lt;ANNO={#(Previous_Year)},AREA={"ORD"},MESE={#(Mese_MM_meno11)}&amp;gt;} VALORE );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET @ORDCLI_Mese11_Y1_Val€=Replace(@ORDCLI_Mese11_Y1_Val€,'#','$');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;but it does not work.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145872_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 11:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219343#M390125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-07T11:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with set expression read from external file</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219344#M390126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either use a dollar sign expansion on the front end or you can do this:&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; font-size: 13px;"&gt;&lt;STRONG&gt;SET @ORDCLI_Mese11_Y1_Val€ = &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;"=&lt;/SPAN&gt;Replace(@ORDCLI_Mese11_Y1_Val€,'#','$')&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;"&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 12:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219344#M390126</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-07T12:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with set expression read from external file</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219345#M390127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hi, the replace is not executed and &lt;SPAN&gt;the variable&lt;/SPAN&gt; formula &lt;SPAN&gt;does not exist&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145890_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 13:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219345#M390127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-07T13:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with set expression read from external file</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219346#M390128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I see what is going on... Two ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Rename the First variable to something else:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET &lt;SPAN style="color: #ff0000;"&gt;@ORDCLI_Mese11_Y1_Val€Temp&lt;/SPAN&gt; =SUM( {&amp;lt;ANNO={#(Previous_Year)},AREA={"ORD"},MESE={#(Mese_MM_meno11)}&amp;gt;} VALORE );&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;SET @ORDCLI_Mese11_Y1_Val€=Replace(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;@ORDCLI_Mese11_Y1_Val€Temp&lt;/STRONG&gt;,'#','$');&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2) Use this other approach&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LET &lt;SPAN style="color: #ff0000;"&gt;@ORDCLI_Mese11_Y1_Val€&lt;/SPAN&gt; ='Sum({&amp;lt;ANNO={$' &amp;amp; '(Previous_Year)}, AREA={"ORD"},MESE={$' &amp;amp; '(Mese_MM_meno11)}&amp;gt;} VALORE)';&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 13:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-set-expression-read-from-external-file/m-p/1219346#M390128</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-07T13:23:08Z</dc:date>
    </item>
  </channel>
</rss>

