<?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: Setting a Variable based on another in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145282#M374864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No the second variable must change is I change the first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2016 07:44:47 GMT</pubDate>
    <dc:creator>shane_spencer</dc:creator>
    <dc:date>2016-09-06T07:44:47Z</dc:date>
    <item>
      <title>Setting a Variable based on another</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145276#M374858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got two variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDashDate = Date(Today()-1,);&lt;/P&gt;&lt;P&gt;LET vDashMonthYear =Month('$(vDashDate)') &amp;amp; ' ' &amp;amp; Year('$(vDashDate)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately for vDashMonthYear instead of reading to be &lt;EM&gt;=Month('$(vDashDate)') &amp;amp; ' ' &amp;amp; Year('$(vDashDate)') &lt;/EM&gt;my load script replaces the vDashDate with the actual date not the variable. How can I fix this so vDashMonthYear is dynamic?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 14:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145276#M374858</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2016-09-05T14:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a Variable based on another</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145277#M374859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&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;LET vDashDate = Date(Today()-1);&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;STRONG&gt;LET vDashMonthYear = '=Month($' &amp;amp; '(vDashDate)) &amp;amp; ' Chr(39) &amp;amp; ' ' &amp;amp; Chr(39) &amp;amp; Year($' &amp;amp; '(vDashDate))';&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 14:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145277#M374859</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-05T14:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a Variable based on another</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145278#M374860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why can't you just write this straight into the variable rather than do it in the script?&lt;/P&gt;&lt;P&gt;Otherwise you'll need to add quotes etc. as per Sunny's reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 14:42:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145278#M374860</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2016-09-05T14:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a Variable based on another</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145279#M374861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can write it as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDashDate = Date(Today()-1);&lt;/P&gt;&lt;P&gt;LET vDashMonthYear = Month(Date(Today()-1)) &amp;amp; ' ' &amp;amp; Year(Date(Today()-1));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 15:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145279#M374861</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2016-09-05T15:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a Variable based on another</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145280#M374862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 07:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145280#M374862</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2016-09-06T07:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a Variable based on another</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145281#M374863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done as a work-around but it's not a good practise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 07:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145281#M374863</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2016-09-06T07:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a Variable based on another</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145282#M374864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No the second variable must change is I change the first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 07:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145282#M374864</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2016-09-06T07:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a Variable based on another</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145283#M374865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this?&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;SPAN style="font-family: 'courier new', courier;"&gt;LET vDashDate = 'Date(Today()-1,)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vDashMonthYear = '=Month($' &amp;amp; '(vDashDate)) &amp;amp; ' &amp;amp; chr(39) &amp;amp; ' ' &amp;amp; chr(39) &amp;amp; ' &amp;amp; Year($' &amp;amp; '(vDashDate))';&lt;/SPAN&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;I don't know where you'll be using&lt;SPAN style="font-family: 'courier new', courier;"&gt; vDashMonthYear&lt;/SPAN&gt; so depending on the context you may have to drop the initial '=' from the right hand part of the second LET statement.&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;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 07:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-Variable-based-on-another/m-p/1145283#M374865</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-09-06T07:58:28Z</dc:date>
    </item>
  </channel>
</rss>

