<?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: Why isn't my set analysis working? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-isn-t-my-set-analysis-working/m-p/461110#M172131</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;DataTime and %Quarters are two fields with no association between them. Remember that the set expression is evaluated once for the object and has no knowledge of the dimensions in a chart or table. What you are asking it is to compare DataTime a list of values. This is not a legal operation so it returns null. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you select something on %Quarters, then DataTime is being compared to a value and your expression works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that %Quarters is a dimension in a chart, you would need to use sum(if()) to compare them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(If(DataTime = %Quarters, Premium)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jun 2013 14:58:08 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2013-06-11T14:58:08Z</dc:date>
    <item>
      <title>Why isn't my set analysis working?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-isn-t-my-set-analysis-working/m-p/461108#M172129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field called DataTime, which shows what quarter the data is from. It has values such as 2013Q1, 2012Q4, 2012Q3, etc.&lt;/P&gt;&lt;P&gt;I created another island table off of it called %Quarters, which just lists the quarters. This is so the users can do a comparison of any two quarters. For the most part, they'll always be looking at one quarter of data, so for DataTime, there must always be a selected value. If I have 2013Q4 selected in DataTime, and 2012Q4 selected in %Quarters, I want to see both quarters data, and the difference.&lt;/P&gt;&lt;P&gt;I used the following to see the data for 2012Q4:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;DataTime={"=DataTime=%Quarters"}&amp;gt;} Premium)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but for some reason, it's only coming up with numbers when I have DataTime and %Quarters set to the same value. Shouldn't the set analysis ignore my selection in DataTime? Why isn't this working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 14:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-isn-t-my-set-analysis-working/m-p/461108#M172129</guid>
      <dc:creator>danielact</dc:creator>
      <dc:date>2013-06-11T14:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why isn't my set analysis working?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-isn-t-my-set-analysis-working/m-p/461109#M172130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably you want to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;DataTime=, %Quarters=&amp;gt;} Premium)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 14:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-isn-t-my-set-analysis-working/m-p/461109#M172130</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-06-11T14:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why isn't my set analysis working?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-isn-t-my-set-analysis-working/m-p/461110#M172131</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;DataTime and %Quarters are two fields with no association between them. Remember that the set expression is evaluated once for the object and has no knowledge of the dimensions in a chart or table. What you are asking it is to compare DataTime a list of values. This is not a legal operation so it returns null. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you select something on %Quarters, then DataTime is being compared to a value and your expression works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that %Quarters is a dimension in a chart, you would need to use sum(if()) to compare them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(If(DataTime = %Quarters, Premium)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 14:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-isn-t-my-set-analysis-working/m-p/461110#M172131</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-06-11T14:58:08Z</dc:date>
    </item>
  </channel>
</rss>

