<?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 Joining 3 data tables up - finding only values attributed to Max Date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Joining-3-data-tables-up-finding-only-values-attributed-to-Max/m-p/1609415#M45262</link>
    <description>&lt;P&gt;I've got 2 tables joined up no problem but joining the 3rd is where my issue is.&lt;/P&gt;&lt;P&gt;For context the join key isn't the problem, it's the data accompanying it that I'm trying to join (using left or right joins)&amp;nbsp; correctly. I want to only have one value from both ref number and date assigned to each unique join key.&lt;/P&gt;&lt;P&gt;Each join key can have duplicates (see below) however the ref number and date will be unique. I'm wanting to pull through the ref number assigned to the Max Date (from Date OP column) - i.e. the data in bold below, and ignore the other data (so ignoring the other 2 rows below).&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Join Key&lt;/TD&gt;&lt;TD&gt;Ref Number&lt;/TD&gt;&lt;TD&gt;Date OP&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11002&lt;/TD&gt;&lt;TD&gt;6200090039&lt;/TD&gt;&lt;TD&gt;23 Sep 2019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;11002&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;6200090036&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;04 Oct 2019&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11002&lt;/TD&gt;&lt;TD&gt;6200090035&lt;/TD&gt;&lt;TD&gt;16 Jul 2019&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried&lt;/P&gt;&lt;P&gt;Right Join (X_INITIAL)&lt;BR /&gt;LOAD [Join Key],&lt;BR /&gt;Max("Date OP") as Max_OP&lt;BR /&gt;RESIDENT X_INITIAL&lt;BR /&gt;Group By [Join Key];&lt;/P&gt;&lt;P&gt;But this doesn't pull through what i'm wanting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2019 13:46:51 GMT</pubDate>
    <dc:creator>RWilliams92</dc:creator>
    <dc:date>2019-08-05T13:46:51Z</dc:date>
    <item>
      <title>Joining 3 data tables up - finding only values attributed to Max Date</title>
      <link>https://community.qlik.com/t5/App-Development/Joining-3-data-tables-up-finding-only-values-attributed-to-Max/m-p/1609415#M45262</link>
      <description>&lt;P&gt;I've got 2 tables joined up no problem but joining the 3rd is where my issue is.&lt;/P&gt;&lt;P&gt;For context the join key isn't the problem, it's the data accompanying it that I'm trying to join (using left or right joins)&amp;nbsp; correctly. I want to only have one value from both ref number and date assigned to each unique join key.&lt;/P&gt;&lt;P&gt;Each join key can have duplicates (see below) however the ref number and date will be unique. I'm wanting to pull through the ref number assigned to the Max Date (from Date OP column) - i.e. the data in bold below, and ignore the other data (so ignoring the other 2 rows below).&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Join Key&lt;/TD&gt;&lt;TD&gt;Ref Number&lt;/TD&gt;&lt;TD&gt;Date OP&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11002&lt;/TD&gt;&lt;TD&gt;6200090039&lt;/TD&gt;&lt;TD&gt;23 Sep 2019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;11002&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;6200090036&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;04 Oct 2019&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11002&lt;/TD&gt;&lt;TD&gt;6200090035&lt;/TD&gt;&lt;TD&gt;16 Jul 2019&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried&lt;/P&gt;&lt;P&gt;Right Join (X_INITIAL)&lt;BR /&gt;LOAD [Join Key],&lt;BR /&gt;Max("Date OP") as Max_OP&lt;BR /&gt;RESIDENT X_INITIAL&lt;BR /&gt;Group By [Join Key];&lt;/P&gt;&lt;P&gt;But this doesn't pull through what i'm wanting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 13:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Joining-3-data-tables-up-finding-only-values-attributed-to-Max/m-p/1609415#M45262</guid>
      <dc:creator>RWilliams92</dc:creator>
      <dc:date>2019-08-05T13:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Joining 3 data tables up - finding only values attributed to Max Date</title>
      <link>https://community.qlik.com/t5/App-Development/Joining-3-data-tables-up-finding-only-values-attributed-to-Max/m-p/1609426#M45264</link>
      <description>&lt;P&gt;I'm assuming that having loaded your table you're only wanting to keep the record with the max Date OP.&lt;/P&gt;&lt;P&gt;In which case the below code should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right Join (X_INITIAL)&lt;BR /&gt;LOAD [Join Key],&lt;BR /&gt;Max("Date OP") as &lt;STRONG&gt;[Date OP]&lt;/STRONG&gt;&lt;BR /&gt;RESIDENT X_INITIAL&lt;BR /&gt;Group By [Join Key];&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 14:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Joining-3-data-tables-up-finding-only-values-attributed-to-Max/m-p/1609426#M45264</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2019-08-05T14:05:20Z</dc:date>
    </item>
  </channel>
</rss>

