<?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 List only last 3 dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-only-last-3-dates/m-p/955814#M645399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where I have to show only last 3 dates of a selected date. For example if I select today's date, the date of today, yesterday and the day before yesterday should be shown in the list box. I have tried using previous function but I am getting undesired results like for some dates when selected, I am getting the last 3 dates available in that field, but for some I am getting last 4 dates available. I am not sure why it is happening.&amp;nbsp; Please check the attachments for what I did until now and kindly let me know where I am doing wrong and what has to be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Fri, 18 Dec 2015 10:27:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-12-18T10:27:23Z</dc:date>
    <item>
      <title>List only last 3 dates</title>
      <link>https://community.qlik.com/t5/QlikView/List-only-last-3-dates/m-p/955814#M645399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where I have to show only last 3 dates of a selected date. For example if I select today's date, the date of today, yesterday and the day before yesterday should be shown in the list box. I have tried using previous function but I am getting undesired results like for some dates when selected, I am getting the last 3 dates available in that field, but for some I am getting last 4 dates available. I am not sure why it is happening.&amp;nbsp; Please check the attachments for what I did until now and kindly let me know where I am doing wrong and what has to be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Fri, 18 Dec 2015 10:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-only-last-3-dates/m-p/955814#M645399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-18T10:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: List only last 3 dates</title>
      <link>https://community.qlik.com/t5/QlikView/List-only-last-3-dates/m-p/955815#M645400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want to do meant that a calculated dimension needs to be created and those needs expressions with a condition wrapped in a aggr-function, for example something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; only({&amp;lt; %Date = {"&amp;gt;=$(=date(max(DateSpecial)-2, 'DD.MM.YYYY'))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;=$(=date(max(DateSpecial), 'DD.MM.YYYY'))"}&amp;gt;} %Date), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereby DateSpecial a special duplicated date-field in a data-island (loosen table) is then otherwise with only one date-field the selection and their reduced listbox-clone will be to affect eachother.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 11:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-only-last-3-dates/m-p/955815#M645400</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-12-18T11:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: List only last 3 dates</title>
      <link>https://community.qlik.com/t5/QlikView/List-only-last-3-dates/m-p/955816#M645401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uday,&lt;/P&gt;&lt;P&gt;I think, that is because of Country,In your example, Some of the Date value (Dt2), having equal date in both Country(UK and Germany) &lt;/P&gt;&lt;P&gt;But some of the&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Date(Dt2) values having the different date. (E.g 4/7/2015). See the below screen shot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109442_Capture.JPG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Not sure, But I think, you need Create the Composite Key for Country&amp;amp;Date, if you need Last 3 Date Values. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 13:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-only-last-3-dates/m-p/955816#M645401</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-12-18T13:30:40Z</dc:date>
    </item>
  </channel>
</rss>

