<?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 Search Max Date Sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Search-Max-Date-Sales/m-p/1099916#M628963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Recently i receive one solicitation, the solicitation is create a sales product no sales, and take the respective last date of sales, this mean, search in may database the max data of sale, product by product. Easy, just make a max(datasale) in SLQ and catch...Is not too simples, because a have group by in a all movement product table, of two year, this delay a lot. So i did this, i load all sales in qlikview and manage a column insed pivot table, make MAXSTRING(DateSale), ok...work it, but soon after a have catch de cost sales that product in the max datasale, and i not get, anyway, because a column Max(DateSales) in not a dimension.&lt;/P&gt;&lt;P&gt;How a make to get this.&lt;/P&gt;&lt;P&gt;sum(if(DataSale = Max(DataSales),CostSale))&amp;nbsp; ??&lt;/P&gt;&lt;P&gt;Sample below.&lt;/P&gt;&lt;P&gt;Sorry by my english!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2016 12:34:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-12T12:34:35Z</dc:date>
    <item>
      <title>Search Max Date Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Search-Max-Date-Sales/m-p/1099916#M628963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Recently i receive one solicitation, the solicitation is create a sales product no sales, and take the respective last date of sales, this mean, search in may database the max data of sale, product by product. Easy, just make a max(datasale) in SLQ and catch...Is not too simples, because a have group by in a all movement product table, of two year, this delay a lot. So i did this, i load all sales in qlikview and manage a column insed pivot table, make MAXSTRING(DateSale), ok...work it, but soon after a have catch de cost sales that product in the max datasale, and i not get, anyway, because a column Max(DateSales) in not a dimension.&lt;/P&gt;&lt;P&gt;How a make to get this.&lt;/P&gt;&lt;P&gt;sum(if(DataSale = Max(DataSales),CostSale))&amp;nbsp; ??&lt;/P&gt;&lt;P&gt;Sample below.&lt;/P&gt;&lt;P&gt;Sorry by my english!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 12:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-Max-Date-Sales/m-p/1099916#M628963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-12T12:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Search Max Date Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Search-Max-Date-Sales/m-p/1099917#M628964</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;STRONG&gt;FirstSortedValue(COSTSALES, -DATASALES)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134458_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 14:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-Max-Date-Sales/m-p/1099917#M628964</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-12T14:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Search Max Date Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Search-Max-Date-Sales/m-p/1099918#M628965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very good man ... thanks thanks .&lt;/P&gt;&lt;P&gt;I research about FirstSortedValue understad and how it work ... The next time i will make by myself&amp;nbsp; =D !&lt;/P&gt;&lt;P&gt;Thank you again ... !!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 14:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-Max-Date-Sales/m-p/1099918#M628965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-12T14:28:27Z</dc:date>
    </item>
  </channel>
</rss>

