<?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 Selecting only the last record from database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-only-the-last-record-from-database/m-p/255174#M96548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls Check Following logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Load&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(Date) as Date,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Qty) as Qty&lt;/P&gt;&lt;P&gt;from XYZ Group By ItemNo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2011 06:12:19 GMT</pubDate>
    <dc:creator>suniljain</dc:creator>
    <dc:date>2011-10-18T06:12:19Z</dc:date>
    <item>
      <title>Selecting only the last record from database</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-only-the-last-record-from-database/m-p/255173#M96547</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;Suppose I have the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD height="19" style="width: 48pt; height: 14.4pt;" width="64"&gt;ITEMNO&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;DATE&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;QTY&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD height="19" style="height: 14.4pt;"&gt;001&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;10/10/11&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD height="19" style="height: 14.4pt;"&gt;001&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;11/10/11&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD height="19" style="height: 14.4pt;"&gt;001&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;12/10/11&lt;/TD&gt;&lt;TD align="right"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD height="19" style="height: 14.4pt;"&gt;001&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;13/10/11&lt;/TD&gt;&lt;TD align="right"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD class="xl64" height="19" style="height: 14.4pt;"&gt;001&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;14/10/11&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD height="19" style="height: 14.4pt;"&gt;002&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;12/10/11&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD height="19" style="height: 14.4pt;"&gt;002&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;13/10/11&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD class="xl64" height="19" style="height: 14.4pt;"&gt;002&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;14/10/11&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD height="19" style="height: 14.4pt;"&gt;003&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;14/10/11&lt;/TD&gt;&lt;TD align="right"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD class="xl64" height="19" style="height: 14.4pt;"&gt;003&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;14/10/11&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I select only the last transactions for each ITEMNO? Below should be the selected rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD class="xl64" height="19" style="height: 14.4pt;"&gt;001&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;14/10/11&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD class="xl64" height="19" style="height: 14.4pt;"&gt;002&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;14/10/11&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD class="xl64" height="19" style="height: 14.4pt;"&gt;003&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;14/10/11&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 06:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-only-the-last-record-from-database/m-p/255173#M96547</guid>
      <dc:creator />
      <dc:date>2011-10-18T06:04:41Z</dc:date>
    </item>
    <item>
      <title>Selecting only the last record from database</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-only-the-last-record-from-database/m-p/255174#M96548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls Check Following logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Load&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(Date) as Date,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Qty) as Qty&lt;/P&gt;&lt;P&gt;from XYZ Group By ItemNo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 06:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-only-the-last-record-from-database/m-p/255174#M96548</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2011-10-18T06:12:19Z</dc:date>
    </item>
    <item>
      <title>Selecting only the last record from database</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-only-the-last-record-from-database/m-p/255175#M96549</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 am also having a same kind of problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables One is having Month wise Net sales (LCY) and second table contains the month wise exchange rates. Now I want the third table contains the Net Sales figure / Month's exchange rate (say 10000 / 68.84027).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upto this I don't have any problem, but when current month's excahnge rate is missing then I want my current month's Sales data should get treatment with the last month's exchange rate or last record of the exchange rate table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Net Sales]&amp;nbsp; / ﻿﻿IF ([Year-Month] = '2012-01' , [Exchange Rate], &lt;STRONG&gt;if([Year-Month] = '2011-12', [Exchange Rate] ,0)&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case IF condition which is in BOLD is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 05:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-only-the-last-record-from-database/m-p/255175#M96549</guid>
      <dc:creator />
      <dc:date>2012-01-21T05:06:16Z</dc:date>
    </item>
  </channel>
</rss>

