<?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 Latest datapoint before specific date. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Latest-datapoint-before-specific-date/m-p/35504#M6025</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 have the following table where i have a lot of data structured like below.&lt;/P&gt;&lt;P&gt;I also have an input field where I specify a year and a month.&lt;/P&gt;&lt;P&gt;I need to be able to find the latest margin before the end of the specified date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the below selection i would like to get the margin 3,0%.&lt;/P&gt;&lt;P&gt;If I instead change the month to 10 i would like to get 3,1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have experimented with:&lt;/P&gt;&lt;P&gt;FirstSortedValue([SP Marginal], [Målkortsdatum], n)&lt;/P&gt;&lt;P&gt;But this only gives me the nth latest margin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 279px; height: 74px;"&gt;&lt;TBODY&gt;&lt;TR&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;&lt;STRONG&gt;Projectnumber&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;Margin&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2017-12-28&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3,2%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2017-11-23&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3,0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2017-09-15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3,1%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="49" style="border: 1px solid rgb(0, 0, 0); width: 139px; height: 44px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align:center;background-color:#6690BC;color:#ffffff;padding:2px;" valign="middle"&gt;&lt;STRONG&gt;Year&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;Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2017&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2018 15:31:08 GMT</pubDate>
    <dc:creator>patrickbender</dc:creator>
    <dc:date>2018-04-30T15:31:08Z</dc:date>
    <item>
      <title>Latest datapoint before specific date.</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-datapoint-before-specific-date/m-p/35504#M6025</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 have the following table where i have a lot of data structured like below.&lt;/P&gt;&lt;P&gt;I also have an input field where I specify a year and a month.&lt;/P&gt;&lt;P&gt;I need to be able to find the latest margin before the end of the specified date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the below selection i would like to get the margin 3,0%.&lt;/P&gt;&lt;P&gt;If I instead change the month to 10 i would like to get 3,1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have experimented with:&lt;/P&gt;&lt;P&gt;FirstSortedValue([SP Marginal], [Målkortsdatum], n)&lt;/P&gt;&lt;P&gt;But this only gives me the nth latest margin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 279px; height: 74px;"&gt;&lt;TBODY&gt;&lt;TR&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;&lt;STRONG&gt;Projectnumber&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;Margin&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2017-12-28&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3,2%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2017-11-23&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3,0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2017-09-15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3,1%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="49" style="border: 1px solid rgb(0, 0, 0); width: 139px; height: 44px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align:center;background-color:#6690BC;color:#ffffff;padding:2px;" valign="middle"&gt;&lt;STRONG&gt;Year&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;Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2017&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 15:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-datapoint-before-specific-date/m-p/35504#M6025</guid>
      <dc:creator>patrickbender</dc:creator>
      <dc:date>2018-04-30T15:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Latest datapoint before specific date.</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-datapoint-before-specific-date/m-p/35505#M6026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;min(aggr(&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;min({&amp;lt;date={"&amp;gt;=$(filterDate)"}&amp;gt;}date)=date,Margin),date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;attachment&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 18:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-datapoint-before-specific-date/m-p/35505#M6026</guid>
      <dc:creator>marcelviegas</dc:creator>
      <dc:date>2018-04-30T18:04:39Z</dc:date>
    </item>
  </channel>
</rss>

