<?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 filter latest data from table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1638417#M731859</link>
    <description>&lt;P&gt;I see.&lt;/P&gt;&lt;P&gt;Then in that case use FirstSortedValue to bring back the data you want. it's a bit heavier on calculation resources, but will work dynamically.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2019 14:29:16 GMT</pubDate>
    <dc:creator>MarkWillems</dc:creator>
    <dc:date>2019-10-22T14:29:16Z</dc:date>
    <item>
      <title>How to filter latest data from table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1638080#M731855</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I have a table with three fields: ID, Title, LastUpdated. This table is like Title auditing table, so for each ID, I keep track the title changes and when the change is made. some sample data look like below:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Title&lt;/TD&gt;&lt;TD&gt;LastUpdated&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;CRD Report&lt;/TD&gt;&lt;TD&gt;1/31/2019 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;MRD Report&lt;/TD&gt;&lt;TD&gt;12/31/2018 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Inventory Report&lt;/TD&gt;&lt;TD&gt;2/28/2019 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Inventory Report New&lt;/TD&gt;&lt;TD&gt;3/31/2019 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;FX Report&lt;/TD&gt;&lt;TD&gt;6/30/2019 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;Report New&lt;/TD&gt;&lt;TD&gt;3/31/2019 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;Inventory Report New&lt;/TD&gt;&lt;TD&gt;5/31/2019 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;New Portfolio&lt;/TD&gt;&lt;TD&gt;6/30/2019 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the latest Title for each ID, however, I need the Title to be a dimension because I want to have a dropdown on the header of the Title field, also I'll add more expressions fields in the future. How can I do this?&lt;/P&gt;&lt;P&gt;For example, for above data, the result I want is,&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Title&lt;/TD&gt;&lt;TD&gt;LastUpdated&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;MRD Report&lt;/TD&gt;&lt;TD&gt;12/31/2018 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Inventory Report New&lt;/TD&gt;&lt;TD&gt;3/31/2019 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;FX Report&lt;/TD&gt;&lt;TD&gt;6/30/2019 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;New Portfolio&lt;/TD&gt;&lt;TD&gt;6/30/2019 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;qvw attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1638080#M731855</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter latest data from table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1638081#M731856</link>
      <description>&lt;P&gt;correction: the result table should look like below: (sorry I don't know how to edit my post..)&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Title&lt;/TD&gt;&lt;TD&gt;LastUpdated&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;CRD Report&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;1/31/2019 16:30&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Inventory Report New&lt;/TD&gt;&lt;TD&gt;3/31/2019 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;FX Report&lt;/TD&gt;&lt;TD&gt;6/30/2019 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;New Portfolio&lt;/TD&gt;&lt;TD&gt;6/30/2019 16:30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 21 Oct 2019 22:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1638081#M731856</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2019-10-21T22:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter latest data from table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1638363#M731857</link>
      <description>&lt;P&gt;LEFT JOIN (TableName)&lt;/P&gt;&lt;P&gt;LOAD ID,Max(LastUpdated) as LastUpdated, Max(1) as LatestRec&lt;/P&gt;&lt;P&gt;RESIDENT TableName&lt;/P&gt;&lt;P&gt;Group BY ID;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use LatestRec=1 in your set analysis to only get the latest record.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 13:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1638363#M731857</guid>
      <dc:creator>MarkWillems</dc:creator>
      <dc:date>2019-10-22T13:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter latest data from table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1638370#M731858</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;thanks for your solution. However, I need the result set to be dynamic, meaning I have a calendar object and a vDate variable this is bound to the calendar, so user can change the date to get the latest Titles by the date chosen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 13:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1638370#M731858</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2019-10-22T13:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter latest data from table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1638417#M731859</link>
      <description>&lt;P&gt;I see.&lt;/P&gt;&lt;P&gt;Then in that case use FirstSortedValue to bring back the data you want. it's a bit heavier on calculation resources, but will work dynamically.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 14:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1638417#M731859</guid>
      <dc:creator>MarkWillems</dc:creator>
      <dc:date>2019-10-22T14:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter latest data from table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1641436#M731860</link>
      <description>&lt;P&gt;Michael, did Marks last post get everything working for you?&amp;nbsp; If so, do not forget to give him credit by using the Accept as Solution button on the post(s) that helped you get things working.&amp;nbsp; If you are still working on things, leave us an update.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 19:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1641436#M731860</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-10-30T19:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter latest data from table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1641517#M731861</link>
      <description>&lt;P&gt;You are having issue because the LastUpdated column is in text.&lt;/P&gt;&lt;P&gt;Try formatting LastUpdated column to timestring format and it should work:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MC.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22664iD37311B5C1DA53AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="MC.PNG" alt="MC.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Refer attached qvw as reference.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Arthur Fong&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 04:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-latest-data-from-table/m-p/1641517#M731861</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-10-31T04:49:24Z</dc:date>
    </item>
  </channel>
</rss>

