<?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: Variable syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-syntax/m-p/607836#M1115602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.&amp;nbsp; Thanks.&amp;nbsp; Here's hoping it works!&amp;nbsp; LOL!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2014 16:50:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-19T16:50:21Z</dc:date>
    <item>
      <title>Variable syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-syntax/m-p/607831#M1115597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following variable definition, but qlikview does not seem to like the syntax (the red squiggly underline starts with the first bracket).&amp;nbsp; 'PeriodID' is previously defined, so I am not sure what qlikview does not like about this. The variable name is vSetYTD and the definition follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;PeriodID = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Max(PeriodID))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;BR /&gt;&lt;BR /&gt; Year = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Quarter = ,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Month = ,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Period =&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-syntax/m-p/607831#M1115597</guid>
      <dc:creator />
      <dc:date>2014-02-19T16:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Variable syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-syntax/m-p/607832#M1115598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Might be just a problem with the syntax checker, since your definition is not a valid expression (and as far as understood, it's not supposed to be one, it's just the short cut for some set expression content snippet, right? So you want to use something like&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum({&amp;lt;$(vSetYTD), Type = {'A'}&amp;gt;} Value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-syntax/m-p/607832#M1115598</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-19T16:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Variable syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-syntax/m-p/607833#M1115599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum({&amp;lt;&lt;SPAN style="font-size: 8pt;"&gt;PeriodID ={&lt;/SPAN&gt;$(vSetYTD)}&amp;gt;} Value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-syntax/m-p/607833#M1115599</guid>
      <dc:creator>santharubban</dc:creator>
      <dc:date>2014-02-19T16:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variable syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-syntax/m-p/607834#M1115600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is setting vSetYTD (Year To Date) as a Set for Set Analysis against the same period for the previous year (which will be defined as vSetLYYTD (Last Year Year to Date).&amp;nbsp; The data to be compared can be changed.&amp;nbsp; This variable is just to set the base period for comparison. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-syntax/m-p/607834#M1115600</guid>
      <dc:creator />
      <dc:date>2014-02-19T16:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variable syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-syntax/m-p/607835#M1115601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understood, my point is that the syntax checker often claims something as 'wrong' which in fact is not (seen in full context).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-syntax/m-p/607835#M1115601</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-19T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variable syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-syntax/m-p/607836#M1115602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.&amp;nbsp; Thanks.&amp;nbsp; Here's hoping it works!&amp;nbsp; LOL!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-syntax/m-p/607836#M1115602</guid>
      <dc:creator />
      <dc:date>2014-02-19T16:50:21Z</dc:date>
    </item>
  </channel>
</rss>

