<?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: Loading exception on first record in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108908#M463557</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;check firstsortedvalue()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jun 2016 11:11:02 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2016-06-24T11:11:02Z</dc:date>
    <item>
      <title>Loading exception on first record</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108907#M463556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to load a table but only the first record based on the date and time creation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date Creation&lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" height="225" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;-moz-right&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 375px; border-width: 1px; border-style: solid; height: 226px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" width="51"&gt;121852&lt;/TD&gt;&lt;TD align="right" class="xl64" width="111"&gt;04/01/2016 10:24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;&lt;SPAN style="color: #ff0000;"&gt;121856&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;&lt;SPAN style="color: #ff0000;"&gt;04/01/2016 10:49&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;121856&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;05/01/2016 03:32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;121856&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;05/01/2016 05:43&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;121856&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;05/01/2016 07:44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;121856&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;05/01/2016 10:31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;121873&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;04/01/2016 12:22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;121875&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;04/01/2016 13:28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;121883&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;05/01/2016 04:27&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can notice for example the key 121856 shows different times in table but I want to load just the first 1 created (the line in red in the above table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hasvine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 11:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108907#M463556</guid>
      <dc:creator />
      <dc:date>2016-06-24T11:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Loading exception on first record</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108908#M463557</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;check firstsortedvalue()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 11:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108908#M463557</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-06-24T11:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Loading exception on first record</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108909#M463558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=FirstSortedValue(key, -[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; Date Creation&lt;/SPAN&gt;])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 11:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108909#M463558</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-06-24T11:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Loading exception on first record</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108910#M463559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;You can also try,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date(Min(Date(Date#([Date Creation],'DD/MM/YYYY hh:mm'))),'DD/MM/YYYY hh:mm')&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 11:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108910#M463559</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-06-24T11:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Loading exception on first record</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108911#M463560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with FirstValue() at script, like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstValue(Key) as Key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstValue(DateTimeCreation) as TimeCreation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Your_TableName;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 11:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108911#M463560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-24T11:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loading exception on first record</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108912#M463561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There might be numerous ways to do this, one of them would be to do a right join of the min Date Creation by Key to get only those rows where Date Creation is the minimum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD @1 as Key, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as [Date Creation]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2053" data-containertype="14" data-objectid="222366" data-objecttype="1" href="https://community.qlik.com/thread/222366"&gt;https://community.qlik.com/thread/222366&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, no labels, table is @1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Right Join (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Min([Date Creation]) as [Date Creation]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Key;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 11:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108912#M463561</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-24T11:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Loading exception on first record</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108913#M463562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works. I was having some difficulty to understand the concept but your explanation helped me a lot to understand how it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again and thanks to everyone for your help. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hasvine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 11:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-exception-on-first-record/m-p/1108913#M463562</guid>
      <dc:creator />
      <dc:date>2016-06-24T11:47:37Z</dc:date>
    </item>
  </channel>
</rss>

