<?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: unique ids from multiple reporting periods list in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/unique-ids-from-multiple-reporting-periods-list/m-p/331198#M122037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, missed your new comments.&amp;nbsp; You might have solved this already, but this is one way how it could be done ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SampleData:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Call-Off Reference, Reporting Period, Stage&lt;BR /&gt;COR007977, 01/01/2011, desc A&lt;BR /&gt;COR007977, 01/02/2011, desc B&lt;BR /&gt;COR007977, 01/03/2011, desc B&lt;BR /&gt;COR007977, 01/04/2011, desc A&lt;BR /&gt;COR007977, 01/05/2011, desc C&lt;BR /&gt;COR007978, 01/03/2011, desc C&lt;BR /&gt;COR007979, 01/03/2011, desc Q&lt;BR /&gt;COR007979, 01/03/2010, desc A&lt;BR /&gt;COR007979, 01/08/2009, desc B&lt;BR /&gt;COR007979, 01/03/2006, desc C&lt;BR /&gt;COR007975, 01/01/2011, desc A&lt;BR /&gt;COR007975, 01/07/2011, desc D&lt;BR /&gt;COR007975, 23/08/2011, desc Z&lt;BR /&gt;COR007975, 01/02/2011, desc B];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (SampleData)&lt;BR /&gt;LOAD *, RowNo() as RowRef resident SampleData; // this enforces row uniqueness for linking later&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (SampleData)&lt;BR /&gt;LOAD [Call-Off Reference], max([Reporting Period]) as LatestPeriod // this finds latest date within each Call-off Reference group&lt;BR /&gt;resident SampleData group by [Call-Off Reference];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (SampleData)&lt;BR /&gt;LOAD RowRef, Match(num([Reporting Period]),num(LatestPeriod)) as LatestPeriodFlag&lt;BR /&gt;resident SampleData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2012 08:41:13 GMT</pubDate>
    <dc:creator>flipside</dc:creator>
    <dc:date>2012-07-02T08:41:13Z</dc:date>
    <item>
      <title>unique ids from multiple reporting periods list</title>
      <link>https://community.qlik.com/t5/QlikView/unique-ids-from-multiple-reporting-periods-list/m-p/331194#M122033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm relatively new to Qlikview and have searched various forums but not totally sure how to approach this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table that contains a list of calloffs with reporting periods:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="help1.bmp" class="jive-image" src="https://community.qlik.com/legacyfs/online/15242_help1.bmp" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to load a list containing unique calloff reference with the most recent reporting period date preferably in a unqualified table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone show me an example of how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 11:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/unique-ids-from-multiple-reporting-periods-list/m-p/331194#M122033</guid>
      <dc:creator />
      <dc:date>2012-05-31T11:38:16Z</dc:date>
    </item>
    <item>
      <title>unique ids from multiple reporting periods list</title>
      <link>https://community.qlik.com/t5/QlikView/unique-ids-from-multiple-reporting-periods-list/m-p/331195#M122034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this quite easily with a GROUP BY statement ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grouped:&lt;/P&gt;&lt;P&gt;LOAD [Call-Off Reference], max([Reporting Period]) as LatestPeriod&lt;/P&gt;&lt;P&gt;resident {sourcetable}&lt;/P&gt;&lt;P&gt;group by [Call-Off Reference];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will link the LatestPeriod to the Call-Off Reference, but if you want to have it completely unlinked, change to something like ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grouped:&lt;/P&gt;&lt;P&gt;LOAD [Call-Off Reference] as grp_Ref, max([Reporting Period]) as LatestPeriod&lt;/P&gt;&lt;P&gt;resident SampleData&lt;/P&gt;&lt;P&gt;group by [Call-Off Reference];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 12:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/unique-ids-from-multiple-reporting-periods-list/m-p/331195#M122034</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-05-31T12:03:27Z</dc:date>
    </item>
    <item>
      <title>unique ids from multiple reporting periods list</title>
      <link>https://community.qlik.com/t5/QlikView/unique-ids-from-multiple-reporting-periods-list/m-p/331196#M122035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So thats nearly there but how would I then display all the details of each most recent call off record in a table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 14:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/unique-ids-from-multiple-reporting-periods-list/m-p/331196#M122035</guid>
      <dc:creator />
      <dc:date>2012-05-31T14:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: unique ids from multiple reporting periods list</title>
      <link>https://community.qlik.com/t5/QlikView/unique-ids-from-multiple-reporting-periods-list/m-p/331197#M122036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so i have this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[Active],&lt;/P&gt;&lt;P&gt;[Call-Off Reference],&lt;/P&gt;&lt;P&gt;max(date([Reporting Period])) as LatestPeriod&lt;/P&gt;&lt;P&gt;resident Main_Table&lt;/P&gt;&lt;P&gt;group by [Call-Off Reference];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it throws an invalid expression.. whats with that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try and do a left join instead so it shows the data from the latest reporting periods only with unique call offs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;QUALIFY*;&lt;/P&gt;&lt;P&gt;UNQUALIFY [Call-Off Reference], [Reporting Period];&lt;/P&gt;&lt;P&gt;final_data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[Call-Off Reference],&lt;/P&gt;&lt;P&gt;max(date([Reporting Period])) as LatestPeriod&lt;/P&gt;&lt;P&gt;resident Main_Table&lt;/P&gt;&lt;P&gt;group by [Call-Off Reference];&lt;/P&gt;&lt;P&gt;LEFT JOIN LOAD&lt;/P&gt;&lt;P&gt;[Call-Off Reference],&lt;/P&gt;&lt;P&gt;[Call Off Title]&lt;/P&gt;&lt;P&gt;resident Main_Table;&lt;/P&gt;&lt;P&gt;UNQUALIFY *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it just reprints alot.. any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 09:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/unique-ids-from-multiple-reporting-periods-list/m-p/331197#M122036</guid>
      <dc:creator />
      <dc:date>2012-06-07T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: unique ids from multiple reporting periods list</title>
      <link>https://community.qlik.com/t5/QlikView/unique-ids-from-multiple-reporting-periods-list/m-p/331198#M122037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, missed your new comments.&amp;nbsp; You might have solved this already, but this is one way how it could be done ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SampleData:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Call-Off Reference, Reporting Period, Stage&lt;BR /&gt;COR007977, 01/01/2011, desc A&lt;BR /&gt;COR007977, 01/02/2011, desc B&lt;BR /&gt;COR007977, 01/03/2011, desc B&lt;BR /&gt;COR007977, 01/04/2011, desc A&lt;BR /&gt;COR007977, 01/05/2011, desc C&lt;BR /&gt;COR007978, 01/03/2011, desc C&lt;BR /&gt;COR007979, 01/03/2011, desc Q&lt;BR /&gt;COR007979, 01/03/2010, desc A&lt;BR /&gt;COR007979, 01/08/2009, desc B&lt;BR /&gt;COR007979, 01/03/2006, desc C&lt;BR /&gt;COR007975, 01/01/2011, desc A&lt;BR /&gt;COR007975, 01/07/2011, desc D&lt;BR /&gt;COR007975, 23/08/2011, desc Z&lt;BR /&gt;COR007975, 01/02/2011, desc B];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (SampleData)&lt;BR /&gt;LOAD *, RowNo() as RowRef resident SampleData; // this enforces row uniqueness for linking later&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (SampleData)&lt;BR /&gt;LOAD [Call-Off Reference], max([Reporting Period]) as LatestPeriod // this finds latest date within each Call-off Reference group&lt;BR /&gt;resident SampleData group by [Call-Off Reference];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (SampleData)&lt;BR /&gt;LOAD RowRef, Match(num([Reporting Period]),num(LatestPeriod)) as LatestPeriodFlag&lt;BR /&gt;resident SampleData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 08:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/unique-ids-from-multiple-reporting-periods-list/m-p/331198#M122037</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-07-02T08:41:13Z</dc:date>
    </item>
  </channel>
</rss>

