<?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: Source Control, Variables and Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672784#M244369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's what yielded me the expression as text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Sep 2014 14:24:42 GMT</pubDate>
    <dc:creator>gksmithlcw</dc:creator>
    <dc:date>2014-09-14T14:24:42Z</dc:date>
    <item>
      <title>Source Control, Variables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672777#M244362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently trying to get a document into SVN via QlikView's integrated SVN support and through my research, I found that variables entered into the Variables tab of the Document Properties Dialog will not persist in source control so my first step was to move all of my variables to my script (best practice anyway) and reload to make sure everything came through as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Things looked great until I got to a variable in which set analysis and dollar sign expansion were used. Here's what I I'm dealing with:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The variable value from the dialog as it was before moving it to the script:&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=Sum({&amp;lt;EnrollmentDate_SD1 = {"&amp;gt;=$(#vPlanYear_CurrentStart)"}, ClmPdDt_MonthYear=, IncurFromDt_MonthYear=, EnrollmentStatus={'Employee'}&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}[Medically Eligible Month])&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;The script I wrote to replace what had been entered into the dialog previously:&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SET vPlanYear_Current_Employee_Months = "=Sum({&amp;lt;EnrollmentDate_SD1 = {"&amp;gt;=$(#vPlanYear_CurrentStart)"}, ClmPdDt_MonthYear=, IncurFromDt_MonthYear=, EnrollmentStatus={'Employee'}&amp;gt;}[Medically Eligible Month])";&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;The variable value from the dialog after the reload:&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;"=Sum({&amp;lt;EnrollmentDate_SD1 = {"&amp;gt;=0"}, ClmPdDt_MonthYear=, IncurFromDt_MonthYear=, EnrollmentStatus={'Employee'}&amp;gt;}[Medically Eligible Month])"&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it looks to me like instead of pulling my variable value through like it did with other variables I have using functions, it did the dollar sign expansion and nothing else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what I need to do in the script to get my variable value to end up like it is in (1) above? Any input would be greatly appreciated because I need to get this project into source control but cannot do so if I'm going to lose these variable values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 21:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672777#M244362</guid>
      <dc:creator>gksmithlcw</dc:creator>
      <dc:date>2014-09-10T21:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Source Control, Variables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672778#M244363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing, ay?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672778#M244363</guid>
      <dc:creator>gksmithlcw</dc:creator>
      <dc:date>2014-09-12T12:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Source Control, Variables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672779#M244364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a pair of single quotes around your dollar expansion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;=Sum({&amp;lt;EnrollmentDate_SD1 = {"&amp;gt;=&lt;STRONG style="color: #ff0000;"&gt;'&lt;/STRONG&gt;$(#vPlanYear_CurrentStart)&lt;STRONG style="color: #ff0000; font-family: 'courier new', courier;"&gt;'&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;}, ClmPdDt_MonthYear=, IncurFromDt_MonthYear=, EnrollmentStatus={'Employee'}&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}[Medically Eligible Month])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672779#M244364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-12T12:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Source Control, Variables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672780#M244365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the dollar sign will always cause trouble when you set the variables in the script. I used a replace function therefore and a 2-step-approach for each variable...this should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vVariable_tmp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "sum(~(x))"; &lt;/P&gt;&lt;P&gt;SET vVariable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "=Replace(vVariable_tmp,&amp;nbsp;&amp;nbsp;&amp;nbsp; '~', '$')";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672780#M244365</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-09-12T13:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Source Control, Variables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672781#M244366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion. Unfortunately, it had no effect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 14:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672781#M244366</guid>
      <dc:creator>gksmithlcw</dc:creator>
      <dc:date>2014-09-12T14:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Source Control, Variables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672782#M244367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/55647"&gt;Daniel Oberbillig&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed my code as suggested to:&lt;/P&gt;&lt;P&gt;SET vPlanYear_Current_Employee_Months_temp = "Sum({&amp;lt;EnrollmentDate_SD1 = {"&amp;gt;=~(#vPlanYear_CurrentStart)"}, ClmPdDt_MonthYear=, IncurFromDt_MonthYear=, EnrollmentStatus={'Employee'}&amp;gt;}[Medically Eligible Month])";&lt;/P&gt;&lt;P&gt;SET vPlanYear_Current_Employee_Months = "=Replace(vPlanYear_Current_Employee_Months_temp, '~', '$')";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This netted me a variable with the value of:&lt;/P&gt;&lt;P&gt;=Replace(vPlanYear_Current_Employee_Months_temp, '~', '$')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use this variable in a text object, I just get the text:&lt;/P&gt;&lt;P&gt;"Sum({&amp;lt;EnrollmentDate_SD1 = {"&amp;gt;=$(#vPlanYear_CurrentStart)"}, ClmPdDt_MonthYear=, IncurFromDt_MonthYear=, EnrollmentStatus={'Employee'}&amp;gt;}[Medically Eligible Month])"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried using LET in place of SET in the second line and that netted me an empty variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 14:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672782#M244367</guid>
      <dc:creator>gksmithlcw</dc:creator>
      <dc:date>2014-09-12T14:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Source Control, Variables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672783#M244368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you use the expression in the textbox like that: =$(vPlanYear_Current_Employee_Months) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/66640_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Sep 2014 00:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672783#M244368</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-09-13T00:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Source Control, Variables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672784#M244369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's what yielded me the expression as text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2014 14:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672784#M244369</guid>
      <dc:creator>gksmithlcw</dc:creator>
      <dc:date>2014-09-14T14:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Source Control, Variables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672785#M244370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See qvw example attached.&lt;/P&gt;&lt;P&gt;It might be because of using the $() within the double quotes (what normally works fine)&lt;/P&gt;&lt;P&gt;In this case try it with single quotes like here:&lt;/P&gt;&lt;P&gt;SET vPlanYear_Current_Employee_Months_temp = "Sum({&amp;lt;EnrollmentDate_SD1 = {'&amp;gt;=$(vPlanYear_CurrentStart)'}, ClmPdDt_MonthYear=, IncurFromDt_MonthYear=, EnrollmentStatus={'Employee'}&amp;gt;}[Medically Eligible Month])";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2014 23:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672785#M244370</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-09-14T23:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Source Control, Variables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672786#M244371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/55647"&gt;Daniel Oberbillig&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That did it! Thank you so much for the assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a bit of a PITA but at least it gets the job done and gets my doc into source control which is a HUGE deal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672786#M244371</guid>
      <dc:creator>gksmithlcw</dc:creator>
      <dc:date>2014-09-15T15:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Source Control, Variables and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672787#M244372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad I could help.&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 23:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Control-Variables-and-Set-Analysis/m-p/672787#M244372</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-09-15T23:02:06Z</dc:date>
    </item>
  </channel>
</rss>

