<?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 Analysis - Calculation with a Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784479#M1024429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume to change the variable to a integer it is just a case of wrapping Num or Num# around it, neither worked I am sad to say&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2015 17:50:07 GMT</pubDate>
    <dc:creator>cpiocpio</dc:creator>
    <dc:date>2015-03-11T17:50:07Z</dc:date>
    <item>
      <title>Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784471#M1024421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a set analysis as follows that returns a set of records for the value of variable vFY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Vcurr='STG',&lt;/P&gt;&lt;P&gt;num(Sum ({&amp;lt;FY={$(=vFY)}&amp;gt;}&lt;/P&gt;&lt;P&gt;val_base), '£#,##0.00'),&lt;/P&gt;&lt;P&gt;num(Sum ({&amp;lt;FY={$(=vFY)}&amp;gt;}&lt;/P&gt;&lt;P&gt;val_eur),'€#,##0.00'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have similar SA but it returns data for vFY less one, so if vFY is 2014, it should return 2013 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can place the following into text objects and they return the correct value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Value&amp;nbsp; is&amp;nbsp;&amp;nbsp; =&amp;nbsp; '&amp;nbsp; &amp;amp;&amp;nbsp; $(=vFY) Returns 2014&lt;/P&gt;&lt;P&gt;='Value is&amp;nbsp;&amp;nbsp; =&amp;nbsp; '&amp;nbsp;&amp;nbsp; &amp;amp;&amp;nbsp; $(=vFY-1)&amp;nbsp;&amp;nbsp; Returns 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So using $(=vFY)&amp;nbsp; in SA works&lt;/P&gt;&lt;P&gt;but $(=vFY-1) does not ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 16:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784471#M1024421</guid>
      <dc:creator>cpiocpio</dc:creator>
      <dc:date>2015-03-11T16:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784472#M1024422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(Vcurr='STG',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Sum ({&amp;lt;FY={'$(=vFY)'}&amp;gt;}&lt;SPAN style="line-height: 1.5em;"&gt;val_base), '£#,##0.00'),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Sum ({&amp;lt;FY={'$(=vFY)'}&amp;gt;}&lt;SPAN style="line-height: 1.5em;"&gt;val_eur),'€#,##0.00'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(Vcurr='STG',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Sum ({&amp;lt;FY={'$(=vFY-1)'}&amp;gt;}val_base), '£#,##0.00'),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Sum ({&amp;lt;FY={'$(=vFY-1)'}&amp;gt;}val_eur),'€#,##0.00'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 16:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784472#M1024422</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-11T16:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784473#M1024423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum ({&amp;lt;FY={$(=vFY-1)}&amp;gt;} &lt;SPAN style="line-height: 1.5em;"&gt;val_eur)&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp; should be the same as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum ({&amp;lt;FY={2013}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;val_eur)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;you could try something like the following to ensure numbers are being compared&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum ({&amp;lt;FY={$(=num#(vFY-1))}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;val_eur)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Or you want to post a sample qvw ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 16:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784473#M1024423</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-11T16:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784474#M1024424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works, you just have to match the data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if your variable is string '2014' it will return a string, while (vFY-1) will auto cast the result to an integer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 16:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784474#M1024424</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2015-03-11T16:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784475#M1024425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for reply same results this yr work&lt;/P&gt;&lt;P&gt;But last year does not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 17:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784475#M1024425</guid>
      <dc:creator>cpiocpio</dc:creator>
      <dc:date>2015-03-11T17:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784476#M1024426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afraid not, no totals returne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 17:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784476#M1024426</guid>
      <dc:creator>cpiocpio</dc:creator>
      <dc:date>2015-03-11T17:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784477#M1024427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm.. maybe the num#() has to go around just the vFY but that would be unusual since the '-' should be enough to accommodate things.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Sum ({&amp;lt;FY={$(=num#(vFY)-1)}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;val_eur)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;wrap it all in text ?&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Sum ({&amp;lt;FY={$(=text(num#(vFY)-1))}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;val_eur)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; background-color: #f6f6f6; 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: 13px; background-color: #f6f6f6; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;not 100% sure... if you can post a QVW that will help the members bang out a solution for you quickly&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 17:39:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784477#M1024427</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-11T17:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784478#M1024428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but no joy&lt;/P&gt;&lt;P&gt;I will have to try and make a sample, full file is massive&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 17:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784478#M1024428</guid>
      <dc:creator>cpiocpio</dc:creator>
      <dc:date>2015-03-11T17:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784479#M1024429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume to change the variable to a integer it is just a case of wrapping Num or Num# around it, neither worked I am sad to say&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 17:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784479#M1024429</guid>
      <dc:creator>cpiocpio</dc:creator>
      <dc:date>2015-03-11T17:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784480#M1024430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;last question... what is the definition of the variable&amp;nbsp; vFY ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;lt;something&amp;gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;lt;something&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latter is used to ensure it calculates at the time the expression where it is used is calculated (and not before)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 17:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784480#M1024430</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-11T17:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784481#M1024434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=FY&lt;/P&gt;&lt;P&gt;It is the value of a “field” FY, that is populated by use of an excel file load and fiel contents link via a field “dated” to the main data object (TABLE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 18:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784481#M1024434</guid>
      <dc:creator>cpiocpio</dc:creator>
      <dc:date>2015-03-11T18:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784482#M1024436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you change it to&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=max( distinct FY) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you get any different behavior ?&amp;nbsp; Using a fieldname by itself can result in multiple records or values and might be the reason for some 'finikiness'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 18:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784482#M1024436</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-11T18:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784483#M1024437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try it later thanks and advise&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my mini iPad, please excuse spelling mistakes, it is the equipment not me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 18:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784483#M1024437</guid>
      <dc:creator>cpiocpio</dc:creator>
      <dc:date>2015-03-11T18:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784484#M1024438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I think I am getting somewhere,&lt;/P&gt;&lt;P&gt;I think it is not with SA as such that the issue lies, it is the fact that my List Box Selection is conflicting with my SA,&lt;/P&gt;&lt;P&gt;Since the selection is a FY range value e.g. 2011-2011, now with the SAS set to look based on  vFY, which has a relationship as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Range                   FY&lt;/P&gt;&lt;P&gt;2011-2012   2011&lt;/P&gt;&lt;P&gt;2012-2013   2012&lt;/P&gt;&lt;P&gt;2013-2014   2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then if I pick 2013-2014    as my selection, then the vFY is 2013, AND Vfy IS HAPPY BUT THE the vFY-1 is then 2012, but because Range 2013-2014    is selected, it returns nothing&lt;/P&gt;&lt;P&gt;If I add to SA the statement Range=,  then I get data for vFY-1&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 08:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784484#M1024438</guid>
      <dc:creator>cpiocpio</dc:creator>
      <dc:date>2015-03-12T08:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784485#M1024439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That can happen when there are selectable fields (list boxes) in the UI that will conflict with the context set by the SA statement... exactly right.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider cancelling those out with some explicit references like the following:&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: 12px;"&gt;Sum ({&amp;lt;FY={$(=vFY),Month=,Quarter=,Date=}&amp;gt;} val_base)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 14:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784485#M1024439</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-12T14:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Calculation with a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784486#M1024440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is what I have done&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 14:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation-with-a-Variable/m-p/784486#M1024440</guid>
      <dc:creator>cpiocpio</dc:creator>
      <dc:date>2015-03-12T14:49:52Z</dc:date>
    </item>
  </channel>
</rss>

