<?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: Date selection in set expression not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-selection-in-set-expression-not-working/m-p/412127#M564148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({1&amp;lt;&lt;SPAN style="color: #800000;"&gt;business_date&lt;/SPAN&gt; = {'$(=Max(business_date))'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Sales&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2013 22:44:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-06T22:44:05Z</dc:date>
    <item>
      <title>Date selection in set expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Date-selection-in-set-expression-not-working/m-p/412126#M564147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am seeing a strange behavior. I want to display the sum of sales just for the Maximum business date, irrespective of selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached file, this expression works as expected and give me the results based on comparison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;business_date = {"&amp;gt;=$(=Min(business_date)-1)&amp;lt;=$(=Max(business_date))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I modified this same expression as below to make it give me sum for just one day (that is the Max of business_date for all the data), it does not work. Always gives me the complete sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({1&amp;lt;business_date = {"=$(=Max(business_date))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am I again messing up the syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the sample files for reference. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 22:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-selection-in-set-expression-not-working/m-p/412126#M564147</guid>
      <dc:creator />
      <dc:date>2013-02-06T22:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date selection in set expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Date-selection-in-set-expression-not-working/m-p/412127#M564148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({1&amp;lt;&lt;SPAN style="color: #800000;"&gt;business_date&lt;/SPAN&gt; = {'$(=Max(business_date))'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Sales&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 22:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-selection-in-set-expression-not-working/m-p/412127#M564148</guid>
      <dc:creator />
      <dc:date>2013-02-06T22:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date selection in set expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Date-selection-in-set-expression-not-working/m-p/412128#M564149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rebecca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked fine.&lt;/P&gt;&lt;P&gt;I am kind of getting confused with the syntax QlikView works with. I see that you removed the = sign before $ and it worked. My earlier expression was doing a comparison as well and it worked with &amp;gt;= sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, using the = sign did not work in my case. Could you please give some insight on this behaviour?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 22:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-selection-in-set-expression-not-working/m-p/412128#M564149</guid>
      <dc:creator />
      <dc:date>2013-02-06T22:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date selection in set expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Date-selection-in-set-expression-not-working/m-p/412129#M564150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a good reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://iqlik.wordpress.com/2010/09/11/the-magic-of-set-analysis-syntax-and-examples/"&gt;http://iqlik.wordpress.com/2010/09/11/the-magic-of-set-analysis-syntax-and-examples/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 23:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-selection-in-set-expression-not-working/m-p/412129#M564150</guid>
      <dc:creator />
      <dc:date>2013-02-06T23:02:11Z</dc:date>
    </item>
  </channel>
</rss>

