<?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: Max(date) in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-date-in-set-analysis/m-p/1318883#M615701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil ! thanks for the reply ! I tried the expression that you give, but is not displaying any value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cap.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167466_cap.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 13:15:36 GMT</pubDate>
    <dc:creator>axnvazquez</dc:creator>
    <dc:date>2017-06-20T13:15:36Z</dc:date>
    <item>
      <title>Max(date) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-date-in-set-analysis/m-p/1318880#M615698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone ! I need help with this issue, because i had dates for each costumer sale, but in my table I need to get the sale of the last sale - max(date)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167371_Captura.PNG" style="height: 188px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the function wich calculates the price for the las sale :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt; _PITR_TYMTD={1}&amp;nbsp; , Origen_Dato={'Real'}, Mes=, Año=&amp;gt;} DCVC_TOTR_LOC_SIMP) / &lt;/P&gt;&lt;P&gt;Sum({$&amp;lt; _PITR_TYMTD={1}&amp;nbsp; , Origen_Dato={'Real'} ,Mes= , Año=&amp;gt;} DCVC_PESO)/20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need to set the last date, so i made the variable UltimaFecha =MAX({$&amp;lt;DCVC_TOTR_LOC_SIMP = {"&amp;gt;=0"}, Mes=,Año=&amp;gt; } [%FECHA])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i tried so many ways to set that date in the set analysis for the sum, but i cant display it .&lt;/P&gt;&lt;P&gt;I tried month, year, etc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be so helpfull !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 01:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-date-in-set-analysis/m-p/1318880#M615698</guid>
      <dc:creator>axnvazquez</dc:creator>
      <dc:date>2017-06-20T01:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Max(date) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-date-in-set-analysis/m-p/1318881#M615699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use like below. Don't worry about Errors due to this is bug. May be next version they may released&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$&amp;lt; _PITR_TYMTD={1}&amp;nbsp; , &lt;STRONG&gt;$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;UltimaFecha&lt;/SPAN&gt;),&lt;/STRONG&gt; Origen_Dato={'Real'}, Mes=, Año=&amp;gt;} DCVC_TOTR_LOC_SIMP) /&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt; _PITR_TYMTD={1}&amp;nbsp; , &lt;STRONG&gt;$(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;UltimaFecha), &lt;/STRONG&gt;&lt;/SPAN&gt;Origen_Dato={'Real'} ,Mes= , Año=&amp;gt;} DCVC_PESO)/20&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 06:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-date-in-set-analysis/m-p/1318881#M615699</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-20T06:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Max(date) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-date-in-set-analysis/m-p/1318882#M615700</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;I have assumed date format "MM/DD/YYYY".&amp;nbsp; Please give actual date format if field &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[%FECHA]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$&amp;lt; _PITR_TYMTD={1}&amp;nbsp; , Origen_Dato={'Real'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;[%FECHA]={"$(=date(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MAX({$&amp;lt;DCVC_TOTR_LOC_SIMP = {"&amp;gt;=0"}, Mes=,Año=&amp;gt; } [%FECHA]),'MM/DD/YYYY'&lt;/SPAN&gt;))"},&lt;/STRONG&gt;&lt;/SPAN&gt; Mes=, Año=&amp;gt;} DCVC_TOTR_LOC_SIMP) /&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt; _PITR_TYMTD={1}&amp;nbsp; , Origen_Dato={'Real'} ,&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[%FECHA]={"$(=date(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MAX({$&amp;lt;DCVC_TOTR_LOC_SIMP = {"&amp;gt;=0"}, Mes=,Año=&amp;gt; } [%FECHA]),'MM/DD/YYYY'&lt;/SPAN&gt;))"},&lt;/STRONG&gt;Mes= , Año=&amp;gt;} DCVC_PESO)/20&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 07:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-date-in-set-analysis/m-p/1318882#M615700</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-06-20T07:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Max(date) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-date-in-set-analysis/m-p/1318883#M615701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil ! thanks for the reply ! I tried the expression that you give, but is not displaying any value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cap.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167466_cap.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 13:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-date-in-set-analysis/m-p/1318883#M615701</guid>
      <dc:creator>axnvazquez</dc:creator>
      <dc:date>2017-06-20T13:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Max(date) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-date-in-set-analysis/m-p/1318884#M615702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will you available to provide QVF file to check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 15:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-date-in-set-analysis/m-p/1318884#M615702</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-20T15:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Max(date) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-date-in-set-analysis/m-p/1318885#M615703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil, I can't provide de QVF file, sory &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; i am not allowed to do that .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to do something like this &lt;/P&gt;&lt;P&gt;sum({$&amp;lt; _PITR_TYMTD={1}&amp;nbsp; , [%FECHA]={$(=UltimaFecha)}&amp;gt;}, Origen_Dato={'Real'}, Mes=, Año=&amp;gt;} DCVC_TOTR_LOC_SIMP) /&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt; _PITR_TYMTD={1}&amp;nbsp; ,[%FECHA]={$(=UltimaFecha)}&amp;gt;}, Origen_Dato={'Real'} ,Mes= , Año=&amp;gt;} DCVC_PESO)/20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 14:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-date-in-set-analysis/m-p/1318885#M615703</guid>
      <dc:creator>axnvazquez</dc:creator>
      <dc:date>2017-06-21T14:06:20Z</dc:date>
    </item>
  </channel>
</rss>

