<?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 Set analysis in external txt file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634286#M232655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question regarding set analysis saved in an external txt file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my&amp;nbsp; external file which in include using $(Include=external_setanalysis.txt); I have the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;set vSADateFromDateTo = Position.Bookingdate = {'&amp;gt;=$(vDateFrom)&amp;lt;=$(vDateTo)'};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my QlikView App I have to input fields for the date variables. The problem is, that changing these input values does not change the variable &lt;SPAN style="font-family: 'courier new', courier;"&gt;vSADateFromDateTo&lt;/SPAN&gt;. I have to perform a reload to achieve this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the reason for this is, that the variable definition for &lt;SPAN style="font-family: 'courier new', courier;"&gt;vSADateFromDateTo&lt;/SPAN&gt; is evaluated when a reload is performed and the variable names are replace by their current values, which would result in the following definition inside the app:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;vSADateFromDateTo = Position.Bookingdate = {'&amp;gt;=2014.05.12&amp;lt;=2014.05.14'};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to define the variables in an external file and get the changes of the input fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2014 08:32:26 GMT</pubDate>
    <dc:creator>till_bentz</dc:creator>
    <dc:date>2014-05-15T08:32:26Z</dc:date>
    <item>
      <title>Set analysis in external txt file</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634286#M232655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question regarding set analysis saved in an external txt file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my&amp;nbsp; external file which in include using $(Include=external_setanalysis.txt); I have the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;set vSADateFromDateTo = Position.Bookingdate = {'&amp;gt;=$(vDateFrom)&amp;lt;=$(vDateTo)'};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my QlikView App I have to input fields for the date variables. The problem is, that changing these input values does not change the variable &lt;SPAN style="font-family: 'courier new', courier;"&gt;vSADateFromDateTo&lt;/SPAN&gt;. I have to perform a reload to achieve this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the reason for this is, that the variable definition for &lt;SPAN style="font-family: 'courier new', courier;"&gt;vSADateFromDateTo&lt;/SPAN&gt; is evaluated when a reload is performed and the variable names are replace by their current values, which would result in the following definition inside the app:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;vSADateFromDateTo = Position.Bookingdate = {'&amp;gt;=2014.05.12&amp;lt;=2014.05.14'};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to define the variables in an external file and get the changes of the input fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 08:32:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634286#M232655</guid>
      <dc:creator>till_bentz</dc:creator>
      <dc:date>2014-05-15T08:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in external txt file</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634287#M232656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may try with action, which runs (a) macro or (b) partial reload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 08:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634287#M232656</guid>
      <dc:creator />
      <dc:date>2014-05-15T08:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in external txt file</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634288#M232657</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;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;Let vSADateFromDateTo = Replace('Position.Bookingdate = {#&amp;gt;=' &amp;amp; '$' &amp;amp; '(vDateFrom)&amp;lt;=' &amp;amp; '$' &amp;amp; '(vDateTo)#}', '#', Chr(39));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;Because when it sees the $() - dollar expansion, it's evaluated by QliView and replace the result there.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 08:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634288#M232657</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-05-15T08:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in external txt file</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634289#M232658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but as far as I know, macros are not a good choice if you want to reload it on a server. And also a reload would dramatically reduce the performance and responsiveness of the app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 11:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634289#M232658</guid>
      <dc:creator>till_bentz</dc:creator>
      <dc:date>2014-05-15T11:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in external txt file</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634290#M232659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but i understand that file may change more often than your application reloads. Is that true?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 11:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634290#M232659</guid>
      <dc:creator />
      <dc:date>2014-05-15T11:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in external txt file</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634291#M232660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The file itself is not changing, but the date will be set in the app and that should not trigger a reload each time...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 12:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634291#M232660</guid>
      <dc:creator>till_bentz</dc:creator>
      <dc:date>2014-05-15T12:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in external txt file</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634292#M232661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I found a solution:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I have to change the line&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;set vSADateFromDateTo = Position.Bookingdate = {'&amp;gt;=$(vDateFrom)&amp;lt;=$(vDateTo)'};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;let vSADateFromDateTo = 'Position.Bookingdate = {"&amp;gt;=$' &amp;amp; '(&lt;SPAN style="color: #3d3d3d;"&gt;vDateFrom&lt;/SPAN&gt;)' &amp;amp; '&amp;lt;=$' &amp;amp; '(&lt;SPAN style="color: #3d3d3d;"&gt;vDateTo&lt;/SPAN&gt;)"}';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;and change all following variable definition in the same way. That way the variable names are not evaluated during reload and they can be used properly inside the app.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;Thanks for all your help!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 12:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-external-txt-file/m-p/634292#M232661</guid>
      <dc:creator>till_bentz</dc:creator>
      <dc:date>2014-05-15T12:07:41Z</dc:date>
    </item>
  </channel>
</rss>

