<?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: How to return a specific value based on the latest date of record in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-return-a-specific-value-based-on-the-latest-date-of/m-p/63769#M4192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's better to avoid complicated calculations on the front-end. The output of this script will be able to show the data you need. Just make sure there's no different multiple entries for the same data and the same department.&lt;/P&gt;&lt;P&gt;Then use "only([Product Name])" as a measure for KPI object.&lt;/P&gt;&lt;P&gt;Tomasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2018 10:03:25 GMT</pubDate>
    <dc:creator>tomasz_tru</dc:creator>
    <dc:date>2018-04-24T10:03:25Z</dc:date>
    <item>
      <title>How to return a specific value based on the latest date of record</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-return-a-specific-value-based-on-the-latest-date-of/m-p/63766#M4189</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 a table with many lines and columns, &lt;/P&gt;&lt;P&gt;One of the columns is “date of entry”&amp;nbsp; another Column “Production Department” and another one is “Product Name”&lt;/P&gt;&lt;P&gt;How can I return latest entry (latest “date of entry” ) for „Product Name“ based on the “Production Deprtment”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none; padding: 0 5.4pt 0 5.4pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;date of entry&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;Production Department&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;Product Name&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;18.04.2018&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;MF1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;A&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;18.04.2018&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;MF2&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;A&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;18.04.2018&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;MF3&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;B&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;19.04.2018&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;MF1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;C&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;19.04.2018&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;MF2&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;D&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;19.04.2018&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;MF3&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;B&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;19.04.2018&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;MF4&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="267"&gt;&lt;P&gt;E&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;e.g.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;IF I chose MF1 I need to see product C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 12:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-return-a-specific-value-based-on-the-latest-date-of/m-p/63766#M4189</guid>
      <dc:creator>vsevolozhskiy</dc:creator>
      <dc:date>2018-04-19T12:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a specific value based on the latest date of record</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-return-a-specific-value-based-on-the-latest-date-of/m-p/63767#M4190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;"date of entry" "Production Department" "Product Name"&lt;/P&gt;&lt;P&gt;18.04.2018 MF1 A&lt;/P&gt;&lt;P&gt;18.04.2018 MF2 A&lt;/P&gt;&lt;P&gt;18.04.2018 MF3 B&lt;/P&gt;&lt;P&gt;19.04.2018 MF1 C&lt;/P&gt;&lt;P&gt;19.04.2018 MF2 D&lt;/P&gt;&lt;P&gt;19.04.2018 MF3 B&lt;/P&gt;&lt;P&gt;19.04.2018 MF4 E&lt;/P&gt;&lt;P&gt;](delimiter is '\t');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//filter&lt;/P&gt;&lt;P&gt;RIGHT JOIN (input)&lt;/P&gt;&lt;P&gt;LOAD "Production Department", MAX("date of entry") AS "date of entry" RESIDENT input&lt;/P&gt;&lt;P&gt;GROUP BY "Production Department";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 14:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-return-a-specific-value-based-on-the-latest-date-of/m-p/63767#M4190</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2018-04-19T14:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a specific value based on the latest date of record</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-return-a-specific-value-based-on-the-latest-date-of/m-p/63768#M4191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomasz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for a fast response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I understood you correctly you suggest to use load manger, yes?&lt;/P&gt;&lt;P&gt;It is possible to do as KPI Chart object?&lt;/P&gt;&lt;P&gt;So I choose MF1 in a Filter object and KPI Chart object shows “Product name C”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Many thanks in advance!&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sergey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 10:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-return-a-specific-value-based-on-the-latest-date-of/m-p/63768#M4191</guid>
      <dc:creator>vsevolozhskiy</dc:creator>
      <dc:date>2018-04-20T10:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a specific value based on the latest date of record</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-return-a-specific-value-based-on-the-latest-date-of/m-p/63769#M4192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's better to avoid complicated calculations on the front-end. The output of this script will be able to show the data you need. Just make sure there's no different multiple entries for the same data and the same department.&lt;/P&gt;&lt;P&gt;Then use "only([Product Name])" as a measure for KPI object.&lt;/P&gt;&lt;P&gt;Tomasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 10:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-return-a-specific-value-based-on-the-latest-date-of/m-p/63769#M4192</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2018-04-24T10:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a specific value based on the latest date of record</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-return-a-specific-value-based-on-the-latest-date-of/m-p/63770#M4193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But if you insist on formula, try sth like this: &lt;/P&gt;&lt;P&gt;FirstSortedValue([Product Name],-[date of entry])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 10:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-return-a-specific-value-based-on-the-latest-date-of/m-p/63770#M4193</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2018-04-24T10:21:34Z</dc:date>
    </item>
  </channel>
</rss>

