<?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: Problem using variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-using-variables/m-p/1115432#M368295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;Try this:&lt;/SPAN&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; line-height: 1.5em;"&gt;LET vLateMTD = 'Sum({$&amp;lt;_LATE_MONTH_ID = {"$' &amp;amp; '(=Max([_LATE_MONTH_ID]))" }&amp;gt;} LATE_ORDER_COUNT)';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2016 08:56:27 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-07-21T08:56:27Z</dc:date>
    <item>
      <title>Problem using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-variables/m-p/1115431#M368294</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 have declared the following variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set vLateMTD = Sum({$&amp;lt;_LATE_MONTH_ID = {"$(=Max([_LATE_MONTH_ID]))" }&amp;gt;} LATE_ORDER_COUNT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try this in a chart calculation its not returning any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet when I set the expression to be &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({$&amp;lt;_LATE_MONTH_ID = {"$(=Max([_LATE_MONTH_ID]))" }&amp;gt;} LATE_ORDER_COUNT) its returning data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried (and this didn't work either)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; set vLateMTD = Sum({$&amp;lt;_LATE_MONTH_ID = {"=$(=Max([_LATE_MONTH_ID]))" }&amp;gt;} LATE_ORDER_COUNT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Andy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 08:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-variables/m-p/1115431#M368294</guid>
      <dc:creator />
      <dc:date>2016-07-21T08:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-variables/m-p/1115432#M368295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;Try this:&lt;/SPAN&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; line-height: 1.5em;"&gt;LET vLateMTD = 'Sum({$&amp;lt;_LATE_MONTH_ID = {"$' &amp;amp; '(=Max([_LATE_MONTH_ID]))" }&amp;gt;} LATE_ORDER_COUNT)';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 08:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-variables/m-p/1115432#M368295</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-21T08:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-variables/m-p/1115433#M368296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another method would be: &lt;A href="https://community.qlik.com/message/358055"&gt;Re: Setting a variable in script...&lt;/A&gt; whereby if you want to declare many variables on this way an outside-storing of them might be more practically: &lt;A href="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/#comment-231569" title="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/#comment-231569"&gt;Storing variables outside of QlikView - The Qlik Fix! The Qlik Fix!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 09:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-variables/m-p/1115433#M368296</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-21T09:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-variables/m-p/1115434#M368297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 09:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-variables/m-p/1115434#M368297</guid>
      <dc:creator />
      <dc:date>2016-07-21T09:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-variables/m-p/1115435#M368298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that, I have got it working using this method as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 09:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-variables/m-p/1115435#M368298</guid>
      <dc:creator />
      <dc:date>2016-07-21T09:47:49Z</dc:date>
    </item>
  </channel>
</rss>

