<?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: Question about the record selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599418#M1100405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kitty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you can achieve your goal with this statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FinalTable:&lt;/P&gt;&lt;P&gt;LOAD ID, Max([date A]), Max([date B]&lt;/P&gt;&lt;P&gt;Resident OriginalTable&lt;/P&gt;&lt;P&gt;Where [date A] &amp;lt; [date B];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2014 09:22:13 GMT</pubDate>
    <dc:creator>pgrenier</dc:creator>
    <dc:date>2014-04-21T09:22:13Z</dc:date>
    <item>
      <title>Question about the record selection</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599416#M1100403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hi guys, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question which needs your help...I have a table below which contains date A and date B. I want to get my final table which only contains the closest A to B and A&amp;lt;B. How to achieve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original table:&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;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;date A&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;date B&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;12/31/2012&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/30/2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/31/2009&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/30/2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6/30/2010&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/30/2011&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;6/30/2011&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4/30/2010&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;5/31/2012&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4/30/2010&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;3/31/2008&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/31/2009&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;5/31/2010&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/31/2009&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;7/31/2012&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/31/2009&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final table:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; 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;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;date A&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;date B&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;6/30/2010&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/30/2011&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;3/31/2008&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/31/2009&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 09:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599416#M1100403</guid>
      <dc:creator />
      <dc:date>2014-04-21T09:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Question about the record selection</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599417#M1100404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you define close? Is it less than a year?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 09:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599417#M1100404</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-04-21T09:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Question about the record selection</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599418#M1100405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kitty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you can achieve your goal with this statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FinalTable:&lt;/P&gt;&lt;P&gt;LOAD ID, Max([date A]), Max([date B]&lt;/P&gt;&lt;P&gt;Resident OriginalTable&lt;/P&gt;&lt;P&gt;Where [date A] &amp;lt; [date B];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 09:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599418#M1100405</guid>
      <dc:creator>pgrenier</dc:creator>
      <dc:date>2014-04-21T09:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Question about the record selection</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599419#M1100406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By saying "close" I mean the latest date A where A&amp;lt;B, it's not have to be less than one year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 09:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599419#M1100406</guid>
      <dc:creator />
      <dc:date>2014-04-21T09:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Question about the record selection</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599420#M1100407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then use this expression&lt;/P&gt;&lt;P&gt;If(DtB - DtA&amp;gt;0 ,DtB - DtA)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 09:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599420#M1100407</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-04-21T09:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Question about the record selection</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599421#M1100408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain more in details about near values for date and what is mean for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;closest A to B and A&amp;lt;B&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 09:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599421#M1100408</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-21T09:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Question about the record selection</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599422#M1100409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Test2:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;ID, date A, date B &lt;BR /&gt;1, 12/31/2012, 9/30/2011 &lt;BR /&gt;1, 3/31/2009, 9/30/2011 &lt;BR /&gt;1, 6/30/2010, 9/30/2011 &lt;BR /&gt;2, 6/30/2011, 4/30/2010 &lt;BR /&gt;2, 5/31/2012, 4/30/2010 &lt;BR /&gt;3, 3/31/2008, 3/31/2009 &lt;BR /&gt;3, 5/31/2010, 3/31/2009 &lt;BR /&gt;3, 7/31/2012, 3/31/2009 &lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;FinalTable:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Test2&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[date A]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[date B]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;Drop&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Test2; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 09:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599422#M1100409</guid>
      <dc:creator />
      <dc:date>2014-04-21T09:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Question about the record selection</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599423#M1100410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;SCRIPT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;SET DateFormat='MM/DD/YYYY';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;DIRECTORY;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;source:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [date A] as A,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [date B] as B,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [date B] - [date A] as DIFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="114995" data-objecttype="1" href="http://community.qlik.com/thread/114995"&gt;http://community.qlik.com/thread/114995&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;(html, codepage is 1252, embedded labels, table is @1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Where [date B] - [date A] &amp;gt;= 365;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Resident source&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Where (Peek(ID) &amp;lt;&amp;gt; ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;order by ID, DIFF;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;DROP Table source;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/57630_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 09:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-the-record-selection/m-p/599423#M1100410</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-21T09:54:54Z</dc:date>
    </item>
  </channel>
</rss>

