<?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 How to display only last updated data for columns which cause duplicate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-display-only-last-updated-data-for-columns-which-cause/m-p/1689308#M593899</link>
    <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Could someone please help me on below query.&lt;/P&gt;&lt;P&gt;Actually i have some 100 + files with (filename_datestamp.csv), here i'm concatenating all the files and generating report.&lt;/P&gt;&lt;P&gt;so here there are some 5 columns which causes duplicate records, so for those 5 columns alone i need to display the data from latest file. Here USER_ID is the primary key, how to find out for which user which is the last updated file and display those records?&lt;/P&gt;&lt;P&gt;Below is my code&lt;/P&gt;&lt;P&gt;for each file in 'Documents\all_transfer_event_users-????-??-??-??-??-??.csv'&lt;/P&gt;&lt;P&gt;MASTER_TABLE:&lt;BR /&gt;LOAD distinct *&lt;BR /&gt;//left(FileName(),10) as FILE_DATE&lt;BR /&gt;from [$(file)]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ',', msq)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Concatenate(MASTER_TABLE)&lt;/P&gt;&lt;P&gt;LOAD distinct *&lt;BR /&gt;//left(FileName(),10) as FILE_DATE&lt;BR /&gt;from [$(file)]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ',', msq)&lt;BR /&gt;;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 07:17:06 GMT</pubDate>
    <dc:creator>ManiSK</dc:creator>
    <dc:date>2020-03-31T07:17:06Z</dc:date>
    <item>
      <title>How to display only last updated data for columns which cause duplicate</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-only-last-updated-data-for-columns-which-cause/m-p/1689308#M593899</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Could someone please help me on below query.&lt;/P&gt;&lt;P&gt;Actually i have some 100 + files with (filename_datestamp.csv), here i'm concatenating all the files and generating report.&lt;/P&gt;&lt;P&gt;so here there are some 5 columns which causes duplicate records, so for those 5 columns alone i need to display the data from latest file. Here USER_ID is the primary key, how to find out for which user which is the last updated file and display those records?&lt;/P&gt;&lt;P&gt;Below is my code&lt;/P&gt;&lt;P&gt;for each file in 'Documents\all_transfer_event_users-????-??-??-??-??-??.csv'&lt;/P&gt;&lt;P&gt;MASTER_TABLE:&lt;BR /&gt;LOAD distinct *&lt;BR /&gt;//left(FileName(),10) as FILE_DATE&lt;BR /&gt;from [$(file)]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ',', msq)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Concatenate(MASTER_TABLE)&lt;/P&gt;&lt;P&gt;LOAD distinct *&lt;BR /&gt;//left(FileName(),10) as FILE_DATE&lt;BR /&gt;from [$(file)]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ',', msq)&lt;BR /&gt;;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 07:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-only-last-updated-data-for-columns-which-cause/m-p/1689308#M593899</guid>
      <dc:creator>ManiSK</dc:creator>
      <dc:date>2020-03-31T07:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to display only last updated data for columns which cause duplicate</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-only-last-updated-data-for-columns-which-cause/m-p/1689322#M593900</link>
      <description>&lt;P&gt;use this&lt;/P&gt;&lt;P&gt;max({&amp;lt;USER_ID={"=count(FILE_DATE)&amp;gt;1"}&amp;gt;} FILE_DATE)&lt;/P&gt;&lt;P&gt;to show the newest FILE_DATE only for USER_ID that have more than one entry&lt;/P&gt;&lt;P&gt;Reagds&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 07:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-only-last-updated-data-for-columns-which-cause/m-p/1689322#M593900</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2020-03-31T07:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to display only last updated data for columns which cause duplicate</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-only-last-updated-data-for-columns-which-cause/m-p/1689325#M593901</link>
      <description>&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;Actually i'm not displaying in the dashboard. Generating the report and storing file&amp;nbsp; csv format.&lt;/P&gt;&lt;P&gt;so the report should contains latest record for those 5 columns alone.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 07:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-only-last-updated-data-for-columns-which-cause/m-p/1689325#M593901</guid>
      <dc:creator>ManiSK</dc:creator>
      <dc:date>2020-03-31T07:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to display only last updated data for columns which cause duplicate</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-only-last-updated-data-for-columns-which-cause/m-p/1689447#M593902</link>
      <description>&lt;P&gt;Suppose You have A---Z columns and A,B,C causing duplicates. I believe loading them separately can solve the problem.&lt;/P&gt;&lt;P&gt;MASTER_TABLE:&lt;BR /&gt;LOAD distinct&amp;nbsp;&lt;/P&gt;&lt;P&gt;USER_ID, D , E ,F...............Z&lt;BR /&gt;from [$(file)]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ',', msq)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Concatenate(MASTER_TABLE)&lt;/P&gt;&lt;P&gt;LOAD distinct&amp;nbsp;&lt;/P&gt;&lt;P&gt;USER_ID, D , E ,F...............Z&lt;BR /&gt;from [$(file)]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ',', msq)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LEFT JOIN(MASTER_TABLE)&lt;/P&gt;&lt;P&gt;LOAD distinct&amp;nbsp;&lt;/P&gt;&lt;P&gt;USER_ID, A , B , C&lt;BR /&gt;from [$(file)]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ',', msq)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Concatenate(MASTER_TABLE)&lt;/P&gt;&lt;P&gt;LOAD distinct&amp;nbsp;&lt;/P&gt;&lt;P&gt;USER_ID, A , B , C&lt;BR /&gt;from [$(file)]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ',', msq)&lt;BR /&gt;;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 13:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-only-last-updated-data-for-columns-which-cause/m-p/1689447#M593902</guid>
      <dc:creator>sujit_nath</dc:creator>
      <dc:date>2020-03-31T13:23:11Z</dc:date>
    </item>
  </channel>
</rss>

