<?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: Last Sale Date As Per The Credit Note Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-Sale-Date-As-Per-The-Credit-Note-Date/m-p/1129426#M371358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is actually inside the FACT table. Qty we can change to Sales_Qty and Return_Qty and value will be Sales_Value and Return_Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that Fact will look like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="FACT.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128121_FACT.png" style="height: 131px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 12:30:44 GMT</pubDate>
    <dc:creator>ajithsachin</dc:creator>
    <dc:date>2016-06-16T12:30:44Z</dc:date>
    <item>
      <title>Last Sale Date As Per The Credit Note Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Sale-Date-As-Per-The-Credit-Note-Date/m-p/1129423#M371355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables, ie; Sales and credit note data. I need to make a report that should show credit note details of the item batch with when it sold last time.(Last sold date should be less than credit note date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below i am attaching my sample table structure with data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:-&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="382"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;InvNum&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="73"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Item&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Batch&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Qty&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="53"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01-04-2016&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;item1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;batch1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10-04-2016&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;item1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;batch1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;13-04-2016&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;item1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;batch1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Credit Note:-&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="107"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="107"&gt;CreditNoteNum&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Item&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Batch&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Qty&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03-04-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;item1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;batch1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;12-04-2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;item1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;batch1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15-04-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;item1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;batch1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my expected result table is something like this below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="325"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;Item&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Batch&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="109"&gt;CreditNote Date&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="88"&gt;Last SaleDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;item1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;batch1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;03-04-2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;01-04-2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;item1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;batch1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;12-04-2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;10-04-2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;item1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;batch1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;15-04-2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;13-04-2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help please..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 11:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Sale-Date-As-Per-The-Credit-Note-Date/m-p/1129423#M371355</guid>
      <dc:creator>ajithsachin</dc:creator>
      <dc:date>2016-06-16T11:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Last Sale Date As Per The Credit Note Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Sale-Date-As-Per-The-Credit-Note-Date/m-p/1129424#M371356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a date interval from your CreditNote dates:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2960"&gt;Creating a Date Interval from a Single Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use INTERVALMATCH LOAD prefix to link your credit notes to the sales dates, using Item and batch as keys:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3037"&gt;IntervalMatch&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 11:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Sale-Date-As-Per-The-Credit-Note-Date/m-p/1129424#M371356</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-16T11:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Last Sale Date As Per The Credit Note Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Sale-Date-As-Per-The-Credit-Note-Date/m-p/1129425#M371357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does Qty and Value also take a part in knowing how the two tables need to join together?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 12:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Sale-Date-As-Per-The-Credit-Note-Date/m-p/1129425#M371357</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-16T12:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Last Sale Date As Per The Credit Note Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Sale-Date-As-Per-The-Credit-Note-Date/m-p/1129426#M371358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is actually inside the FACT table. Qty we can change to Sales_Qty and Return_Qty and value will be Sales_Value and Return_Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that Fact will look like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="FACT.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128121_FACT.png" style="height: 131px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 12:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Sale-Date-As-Per-The-Credit-Note-Date/m-p/1129426#M371358</guid>
      <dc:creator>ajithsachin</dc:creator>
      <dc:date>2016-06-16T12:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Last Sale Date As Per The Credit Note Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Sale-Date-As-Per-The-Credit-Note-Date/m-p/1129427#M371359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So currently it looks like this? but you want them to be on the same line? Is that the goal?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 12:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Sale-Date-As-Per-The-Credit-Note-Date/m-p/1129427#M371359</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-16T12:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Last Sale Date As Per The Credit Note Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Sale-Date-As-Per-The-Credit-Note-Date/m-p/1129428#M371360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to show a report like same item same batch on which date credit note happened and in next column when was that batch sold last time.(max of sales date where sale date less than equal to credit note date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be something like this below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Result.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128122_Result.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 12:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Sale-Date-As-Per-The-Credit-Note-Date/m-p/1129428#M371360</guid>
      <dc:creator>ajithsachin</dc:creator>
      <dc:date>2016-06-16T12:36:50Z</dc:date>
    </item>
  </channel>
</rss>

