<?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 Sets Variable Expression issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sets-Variable-Expression-issue/m-p/768695#M273013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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&gt;&lt;/P&gt;&lt;P&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&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&gt;The definition of this variable is :&lt;/P&gt;&lt;P&gt;PeriodID = {$(=Max(PeriodID) – $1)},&lt;/P&gt;&lt;P&gt;Year = ,&lt;/P&gt;&lt;P&gt;Quarter = ,&lt;/P&gt;&lt;P&gt;Month = ,&lt;/P&gt;&lt;P&gt;Period =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions are :&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;$(vSetPreviousNMonth(0))&amp;gt;} [# Departures Performed])&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;$(vSetPreviousNMonth(1))&amp;gt;} [# Departures Performed])&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;$(vSetPreviousNMonth(2))&amp;gt;} [# Departures Performed])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please tell me what mistake I am doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks heaps in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2015 05:43:05 GMT</pubDate>
    <dc:creator>shyamcharan</dc:creator>
    <dc:date>2015-02-23T05:43:05Z</dc:date>
    <item>
      <title>Sets Variable Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sets-Variable-Expression-issue/m-p/768695#M273013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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&gt;&lt;/P&gt;&lt;P&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&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&gt;The definition of this variable is :&lt;/P&gt;&lt;P&gt;PeriodID = {$(=Max(PeriodID) – $1)},&lt;/P&gt;&lt;P&gt;Year = ,&lt;/P&gt;&lt;P&gt;Quarter = ,&lt;/P&gt;&lt;P&gt;Month = ,&lt;/P&gt;&lt;P&gt;Period =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions are :&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;$(vSetPreviousNMonth(0))&amp;gt;} [# Departures Performed])&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;$(vSetPreviousNMonth(1))&amp;gt;} [# Departures Performed])&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;$(vSetPreviousNMonth(2))&amp;gt;} [# Departures Performed])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please tell me what mistake I am doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks heaps in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 05:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sets-Variable-Expression-issue/m-p/768695#M273013</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2015-02-23T05:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sets Variable Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sets-Variable-Expression-issue/m-p/768696#M273014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your model seems to be corrupted, can you upload it again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 16:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sets-Variable-Expression-issue/m-p/768696#M273014</guid>
      <dc:creator>cn_sa_dev</dc:creator>
      <dc:date>2015-02-23T16:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sets Variable Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sets-Variable-Expression-issue/m-p/768697#M273015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for coming back on this issue.&lt;/P&gt;&lt;P&gt;I have reattached the QVW. Please let me know if you still have the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the issue is resolved when I replace hyphen with the minus sign.&lt;/P&gt;&lt;P&gt;I had hyphen instead of minus before int he sets definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks heaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 21:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sets-Variable-Expression-issue/m-p/768697#M273015</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2015-02-23T21:54:47Z</dc:date>
    </item>
  </channel>
</rss>

