<?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 Variable call in Set Analysis not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311172#M614532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following Set expression within one of the dimensions of a straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;$(vSetPreviousNMonth(0))&amp;gt;} [# Departures Performed])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;SPAN style="font-size: 13.3333px;"&gt;vSetPreviousNMonth has the following definition:&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;PeriodID = {$(=Max(PeriodID) – $1)}, Year = , Quarter = , Month = , Period =&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;leaving $1 to insert parameters and output something else, the problem is that this does not work and the script syntax highlighting &lt;/P&gt;&lt;P&gt;displays it as an error. Is this expression written properly or is there a specific reason this does not work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I'm relatively new to Set analysis and Qlikview overall&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jul 2017 10:37:23 GMT</pubDate>
    <dc:creator>lmengesha</dc:creator>
    <dc:date>2017-07-28T10:37:23Z</dc:date>
    <item>
      <title>Variable call in Set Analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311172#M614532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following Set expression within one of the dimensions of a straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;$(vSetPreviousNMonth(0))&amp;gt;} [# Departures Performed])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;SPAN style="font-size: 13.3333px;"&gt;vSetPreviousNMonth has the following definition:&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;PeriodID = {$(=Max(PeriodID) – $1)}, Year = , Quarter = , Month = , Period =&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;leaving $1 to insert parameters and output something else, the problem is that this does not work and the script syntax highlighting &lt;/P&gt;&lt;P&gt;displays it as an error. Is this expression written properly or is there a specific reason this does not work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I'm relatively new to Set analysis and Qlikview overall&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 10:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311172#M614532</guid>
      <dc:creator>lmengesha</dc:creator>
      <dc:date>2017-07-28T10:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variable call in Set Analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311173#M614533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Leonardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this will work for you:&lt;/P&gt;&lt;P&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: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;$(vSetPreviousNMonth)&amp;gt;} [# Departures Performed])&lt;/STRONG&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: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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: 13px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Sum({&amp;lt;$(&lt;/SPAN&gt;vData&lt;SPAN style="font-size: 13.3333px;"&gt;)&amp;gt;}Value)&lt;STRONG&gt;(this work For Me)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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: 13px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Arvind Patil&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 11:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311173#M614533</guid>
      <dc:creator>arvind_patil</dc:creator>
      <dc:date>2017-07-28T11:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variable call in Set Analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311174#M614534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with an &lt;STRONG&gt;=&lt;/STRONG&gt; at the beginning but it did not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 11:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311174#M614534</guid>
      <dc:creator>lmengesha</dc:creator>
      <dc:date>2017-07-28T11:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variable call in Set Analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311175#M614535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leonardo,&lt;/P&gt;&lt;P&gt;sometimes the script editor tells you there's an error in set analysis when there isn't. Try your expression &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vSetPreviousNMonth with various values written in place of the $1 parameter as a way to test. To my eyes your expression looks okay.&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;"&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: 13px;"&gt;good luck&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;"&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: 13px;"&gt;Andrew&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 11:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311175#M614535</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-07-28T11:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Variable call in Set Analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311176#M614536</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;May be like this&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: 13px;"&gt;Expression:&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: 13px;"&gt;Sum({&amp;lt;$(vSetPreviousNMonth)&amp;gt;} [# Departures Performed]) or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;$(#vSetPreviousNMonth)&amp;gt;} [# Departures Performed]) &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-size: 13.3333px; background-color: #c9d7f1; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vSetPreviousNMonth :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; background-color: #c9d7f1; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;PeriodID = {"$(=Max(PeriodID))"}, Year = , Quarter = , Month = , Period =&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 11:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311176#M614536</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-07-28T11:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Variable call in Set Analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311177#M614537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say it doesn't work, does it not give you any solution or is it just showing a null?? Would you be able to share&amp;nbsp; a sample to take a look at this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 11:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311177#M614537</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-28T11:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Variable call in Set Analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311178#M614538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see no added value in using the variable with parameter as opposed to using it directly in the expression. The various $ expansions and the moments that they are evaluated make it very tricky. Directly in the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;PeriodID &lt;/STRONG&gt;&lt;/SPAN&gt;= {"$(=Max(&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;PeriodID &lt;/STRONG&gt;&lt;/SPAN&gt;)-0)"},Year=,Quarter=,Month=,Period=&amp;gt;} [# Departures Performed])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited:Bold parts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 11:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311178#M614538</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2017-07-28T11:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable call in Set Analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311179#M614539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry guys this was an error on my part, the Set expression was working but the relationship between the Master Calendar and the Fact Table within the data model was non-existent, therefore the calculations returned 0 at every turn, although I do appreciate the answers provided, I had to look at the data model for a good 30m to figure this out (The answer was to create a primary key between both tables from common fields in both tables), thanks for the help non the less.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 11:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-call-in-Set-Analysis-not-working/m-p/1311179#M614539</guid>
      <dc:creator>lmengesha</dc:creator>
      <dc:date>2017-08-01T11:36:55Z</dc:date>
    </item>
  </channel>
</rss>

