<?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 Set Analysis Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/226293#M78499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the formula listed below that provides me with Yesterday's Sales. Currently if filters are applied that number changes. I am trying to get the Text Object that contains this formula to only ever show Yesterday's Sales. I know I need to do this through Set Analysis but I can't seem to get anything to work. It either returns 0, an empty set or some outrageously large number that could never be correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Yesterday' &amp;amp; chr(39) &amp;amp; 's Sales: ' &amp;amp; Money(Sum(If(Date=$(LastSalesDate),OrderTotal,0)))&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2009 22:37:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-27T22:37:06Z</dc:date>
    <item>
      <title>Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/226293#M78499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the formula listed below that provides me with Yesterday's Sales. Currently if filters are applied that number changes. I am trying to get the Text Object that contains this formula to only ever show Yesterday's Sales. I know I need to do this through Set Analysis but I can't seem to get anything to work. It either returns 0, an empty set or some outrageously large number that could never be correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Yesterday' &amp;amp; chr(39) &amp;amp; 's Sales: ' &amp;amp; Money(Sum(If(Date=$(LastSalesDate),OrderTotal,0)))&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 22:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/226293#M78499</guid>
      <dc:creator />
      <dc:date>2009-10-27T22:37:06Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/226294#M78500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, that formula works as long as you have no selections.&lt;/P&gt;&lt;P&gt;To ignore selections using Set Analysis, use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;='Yesterday' &amp;amp; chr(39) &amp;amp; 's Sales: ' &amp;amp; Money(Sum( {1} If(Date=$(LastSalesDate),OrderTotal,0)))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;EDIT: The rest of the If can easily be put into the Set Analysis:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;='Yesterday' &amp;amp; chr(39) &amp;amp; 's Sales: ' &amp;amp; Money(Sum( {1&amp;lt;Date={'$(LastSalesDate)'}OrderTotal))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I think that second one should work, but it may depend on what LastSalesDate is and your data format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 22:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/226294#M78500</guid>
      <dc:creator />
      <dc:date>2009-10-27T22:54:07Z</dc:date>
    </item>
  </channel>
</rss>

