<?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 Potential Set Analysis Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Potential-Set-Analysis-Issue/m-p/826818#M291117</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;This might not be a set analysis question.... It probably my naivety!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some data as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Data.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/72259_Data.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'm trying to Report Current Month chosen, prior month and prior year, as below!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/72284_QV.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I have created some variable to help me get to this point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="var.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/72285_var.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i'm getting some issues - If i leave my choices empty it's all good (it defaults to the max, asin the screen shot below) - the minute I choose a year and a month from the selection, the Prior Month figure goes to zero... I suspect its as there is no longer data for months other than the ones I've chosen in the data set - there obviously is in the source data....&amp;nbsp; If this is the case how can I solve the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prior Month: =Num(Sum({&amp;lt;&amp;nbsp; DataYear = {$(=vPriorMonth_Year)} , DataMonth = {$(=vPriorMonth_Month)}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;} NewBusinessInMonth),'#,##0') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is month by month - ie a Monthly position has been derived in the back end database, so I am comparing month on month!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2014 12:23:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-27T12:23:19Z</dc:date>
    <item>
      <title>Potential Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Potential-Set-Analysis-Issue/m-p/826818#M291117</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;This might not be a set analysis question.... It probably my naivety!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some data as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Data.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/72259_Data.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'm trying to Report Current Month chosen, prior month and prior year, as below!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/72284_QV.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I have created some variable to help me get to this point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="var.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/72285_var.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i'm getting some issues - If i leave my choices empty it's all good (it defaults to the max, asin the screen shot below) - the minute I choose a year and a month from the selection, the Prior Month figure goes to zero... I suspect its as there is no longer data for months other than the ones I've chosen in the data set - there obviously is in the source data....&amp;nbsp; If this is the case how can I solve the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prior Month: =Num(Sum({&amp;lt;&amp;nbsp; DataYear = {$(=vPriorMonth_Year)} , DataMonth = {$(=vPriorMonth_Month)}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;} NewBusinessInMonth),'#,##0') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is month by month - ie a Monthly position has been derived in the back end database, so I am comparing month on month!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 12:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Potential-Set-Analysis-Issue/m-p/826818#M291117</guid>
      <dc:creator />
      <dc:date>2014-11-27T12:23:19Z</dc:date>
    </item>
  </channel>
</rss>

