<?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/337266#M494186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you.&amp;nbsp; This example worked where the other preply to my question did not.&amp;nbsp; Any thoughts as to why it worked using a variable for max date vs the other examples?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2012 17:39:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-04T17:39:14Z</dc:date>
    <item>
      <title>Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/337263#M494183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Again, &lt;/P&gt;&lt;DIV&gt;I am having some difficulty with this set analysis.&amp;nbsp; It seems to work when I choose other date dimensions like Fiscal Year, YTD, Quarter to date but when I just try and use Date it is not working.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;So, why does this expression work:&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;=sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;={'4/4/2012'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;[In company code currency_HSL]&lt;/SPAN&gt;*-1*&lt;SPAN style="color: #800000;"&gt;RatetoUSD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the one I need to work below does not:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;=sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(max (Date))&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style=": ; color: #808080;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080;"&gt; &lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;[In company code currency_HSL]&lt;/SPAN&gt;*-1*&lt;SPAN style="color: #800000;"&gt;RatetoUSD&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks again&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 16:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/337263#M494183</guid>
      <dc:creator />
      <dc:date>2012-04-04T16:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/337264#M494184</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;Use the expression like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt;Datefield={'$(=vMaxDate)'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;[In company code currency_HSL]&lt;/SPAN&gt;*-1*&lt;SPAN style="color: #800000;"&gt;RatetoUSD)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Where &lt;/SPAN&gt;vMaxDate = Max(Datefield)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Iyyappan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 16:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/337264#M494184</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2012-04-04T16:46:37Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/337265#M494185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two possible issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;$(max(Date)) should read&amp;nbsp; $(=max(Date)) &lt;/LI&gt;&lt;LI&gt;$(=max(Date)) returns a number. Set analysis compares on the text representation of the elements and so perhaps this would be better:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(=Date(max(Date)))&lt;/LI&gt;&lt;/UL&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>Wed, 04 Apr 2012 17:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/337265#M494185</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-04-04T17:01:34Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/337266#M494186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you.&amp;nbsp; This example worked where the other preply to my question did not.&amp;nbsp; Any thoughts as to why it worked using a variable for max date vs the other examples?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 17:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/337266#M494186</guid>
      <dc:creator />
      <dc:date>2012-04-04T17:39:14Z</dc:date>
    </item>
  </channel>
</rss>

