<?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 not working when no selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-not-working-when-no-selections/m-p/1040496#M350239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you don't have a different max date for each of the account number? Set analysis doesn't take place on row by row basis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share a sample to show the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2016 15:30:19 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-28T15:30:19Z</dc:date>
    <item>
      <title>Set Analysis not working when no selections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-not-working-when-no-selections/m-p/1040495#M350238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression that I use to count up the distinct number of Classes per Account Number. In this expression i've included a piece of Set Analysis that limits the results down to only the last 12 months. My expression is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date(AddYears(Max(Date),-1)))"}&amp;gt;} DISTINCT Class)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first I thought this was working fine however it seems that it only actually returns values when the records are being filtered down by Account Number, meaning the results I get are along the lines of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;When filtered by Account Number = 12345&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Account Number&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;When unfiltered:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Account Number&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;45678&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;98765&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've narrowed it down to the problem being in the Set Analysis that is narrowing down the date ranges, as it returns values when this is not included, however i'm not sure why it's failing to evaluate it when there are no selections.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can someone help point me in the right direction?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 15:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-not-working-when-no-selections/m-p/1040495#M350238</guid>
      <dc:creator />
      <dc:date>2016-04-28T15:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis not working when no selections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-not-working-when-no-selections/m-p/1040496#M350239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you don't have a different max date for each of the account number? Set analysis doesn't take place on row by row basis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share a sample to show the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 15:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-not-working-when-no-selections/m-p/1040496#M350239</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-28T15:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis not working when no selections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-not-working-when-no-selections/m-p/1040497#M350240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James, an easy way to check the final expression is removing the label for the 'Count' column, this way the expression label will change to the expression and you can check the set analisys applied to Date only hovering over the title.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 15:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-not-working-when-no-selections/m-p/1040497#M350240</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-04-28T15:36:36Z</dc:date>
    </item>
  </channel>
</rss>

