<?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 Max Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Date/m-p/188326#M503192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try setting up a straight table chart with your expression, but don't give it a label. Then when the chart is rendered, your label will be the expression with the dollar sign expansion evaluated. This will tell you if your dollar sign expansion is returning a value that matches up with what your invoice date field needs (i.e. a numeric date).&lt;/P&gt;&lt;P&gt;Also, you could try hardcoding a date value into your set expression:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({$&amp;lt;Fin_Prod={'NL'}, Fin_Prod_Description={'OI'},&lt;BR /&gt; Invoice_Date = {40390}&amp;gt;} Sales_Amount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;Either of these actions will tell you if it is your Set Analysis or your dollar sign expansion that is the problem. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You should also try getting rid of the quotes inside the set modifier of the expression I gave. Since your values are numeric, you don't need the quotes and that could be the problem:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({$&amp;lt;Fin_Prod={'NL'}, Fin_Prod_Description={'OI'},&lt;BR /&gt; Invoice_Date = {$(=Max(Invoice_Date))}&amp;gt;} Sales_Amount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Sep 2010 19:22:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-07T19:22:23Z</dc:date>
    <item>
      <title>Set Analysis Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Date/m-p/188322#M503188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we get the amount as per max invoice date if the user selection of invoice date varies&lt;BR /&gt;for eg if i select specific range for invoice date i.e.31-jul-2010 to 31 jan 2010 then is that possible in set analysis that i can get the amount for 31-jul-2010. whereas if we remove the selection we have 31-aug-2010 as a max invoice date.&lt;/P&gt;&lt;P&gt;Currently i am doing it mannually which is not giving me the required result by changing the selection. i.e max invoice date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;Sum({$&amp;lt;Fin_Prod={'NL'}, Fin_Prod_Description={'OI'}, Invoice_Date = {'31/07/10'}&amp;gt;} Sales_Amount)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Shumail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 20:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Date/m-p/188322#M503188</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2010-09-03T20:47:58Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Date/m-p/188323#M503189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({$&amp;lt;Fin_Prod={'NL'}, Fin_Prod_Description={'OI'},&lt;BR /&gt; Invoice_Date = {'$(=Max(Invoice_Date))'}&amp;gt;} Sales_Amount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Is Aug 31st the max date in your data set? If nothing is selected, then this will return for the max date in your data set. If there is a date selection, it will be the max date in that selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 21:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Date/m-p/188323#M503189</guid>
      <dc:creator />
      <dc:date>2010-09-03T21:02:57Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Date/m-p/188324#M503190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miller,&lt;/P&gt;&lt;P&gt;I tried the same code as above but it is not working. I want to tell u one more thing that the invoice_date is in numeric format i.e. 40421 = 31-aug-2010, 40390 = 31-jul-2010.. I am not understanding why the max function is not working here. Any Idea???&lt;/P&gt;&lt;P&gt;Shumail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Sep 2010 11:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Date/m-p/188324#M503190</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2010-09-04T11:52:45Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Date/m-p/188325#M503191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FirstSortedValue() might work for you here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Sep 2010 00:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Date/m-p/188325#M503191</guid>
      <dc:creator />
      <dc:date>2010-09-05T00:27:14Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Date/m-p/188326#M503192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try setting up a straight table chart with your expression, but don't give it a label. Then when the chart is rendered, your label will be the expression with the dollar sign expansion evaluated. This will tell you if your dollar sign expansion is returning a value that matches up with what your invoice date field needs (i.e. a numeric date).&lt;/P&gt;&lt;P&gt;Also, you could try hardcoding a date value into your set expression:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({$&amp;lt;Fin_Prod={'NL'}, Fin_Prod_Description={'OI'},&lt;BR /&gt; Invoice_Date = {40390}&amp;gt;} Sales_Amount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;Either of these actions will tell you if it is your Set Analysis or your dollar sign expansion that is the problem. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You should also try getting rid of the quotes inside the set modifier of the expression I gave. Since your values are numeric, you don't need the quotes and that could be the problem:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({$&amp;lt;Fin_Prod={'NL'}, Fin_Prod_Description={'OI'},&lt;BR /&gt; Invoice_Date = {$(=Max(Invoice_Date))}&amp;gt;} Sales_Amount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 19:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Date/m-p/188326#M503192</guid>
      <dc:creator />
      <dc:date>2010-09-07T19:22:23Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Date/m-p/188327#M503193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, you can try adding the function date to the number returned by the max expression, like this:&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Fin_Prod={'NL'}, Fin_Prod_Description={'OI'},&lt;BR /&gt; Invoice_Date = {'$(=date(Max(Invoice_Date)))'}&amp;gt;} Sales_Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 19:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Date/m-p/188327#M503193</guid>
      <dc:creator />
      <dc:date>2010-09-07T19:28:59Z</dc:date>
    </item>
  </channel>
</rss>

