<?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: Set analysis question about max function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672665#M244304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And another idea&lt;/P&gt;&lt;P&gt;You can have additional date-field (Transactions.TxnDateFltr) in your Transactions table which is equal to Transactions.TxnDate, but is not connected to calendar table and then you can use it like&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Transactions.TxnDate={$(=Max(Transactions.&lt;STRONG&gt;TxnDateFltr&lt;/STRONG&gt;))}&amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2014 01:57:09 GMT</pubDate>
    <dc:creator>SergeyMak</dc:creator>
    <dc:date>2014-06-13T01:57:09Z</dc:date>
    <item>
      <title>Set analysis question about max function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672658#M244297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I got one pivot table which looks like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2014-06-12 at 4.44.48 PM.png" class="jive-image" src="/legacyfs/online/60560_Screen Shot 2014-06-12 at 4.44.48 PM.png" style="width: 620px; height: 55px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last expression is defined as sum({&amp;lt;Transactions.TxnDate={$(=Max(Transactions.TxnDate))}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the question...&lt;/P&gt;&lt;P&gt;When i use max(Transactions.TxnDate) alone as a expression then it shows 1/1/2014 an fit is correct because i have one transaction on that day.&lt;/P&gt;&lt;P&gt;But when it is used in a set analysis then it gives me the last day of 1/31/2014....I expect it to return the same result whether it is used in set analysis or alone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a master calendar in this document so 1/31/2014 does exist in data model but there is no transaction on that day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help understand this behavior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 23:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672658#M244297</guid>
      <dc:creator />
      <dc:date>2014-06-12T23:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis question about max function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672659#M244298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can see in your table the second line with Max(Transactions.TxnDate)="1/31/2014"&lt;/P&gt;&lt;P&gt;When you use $-sign expansion you get the maximum for whole data set, which is in your app "1/31/2014"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 00:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672659#M244298</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-06-13T00:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis question about max function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672660#M244299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the column before last, there is Transaction.TxnDate 1/31/2014.&amp;nbsp; Set analysis evaluates the whole data set, in this case selected data, not per table row, hence you get this result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 00:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672660#M244299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-13T00:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis question about max function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672661#M244300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it&amp;nbsp; mean that set analysis does not respect chart dimensions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 01:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672661#M244300</guid>
      <dc:creator />
      <dc:date>2014-06-13T01:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis question about max function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672662#M244301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not set analysis, but $() - $sign expansion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 01:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672662#M244301</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-06-13T01:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis question about max function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672663#M244302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so what should be set analysis?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;Transactions.TxnDate={(Max(Transactions.TxnDate))}&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This gives 0 output.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 01:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672663#M244302</guid>
      <dc:creator />
      <dc:date>2014-06-13T01:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis question about max function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672664#M244303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are trying to get the value of last day when you had sales&lt;/P&gt;&lt;P&gt;try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Transactions.TxnDate={$(='"' &amp;amp; Date(MAX({$&amp;lt;Transactions.TxnDate=p({$&amp;lt;Amount={"&amp;gt;0"}&amp;gt;})&amp;gt;}Transactions.TxnDate)) &amp;amp; '"')}&amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 01:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672664#M244303</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-06-13T01:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis question about max function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672665#M244304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And another idea&lt;/P&gt;&lt;P&gt;You can have additional date-field (Transactions.TxnDateFltr) in your Transactions table which is equal to Transactions.TxnDate, but is not connected to calendar table and then you can use it like&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Transactions.TxnDate={$(=Max(Transactions.&lt;STRONG&gt;TxnDateFltr&lt;/STRONG&gt;))}&amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 01:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672665#M244304</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-06-13T01:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis question about max function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672666#M244305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please let me know little bit about the usage of &amp;amp; operator here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 13:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672666#M244305</guid>
      <dc:creator />
      <dc:date>2014-06-13T13:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis question about max function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672667#M244306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used &amp;amp; for string&amp;nbsp; concatenation because I needed "Date". So I concatenated&lt;/P&gt;&lt;P&gt;quotes and date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 03:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question-about-max-function/m-p/672667#M244306</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-06-16T03:20:14Z</dc:date>
    </item>
  </channel>
</rss>

