<?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: Set Variable expression issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Variable-expression-issue/m-p/768633#M272979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyamcharan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;In the following expression change the hyphen(-) symbol to minus symbol as the Qv calculation does not accept the above.&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: 13.3333330154419px;"&gt;&lt;BR /&gt;&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: 13.3333330154419px;"&gt;PeriodID = {$(=Max(PeriodID) – $1)}&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: 13.3333330154419px;"&gt;&lt;BR /&gt;&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: 13.3333330154419px;"&gt;&lt;BR /&gt;&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: 13.3333330154419px;"&gt;Thanks,&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: 13.3333330154419px;"&gt;Vignesh&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2015 06:39:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-23T06:39:33Z</dc:date>
    <item>
      <title>Set Variable expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Variable-expression-issue/m-p/768632#M272978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi Experts,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I am in a stage of learning the SETS and encountered an issue while working on an example dashboard.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Attached is a QVW document where I have a Straight Table and I do not get any results in this table.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I have created variable &lt;STRONG&gt;vSetPreviousNMonth &lt;/STRONG&gt; and used this variable in the sets of the chart expressions.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;The definition of this variable is :&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;PeriodID = {$(=Max(PeriodID) – $1)},&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Year = ,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Quarter = ,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Month = ,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Period =&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;The expressions are :&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sum({$&amp;lt;$(vSetPreviousNMonth(0))&amp;gt;} [# Departures Performed])&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sum({$&amp;lt;$(vSetPreviousNMonth(1))&amp;gt;} [# Departures Performed])&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sum({$&amp;lt;$(vSetPreviousNMonth(2))&amp;gt;} [# Departures Performed])&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Can anyone please tell me what mistake I am doing.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thanks heaps in advance.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 05:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Variable-expression-issue/m-p/768632#M272978</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2015-02-23T05:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Variable expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Variable-expression-issue/m-p/768633#M272979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyamcharan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;In the following expression change the hyphen(-) symbol to minus symbol as the Qv calculation does not accept the above.&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: 13.3333330154419px;"&gt;&lt;BR /&gt;&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: 13.3333330154419px;"&gt;PeriodID = {$(=Max(PeriodID) – $1)}&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: 13.3333330154419px;"&gt;&lt;BR /&gt;&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: 13.3333330154419px;"&gt;&lt;BR /&gt;&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: 13.3333330154419px;"&gt;Thanks,&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: 13.3333330154419px;"&gt;Vignesh&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 06:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Variable-expression-issue/m-p/768633#M272979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-23T06:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Variable expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Variable-expression-issue/m-p/768634#M272980</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;looks like you are using 'Qlikview11 for Developers', Vignesh is correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PeriodID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(PeriodID) - $1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;BR /&gt; Year = ,&lt;BR /&gt; Quarter = ,&lt;BR /&gt; Period = ,&lt;BR /&gt; Month =&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;You can always check it against the solution file supplied for the book&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 09:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Variable-expression-issue/m-p/768634#M272980</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-02-24T09:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Variable expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Variable-expression-issue/m-p/768635#M272981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vignesh.&lt;/P&gt;&lt;P&gt;Thats solved my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 09:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Variable-expression-issue/m-p/768635#M272981</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2015-02-24T09:57:54Z</dc:date>
    </item>
  </channel>
</rss>

