<?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 Selecting the Max date for every field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Selecting-the-Max-date-for-every-field/m-p/1777847#M64293</link>
    <description>&lt;P&gt;Hello everyone, I need some help with my syntax, Im just not able to figure it out.&lt;/P&gt;&lt;P&gt;Im using a table from the Charts widgets.&amp;nbsp; Im adding each dimension but need to add one measurement based on the latest date for each field&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can explain it better like this: I have two tables&lt;/P&gt;&lt;P&gt;T1&lt;/P&gt;&lt;P&gt;+-------------+------------+--------+&lt;BR /&gt;| Customer | Invoices | Paid? |&lt;BR /&gt;+-------------+------------+--------+&lt;BR /&gt;| Adidas&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;352&amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; Yes&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Nike&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; 198&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; Yes&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Puma&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 58&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp;No&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Nissan&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;672&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; Yes&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Toyota&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp;No&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Coca Cola |&amp;nbsp; &amp;nbsp; &amp;nbsp; 817&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp;Yes&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Ford&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; 531&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; No&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Walmart&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp;216&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp;No&amp;nbsp; &amp;nbsp; |&lt;BR /&gt;| Kellogs&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp;392&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp;Yes&amp;nbsp; &amp;nbsp; |&lt;BR /&gt;+--------------+-----------+---------+&lt;/P&gt;&lt;P&gt;T2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;+-----------+----------+&lt;BR /&gt;| Customer | Payment Date |&lt;BR /&gt;+-----------+----------+&lt;BR /&gt;| Adidas | 21-09-20 |&lt;BR /&gt;| Nike | 05-11-19 |&lt;BR /&gt;| Puma | 17-01-20 |&lt;BR /&gt;| Nissan | 28-02-19 |&lt;BR /&gt;| Toyota | 18-01-21 |&lt;BR /&gt;| Coca Cola | 25-06-18 |&lt;BR /&gt;| Ford | 30-04-20 |&lt;BR /&gt;| Walmart | 31-12-20 |&lt;BR /&gt;| Kellogs | 03-03-19 |&lt;BR /&gt;| Adidas | 12-07-20 |&lt;BR /&gt;| Nike | 15-06-20 |&lt;BR /&gt;| Puma | 27-04-20 |&lt;BR /&gt;| Nissan | 03-12-19 |&lt;BR /&gt;| Toyota | 15-08-20 |&lt;BR /&gt;| Coca Cola | 18-02-20 |&lt;BR /&gt;| Ford | 01-08-19 |&lt;BR /&gt;| Walmart | 15-06-19 |&lt;BR /&gt;| Kellogs | 09-21-20 |&lt;BR /&gt;+-----------+----------+&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the outcome I'm looking for is to show just one row per customer based on the latest date from the second table. Each customer has different payment dates and each customer has different most recent payment dates, I just want to display the latest ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the outcome should be something like :&lt;/P&gt;&lt;P&gt;+-------------+-----------+------+--------------+&lt;BR /&gt;| Customer | Invoices | Paid | Payment Date |&lt;BR /&gt;+-------------+-----------+------+--------------+&lt;BR /&gt;| Adidas&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;352 |&amp;nbsp; &amp;nbsp; Yes | 21-09-20 |&lt;BR /&gt;| Nike&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;198 |&amp;nbsp; &amp;nbsp; Yes | 15-06-20 |&lt;BR /&gt;| Puma&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 58 |&amp;nbsp; &amp;nbsp; No | 27-04-20 |&lt;BR /&gt;+-------------+------------+------+--------------+&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;only one line per customer and Payment Date column only displays the latest one&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im kind of new in this, and I would appreciate if I can be given an expression to insert into my Analysis page, (table chart widget) as Im not too good with the data load editor&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:44:39 GMT</pubDate>
    <dc:creator>igalindo</dc:creator>
    <dc:date>2024-11-16T00:44:39Z</dc:date>
    <item>
      <title>Selecting the Max date for every field</title>
      <link>https://community.qlik.com/t5/App-Development/Selecting-the-Max-date-for-every-field/m-p/1777847#M64293</link>
      <description>&lt;P&gt;Hello everyone, I need some help with my syntax, Im just not able to figure it out.&lt;/P&gt;&lt;P&gt;Im using a table from the Charts widgets.&amp;nbsp; Im adding each dimension but need to add one measurement based on the latest date for each field&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can explain it better like this: I have two tables&lt;/P&gt;&lt;P&gt;T1&lt;/P&gt;&lt;P&gt;+-------------+------------+--------+&lt;BR /&gt;| Customer | Invoices | Paid? |&lt;BR /&gt;+-------------+------------+--------+&lt;BR /&gt;| Adidas&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;352&amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; Yes&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Nike&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; 198&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; Yes&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Puma&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 58&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp;No&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Nissan&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;672&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; Yes&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Toyota&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp;No&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Coca Cola |&amp;nbsp; &amp;nbsp; &amp;nbsp; 817&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp;Yes&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Ford&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; 531&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; No&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;| Walmart&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp;216&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp;No&amp;nbsp; &amp;nbsp; |&lt;BR /&gt;| Kellogs&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp;392&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp;Yes&amp;nbsp; &amp;nbsp; |&lt;BR /&gt;+--------------+-----------+---------+&lt;/P&gt;&lt;P&gt;T2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;+-----------+----------+&lt;BR /&gt;| Customer | Payment Date |&lt;BR /&gt;+-----------+----------+&lt;BR /&gt;| Adidas | 21-09-20 |&lt;BR /&gt;| Nike | 05-11-19 |&lt;BR /&gt;| Puma | 17-01-20 |&lt;BR /&gt;| Nissan | 28-02-19 |&lt;BR /&gt;| Toyota | 18-01-21 |&lt;BR /&gt;| Coca Cola | 25-06-18 |&lt;BR /&gt;| Ford | 30-04-20 |&lt;BR /&gt;| Walmart | 31-12-20 |&lt;BR /&gt;| Kellogs | 03-03-19 |&lt;BR /&gt;| Adidas | 12-07-20 |&lt;BR /&gt;| Nike | 15-06-20 |&lt;BR /&gt;| Puma | 27-04-20 |&lt;BR /&gt;| Nissan | 03-12-19 |&lt;BR /&gt;| Toyota | 15-08-20 |&lt;BR /&gt;| Coca Cola | 18-02-20 |&lt;BR /&gt;| Ford | 01-08-19 |&lt;BR /&gt;| Walmart | 15-06-19 |&lt;BR /&gt;| Kellogs | 09-21-20 |&lt;BR /&gt;+-----------+----------+&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the outcome I'm looking for is to show just one row per customer based on the latest date from the second table. Each customer has different payment dates and each customer has different most recent payment dates, I just want to display the latest ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the outcome should be something like :&lt;/P&gt;&lt;P&gt;+-------------+-----------+------+--------------+&lt;BR /&gt;| Customer | Invoices | Paid | Payment Date |&lt;BR /&gt;+-------------+-----------+------+--------------+&lt;BR /&gt;| Adidas&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;352 |&amp;nbsp; &amp;nbsp; Yes | 21-09-20 |&lt;BR /&gt;| Nike&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;198 |&amp;nbsp; &amp;nbsp; Yes | 15-06-20 |&lt;BR /&gt;| Puma&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 58 |&amp;nbsp; &amp;nbsp; No | 27-04-20 |&lt;BR /&gt;+-------------+------------+------+--------------+&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;only one line per customer and Payment Date column only displays the latest one&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im kind of new in this, and I would appreciate if I can be given an expression to insert into my Analysis page, (table chart widget) as Im not too good with the data load editor&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selecting-the-Max-date-for-every-field/m-p/1777847#M64293</guid>
      <dc:creator>igalindo</dc:creator>
      <dc:date>2024-11-16T00:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the Max date for every field</title>
      <link>https://community.qlik.com/t5/App-Development/Selecting-the-Max-date-for-every-field/m-p/1777930#M64294</link>
      <description>MapMaxDate:&lt;BR /&gt;&lt;BR /&gt;Mapping Load Customer,&lt;BR /&gt;MaxPaymentDate&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;Load Customer,&lt;BR /&gt;max(Date(Date#(Payment_Date,'DD-MM-YY'),'DD-MM-YY')) as MaxPaymentDate&lt;BR /&gt;&lt;BR /&gt;group by Customer;&lt;BR /&gt;&lt;BR /&gt;Load Customer,&lt;BR /&gt;Payment_Date&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Inline [&lt;BR /&gt;&lt;BR /&gt;Customer , Payment_Date&lt;BR /&gt;&lt;BR /&gt;Adidas , 21-09-20&lt;BR /&gt;Nike , 05-11-19&lt;BR /&gt;Puma , 17-01-20&lt;BR /&gt;Nissan , 28-02-19&lt;BR /&gt;Toyota , 18-01-21&lt;BR /&gt;Coca Cola , 25-06-18&lt;BR /&gt;Ford , 30-04-20&lt;BR /&gt;Walmart , 31-12-20&lt;BR /&gt;Kellogs , 03-03-19&lt;BR /&gt;Adidas , 12-07-20&lt;BR /&gt;Nike , 15-06-20&lt;BR /&gt;Puma , 27-04-20&lt;BR /&gt;Nissan , 03-12-19&lt;BR /&gt;Toyota , 15-08-20&lt;BR /&gt;Coca Cola , 18-02-20&lt;BR /&gt;Ford , 01-08-19&lt;BR /&gt;Walmart , 15-06-19&lt;BR /&gt;Kellogs , 09-21-20&lt;BR /&gt;&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;T2:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Load * ,&lt;BR /&gt;ApplyMap('MapMaxDate',Customer,null()) as MaxDate&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Inline [&lt;BR /&gt;&lt;BR /&gt;Customer , Invoices , Paid?&lt;BR /&gt;&lt;BR /&gt;Adidas , 352 , Yes&lt;BR /&gt;Nike , 198 , Yes&lt;BR /&gt;Puma , 58 , No&lt;BR /&gt;Nissan , 672 , Yes&lt;BR /&gt;Toyota , 103 , No&lt;BR /&gt;Coca Cola , 817 , Yes&lt;BR /&gt;Ford , 531 , No&lt;BR /&gt;Walmart , 216 , No&lt;BR /&gt;Kellogs , 392 , Yes ];&lt;BR /&gt;&lt;BR /&gt;Hope this Helps!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Priyanka</description>
      <pubDate>Thu, 28 Jan 2021 02:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selecting-the-Max-date-for-every-field/m-p/1777930#M64294</guid>
      <dc:creator>PriyankaShivhare</dc:creator>
      <dc:date>2021-01-28T02:55:35Z</dc:date>
    </item>
  </channel>
</rss>

